R
Ramji
Dear friends:
following code just prints
Connecting to Oracle... & it doesnt prints ....Connected to oracle
statement.
I've given the code in try catch block but also it doesn't print any
exception
why??
System.out.println("connencting to Oracle....");
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn=
DriverManager.getConnection("jdbcracle:thin(DESCRIPTION
=(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = testserver.com)(PORT
= 1521)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME =
testdb)))","test","test");
System.out.println(".....connencted to Oracle");
I've tried the above code with some changes for the database on the
same machine it works fine. But when I tries it for the db on the other
server it not works.
waiting for reply.....
following code just prints
Connecting to Oracle... & it doesnt prints ....Connected to oracle
statement.
I've given the code in try catch block but also it doesn't print any
exception
why??
System.out.println("connencting to Oracle....");
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn=
DriverManager.getConnection("jdbcracle:thin(DESCRIPTION
=(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = testserver.com)(PORT
= 1521)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME =
testdb)))","test","test");
System.out.println(".....connencted to Oracle");
I've tried the above code with some changes for the database on the
same machine it works fine. But when I tries it for the db on the other
server it not works.
waiting for reply.....