Oracle database settings password never expires
#登陆dba
su - oracle
sqlplus / as sysdba
1. Check which user's proifle is, usually default:
sql> select username,profile from dba_user;
2. View the password validity period setting of the specified profile (such as default):
sql> select * from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';
3. Modify the password validity period from the default 180 days to "unlimited":
#设置密码100天期限
sql> alter profile default limit password_life_time '100';
#设置密码永不过期
sql> alter profile default limit password_life_time unlimited;
There is no need to restart the database after the modification, it will take effect immediately.
Original link: https://blog.csdn.net/qq_24273557/article/details/80437301