Oracle database changes account password and sets account validity period
Connect to the database as a privileged user
sqlplus / as sysdba
Check account status
SELECT username, account_status FROM dba_users where username = ‘xxx'
Unlock user
ALTER USER xxxx ACCOUNT UNLOCK;
Invalidate the original password
ALTER USER xxxx PASSWORD EXPIRE;
Set the account validity period to permanent
ALTER PROFILE default LIMIT PASSWORD_LIFE_TIME UNLIMITED;
Change user password
ALTER USER 用户名 IDENTIFIED BY 密码;