lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb
def ping #:nodoc:
    @connection.exec("select 1 from dual") { |r| nil }
    @active = true
  rescue
    @active = false
    raise
  end
# Checks connection, returns true if active. Note that ping actively
# checks the connection, while #active? simply returns the last
# known state.
Checks connection, returns true if active. Note that ping actively
checks the connection, while #active. simply returns the last
known state.
Checks connection returns true if active . Note that ping actively checks the connection while #active . simply returns the last known state .
def ping 
    @connection.exec("select 1 from dual") { |r| nil }
    @active = true
  rescue
    @active = false
    raise
  end
def ping @connection . exec ( "select 1 from dual" ) { | r | nil } @active = true rescue @active = false raise end
Checks connection, returns true if active.
Checks connection returns true if active .
#:nodoc: