MATLAB DATABASE TOOLBOX RELEASE NOTES Guida Utente Pagina 612

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 684
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 611
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'
Vedere la pagina 611
1 2 ... 607 608 609 610 611 612 613 614 615 616 617 ... 683 684

Commenti su questo manuale

Nessun commento