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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 684
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 149
2 Getting Started with Database Toolbox
2-124
'Server','sname','PortNumber',123456);
Or, if you have trouble using the database function to connect to your Oracle
database, try using the full entry in your tnsnames.ora file in the URL string as
one consecutive line. Leave the first argument blank. For example, the following
code assumes the value of the URL name-value pair argument is set to the following
tnsnames.ora file entry for an Oracle database.
conn = database('','username','pwd',...
'Vendor','Oracle',...
'URL',['jdbc:oracle:thin:@(DESCRIPTION = '...
'(ADDRESS = (PROTOCOL = TCP)(HOST = sname)'...
'(PORT = 123456)) (CONNECT_DATA = '...
'(SERVER = DEDICATED) (SERVICE_NAME = dbname) ) )']);
2
Close the database connection conn.
close(conn)
See Also
close | database | javaaddpath
More About
“Working with Database Explorer” on page 4-2
“Bringing Java Classes into MATLAB Workspace”
Przeglądanie stron 149
1 2 ... 145 146 147 148 149 150 151 152 153 154 155 ... 683 684

Komentarze do niniejszej Instrukcji

Brak uwag