Saturday, June 29, 2019

ORA-01017: invalid username/password; logon denied - From Java Application

Able to login to Oracle DB successfully using TOAD for Oracle Client where as from your Java application it is not connecting to the DB and giving "ORA-01017: invalid username/password; logon denied" error?

Able to connect to Oracle DB using a connection string which has different user name and password (which was created months ago)? Where as the same connection string with the new user name and password gives "ORA-01017: invalid username/password; logon denied" error while both the usernames and passwords are successfully connecting using TOAD for Oracle Client?

Well, your OJDBC Driver could be playing the trick. If the version supported by the OJDBC drivevr(.Jar) and the Oracle DB Version are different, this error can be thrown.

Get your driver upgraded.