Note:Password resetting is user own decision as per requirement.
Not to be copy pasted from this article and should not be used in production without CR.
This steps are described below keeping developement or perf testing environment in mind.
You might be doing this but still getting the above error:
SQL> select USER#,NAME,PASSWORD FROM USER$ where name='IPPADM' ;
USER# NAME PASSWORD
---------- ------------------------------ ------------------------------
26 IPPADM C42D1F57A9936520
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME unlimited;
Then you might be setting the password to the older value;
alter user IPPADM identified by values 'C42D1F57A9936520';
not working same message.
select * from dba_profiles where profile='DEFAULT' and RESOURCE_NAME in ('PASSWORD_REUSE_TIME') ;
alter profile DEFAULT limit PASSWORD_REUSE_TIME UNLIMITED;
alter user IPPADM identified by values 'C42D1F57A9936520';
No help not working.
Finally execute the following:
How to set password expiry to unlimited for a schema account in the DB and reset with the same old password:
select profile from dba_users where username='IPPADM'
DEFAULT
Check the different resource and limit for this profile.
select RESOURCE_NAME,LIMIT from dba_profiles where PROFILE='DEFAULT' and RESOURCE_NAME Like 'PASS%'
PASSWORD_LIFE_TIME
PASSWORD_REUSE_TIME
PASSWORD_REUSE_MAX
PASSWORD_VERIFY_FUNCTION
PASSWORD_LOCK_TIME
PASSWORD_GRACE_TIME
Change all the profile limit to unlimited including PASSWORD_VERIFY_FUNCTION which should be set to null.
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME unlimited;
ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_TIME unlimited;
ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_MAX unlimited;
ALTER PROFILE DEFAULT LIMIT PASSWORD_GRACE_TIME unlimited;
ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION NULL;
How to set a samll amount for account lock time for a DB user:
ALTER PROFILE DEFAULT LIMIT PASSWORD_LOCK_TIME 0.001;
How to change the password expiry to unlimited for a service account:
Check the current status of the user say oracle.
[root@pdevspdb ~]# chage -l oracle
Last password change : May 04, 2016
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
chage -I -1 -m 0 -M 99999 -E -1 username
Not to be copy pasted from this article and should not be used in production without CR.
This steps are described below keeping developement or perf testing environment in mind.
You might be doing this but still getting the above error:
SQL> select USER#,NAME,PASSWORD FROM USER$ where name='IPPADM' ;
USER# NAME PASSWORD
---------- ------------------------------ ------------------------------
26 IPPADM C42D1F57A9936520
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME unlimited;
Then you might be setting the password to the older value;
alter user IPPADM identified by values 'C42D1F57A9936520';
not working same message.
select * from dba_profiles where profile='DEFAULT' and RESOURCE_NAME in ('PASSWORD_REUSE_TIME') ;
alter profile DEFAULT limit PASSWORD_REUSE_TIME UNLIMITED;
alter user IPPADM identified by values 'C42D1F57A9936520';
No help not working.
Finally execute the following:
How to set password expiry to unlimited for a schema account in the DB and reset with the same old password:
select profile from dba_users where username='IPPADM'
DEFAULT
Check the different resource and limit for this profile.
select RESOURCE_NAME,LIMIT from dba_profiles where PROFILE='DEFAULT' and RESOURCE_NAME Like 'PASS%'
PASSWORD_LIFE_TIME
PASSWORD_REUSE_TIME
PASSWORD_REUSE_MAX
PASSWORD_VERIFY_FUNCTION
PASSWORD_LOCK_TIME
PASSWORD_GRACE_TIME
Change all the profile limit to unlimited including PASSWORD_VERIFY_FUNCTION which should be set to null.
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME unlimited;
ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_TIME unlimited;
ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_MAX unlimited;
ALTER PROFILE DEFAULT LIMIT PASSWORD_GRACE_TIME unlimited;
ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION NULL;
How to set a samll amount for account lock time for a DB user:
ALTER PROFILE DEFAULT LIMIT PASSWORD_LOCK_TIME 0.001;
How to change the password expiry to unlimited for a service account:
Check the current status of the user say oracle.
[root@pdevspdb ~]# chage -l oracle
Last password change : May 04, 2016
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
chage -I -1 -m 0 -M 99999 -E -1 username