MATLAB DATABASE TOOLBOX RELEASE NOTES Uživatelská příručka Strana 612

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 684
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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'
Zobrazit stránku 611
1 2 ... 607 608 609 610 611 612 613 614 615 616 617 ... 683 684

Komentáře k této Příručce

Žádné komentáře