How to modify Oracle password expired

1. Check which user's proifle is, usually default:
sql>SELECT username,PROFILE FROM dba_users;

2. Check the password validity setting of the specified profile (such as default):
sql>SELECT * FROM dba_profiles s WHERE s.profile=\ 'DEFAULT\' AND resource_name=\'PASSWORD_LIFE_TIME\';

3. Change the password validity period from the default 180 days to "unlimited":
sql>ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
No need to restart the database after modification, it will take effect immediately .

4. After modification, the account that has not been warned by ORA-28002 will not encounter the same prompt again;
the account that has been prompted must change the password again, for example:
$sqlplus / as sysdba
sql> alter user smsc identified by <Original password> ---- No need to change the new password
oracle11g startup parameter resource_limit No matter if it is set to false or true, the validity period of the password is valid, so it must be modified through the above methods. Please change the above account name according to the actual account name used.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326615881&siteId=291194637