How to resolve the "ORA-01017 : Invalid Username/Password; Logon denied" error in an Oracle monitor

How to resolve the "ORA-01017 : Invalid Username/Password; Logon denied" error in an Oracle monitor

In Applications Manager, users might encounter the following error while attempting to add or monitor the Oracle database. This error indicates an issue with authentication credentials or other related configuration settings.





To troubleshoot this issue, users must first verify the username, password and SID/Service Name values provided in the Oracle monitor. Try connecting to the Oracle database directly using the same username and password used in Applications Manager to verify.

If the username and password are correct but the ORA-01017: invalid username/password; logon denied error still occurs, follow the steps below to resolve the issue.

Step 1: Verify Case Sensitivity

Begin by checking if case sensitivity is enabled for the Oracle login credentials. To do so, run the following command in the Oracle database: 
Quote
SQL> SHOW PARAMETER SEC_CASE_SENSITIVE_LOGON
A sample output of the query will look like this:
Quote
                       NAME TYPE VALUE
--------------------------------     --------- --------
sec_case_sensitivity_logon boolean TRUE
If the value is set to TRUE, the user has two options:
  1. Ensure that the password is entered with the correct case. (or)
  2. Disable case sensitivity for passwords
To disable case sensitivity, use the command given below. Note that in a multitenant architecture, this command should be executed on the container database, affecting all pluggable databases
Quote
SQL> ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON=FALSE;
In most cases, disabling case sensitivity resolves the issue. If the error persists, check the compatibility mode of the client used to connect.

Step 2: Verify Client Compatibility Mode

If case sensitivity is disabled and the password is correct, a compatibility mismatch between the client and server versions (i.e: Applications Manager and the Oracle Database) could be causing the issue. To resolve this, users need to set the compatibility level in the sqlnet.ora file.
Quote
SQLNET.ALLOWED_LOGON_VERSION_SERVER=8 SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8
After modifying and saving the file, restart Oracle listener service. This should allow the user to connect to the corresponding Oracle Database from Applications Manager.
Notes
Note: In Oracle versions prior to 11g, the compatibility mode is set using a single parameter.
SQLNET.ALLOWED_LOGON_VERSION=n

This parameter is deprecated from Oracle 12c onward.



                  New to ADSelfService Plus?