upgraded EBS 12.2.4 database which was on 11.2.0.3 using DBUA and while connecting to APPS used it was saying account is locked.
When checked account status from DBA_USERS view it was revealed, all the database users account became EXPIRED & LOCKED.
Still not sure what triggers to it. Probably SQLNET.ALLOWED_LOGON_VERSION = 8 was set in sqlnet.ora and Oracle sets sec_case_sensitive_logon=TRUE while upgrade the database using DBUA. However accounts were expired.
Since all EBS database accounts were expired, It was not possible to
directly to change the password to a different value as in EBS it is handled differently and EBS database user password should match with encrypted passwords stored in FND_ORACLE_USERID table.
However I was aware of the fact that the if same database password is set again using “ALTER USER INDENTIFIED BY VALUE”.
And account will be opened and can be used provided that password version still supports 10g version password.
Even it can be set to use 10G password only.
It can be verified from view DBA_USERS column PASSWORD_VERSIONS if it stll has 10g.
SQL> select distinct PASSWORD_VERSIONS from dba_users;
PASSWORD_VERSIONS
—————–
10G
10G 11G
10G 11G 12C
Since EBS database accounts are coming from older versions of database it still supports 10g password version.
From 11G onward password are stored differently and are stored in user$ in different columns.
Solution:
We need to unlock the accounts using “Alter User account unlock” for all the users.
It can be done using a script.
After that we need to set same passwords for users having PASSWORD_VERSIONS 10G.
This can also be achived using a script.
set lines 500
set long 2000000
set longchunksize 20000
spool chgpwd.sql
SELECT ‘ALTER USER ‘|| name ||’ IDENTIFIED BY VALUES ‘||chr(39)|| spare4 ||’;’|| password ||chr(39)||’;’ FROM user$ WHERE name in (select USERNAME from dba_userswhere ACCOUNT_STATUS=’EXPIRED’)
spool off
Then run chgpwd.sql. It will set same password for all the accounts.
Now everything became OK proceeded with next post database upgrade steps.