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