Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> JDBC & OCI7
Hi,
We are using trying to the oracle driver to get connect to database, we are suucessful by using thin driver but not with oci7, an exception is thrown as described below.
Our Syntax is as follows :
For THIN driver
DriverManager.getConnection
("jdbc:oracle:thin:@server:1521:ocrl"+"user"+"password");
This get connected and works fine.
For OCI7 driver
DriverManager.getConnection
("jdbc:oracle:oci7:@server:1521:ocrl"+"user"+"password");
The follwing exception is thrown
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
at java.lang.Throwable.<init>(Compiled Code) at java.lang.Exception.<init>(Compiled Code) at java.sql.SQLException.<init>(Compiled Code) at oracle.jdbc.oci7.OCIDBAccess.check_error(Compiled Code) at oracle.jdbc.oci7.OCIDBAccess.logon(Compiled Code) at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code) at oracle.jdbc.driver.OracleDriver.connect(Compiled Code) at java.sql.DriverManager.getConnection(Compiled Code) at java.sql.DriverManager.getConnection(Compiled Code) at JdbcCheckup.main(Compiled Code)
Any help is appreciated.
Thanks
-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Wed Mar 31 1999 - 17:05:35 CST
![]() |
![]() |