User`s guide

Oracle JDBC for Linux
2-131
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”