OC4J Connection Pool Error Message: java.sql.SQLException: ORA-01017: invalid username/password; logon denied

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World

Error Description:
OC4J connection pool configuration testing to Oracle 11g database is giving following error.
OC4J Error message: Exception occurred testing connection. Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied 

Problem Description:
By default the Oracle 11g passwords are case sensitive. Mainly if you are using any case sensitive passwords in your connection pool configuration, you will face this error. Somehow application is not sending the case sensitive password to the database and it throws this error.

The quick workaround for this error is to change your database to case insensitive using the following commands.

SQL> show parameter sec_case_sensitive_logon

NAME                                 TYPE        VALUE
------------------------------------ ----------- --------
sec_case_sensitive_logon             boolean     TRUE

SQL> alter system set sec_case_sensitive_logon=false scope=spfile sid='*';

System altered.

The above command requires a db bounce. You can use scope=memory to make change without bounce.

SQL> alter system set sec_case_sensitive_logon=false scope=memory;

System altered.

SQL> show parameter sec_case_sensitive_logon

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
sec_case_sensitive_logon             boolean     FALSE

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer