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

  • 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 80
Oracle JDBC for Windows
2-55
dbname can be the service name or the Oracle system identifier (SID) depending on
your specific Oracle database setup. For details, see your tnsnames.ora file, which
is often in <ORACLE_HOME>\NETWORK\ADMIN where <ORACLE_HOME> is the folder
where the database or the Oracle client is installed.
conn = database('dbname','','',...
'Vendor','Oracle','DriverType','oci',...
'Server','sname','PortNumber',123456);
Or, to connect without Windows authentication, use the DriverType name-
value pair argument of database to specify a connection to the database server
by specifying the thin value. For example, the following code assumes you are
connecting to a database named dbname with user name username and password
pwd.
conn = database('dbname','username','pwd',...
'Vendor','Oracle','DriverType','thin',...
'Server','sname','PortNumber',123456);
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
Zobrazit stránku 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 683 684

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

Žádné komentáře

Fujitsu SCANPARTNER 620C manuales

Manuales del propietario y guías del usuario para Escáneres Fujitsu SCANPARTNER 620C.
Ofrecemos 1 manuales en pdf Fujitsu SCANPARTNER 620C para descargar gratis por tipos de documentos: Manual de usuario






Más productos y manuales para Escáneres Fujitsu

Modelos Tipo de documento
fi-5015C Manual de usuario   FUJITSU fi-5015C User Manual, 26 paginas
M3093DG Manual de usuario   FUJITSU M3093DG User Manual, 208 paginas
fi-5220C Manual de usuario   FUJITSU fi-5220C User Manual, 28 paginas
SCANSNAP NETWORK SCANNER N1800 Manual de usuario   FUJITSU SCANSNAP NETWORK SCANNER N1800 User Manual, 23 paginas
fi-4750C Manual de usuario   FUJITSU fi-4750C User Manual, 94 paginas
C150-E187-01EN Manual de usuario   FUJITSU C150-E187-01EN User Manual, 94 paginas
Image Scanner fi-6110 Manual de usuario   FUJITSU Image Scanner fi-6110 User Manual, 8 paginas
FI-4120CC2 Manual de usuario   FUJITSU FI-4120CC2 User Manual, 7 paginas
ScanSnap S1300 Manual de usuario   FUJITSU ScanSnap S1300 User Manual, 8 paginas