Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable connect to Oracle 12c db using JDBC due to ORA-28040: No matching authentication protocol

prasannasri-OracleMar 6 2014 — edited Oct 15 2014

Hi ,

I have written a simple java program to connect to oracle 12c db.

While executing the class I am getting below error

java.sql.SQLException: ORA-28040: No matching authentication protocol

My JDK version in 1.7 and JDBC Driver is ojdbc7. Even tried using JDK 1.6 and ojdbc6. Both the options did not work.

Code:

   Class.forName("oracle.jdbc.driver.OracleDriver");

   con = DriverManager.getConnection("jdbc:oracle:thin:@10.190.165.219:1521:agile","system","manager");

I have also tried adding the parameter in SQLNET.ora file SQLNET_ALLOWED_LOGON_VERSION=8 still i got the same error.

Need inputs to fix this issue.

thanks

Prasanna

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 3 2014
Added on Mar 6 2014
1 comment
3,406 views