User`s guide
7 Functions — Alphabetical List
7-182
ping
Retrieve status information about database connection
Syntax
ping(conn)
Description
ping(conn) retrieves the status of the database connection conn.
Examples
Retrieve Status of an ODBC Connection
Create an Oracle connection using an ODBC driver. For example, the following code
assumes you are connecting a data source named dbname with user name username and
password pwd.
conn = database(dbname,username,pwd);
Retrieve the status of the Oracle connection.
ping(conn)
ans =
DatabaseProductName: 'Oracle'
DatabaseProductVersion: '11.02.0010'
JDBCDriverName: 'JDBC-ODBC Bridge (SQORA32.DLL)'
JDBCDriverVersion: '2.0001 (11.02.0001)'
MaxDatabaseConnections: 0
CurrentUserName: 'username'
DatabaseURL: 'jdbc:odbc:dbname'
AutoCommitTransactions: 'True'