MATLAB DATABASE TOOLBOX RELEASE NOTES Podręcznik Użytkownika Strona 609

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 684
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 608
logintimeout
7-179
Note: Apple Mac OS platforms do not support logintimeout.
Examples
Example 1 — Get Timeout Value for ODBC Connection
View the current connection timeout value.
logintimeout
ans =
0
This indicates that you have not specified a timeout value.
Example 2 — Set Timeout Value for ODBC Connection
Set the timeout value to 5 seconds.
logintimeout(5)
ans =
5
Example 3 — Get and Set Timeout Value for JDBC Connection
1
Check the timeout value for a database connection that is established using an
Oracle JDBC driver.
logintimeout('oracle.jdbc.driver.OracleDriver')
ans =
0
This indicates that the timeout value is currently 0.
2
Set the timeout to 5 seconds.
timeout = ...
logintimeout('oracle.jdbc.driver.OracleDriver', 5)
timeout =
5
3
Verify the timeout value.
Przeglądanie stron 608
1 2 ... 604 605 606 607 608 609 610 611 612 613 614 ... 683 684

Komentarze do niniejszej Instrukcji

Brak uwag