I am trying to connect my grails project to Oracle databse(Oracle 12c) in windows(8) system. However, whenever I run my application I get following exception :
Caused by: org.apache.commons.dbcp.SQLNestedException:
Cannot create PoolableConnectionFactory (ORA-28040:
No matching authentication protocol)
Caused by:
java.sql.SQLException: ORA-28040:
No matching authentication protocol
According to internet suggestion I also tried editing my *.ora
file but it is not working.
I added following snippet in sqlnet.ora
file :
SQLNET.ALLOWED_LOGON_VERSION=10
SQLNET.ALLOWED_LOGON_VERSION_CLIENT=10
SQLNET.ALLOWED_LOGON_VERSION_SERVER=10
Here i tried assigning (10,11,12) but neither of them is working.
Can anyone please help me with this ?
Here is some text I found at experts-exchange:
Adding
is the perfect solution sql.ora directory ..\product\12.1.0\dbhome_1\NETWORK\ADMIN
I resolved this issue by using ojdbc8.jar. Oracle 12c is compatible with ojdbc8.jar
I deleted the ojdbc14.jar file and used ojdbc6.jar instead and it worked for me
just install ojdbc-full, That contains the 12.1.0.1 release.
I was using eclipse and after trying all the other answers it didn't work for me. In the end, what worked for me was moving the
ojdb7.jar
to top in the Build Path. This occurs when multiple jars have conflicting same classes.