What is the syntax for connecting to an Oracle DB using TNS. The only way I have managed to get it to work so far is by including the full description from the tnsnames.ora file for the database I am trying to connect to in the URL e.g.
sqlj.url=jdbc
racle:thin
(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNITY=UNIXTCP)(PROTOCOL=TCP)(HOST=kings)(PORT=1521)))(CONNECT_DATA=(SID=cam02dev)))
This entry is called cam02dev (same as the SID) in my tnsnames.ora file so why can't I just say
sqlj.url=jdbc
racle:thin
cam02dev
I've also tried oci8 instead of thin and it still won't connect.
The error message I get is
java.sql.SQLException: No suitable driver
sqlj.url=jdbc
This entry is called cam02dev (same as the SID) in my tnsnames.ora file so why can't I just say
sqlj.url=jdbc
I've also tried oci8 instead of thin and it still won't connect.
The error message I get is
java.sql.SQLException: No suitable driver