Thin driver Oracle JDBC Thin driver uses Java sockets to connect directly to Oracle. It provides its own TCP / IP version of the Oracle SQL * Net protocol. Since it is 100% Java, this driver is platform independent and can also be run from a web browser (applets). There are 2 URL syntaxes, the old syntax that will only work with SID and the new one with the Oracle service name.
Old syntax
: oracle JDBC: thin: @ [HOST] [: port]: SID
New syntax
: oracle JDBC: thin: @ // [HOST] [: port] / SERVICE
The new SERVICE syntax could be the oracle service name or SID.
There are also some drivers that support URL syntax that allow you to specify the Oracle user ID and password in the URL.
: oracle JDBC: thin: [USER / PASSWORD] @ [HOST] [: port]: SID
: oracle JDBC: thin: [USER / PASSWORD] @ // [HOST] [: port] / SERVICE
source: http://www.orafaq.com/wiki/JDBC
source share