1、查看用户有无过期
1 | select username,account_status,expiry_date from dba_users; |
2、查看用户使用概要文件
1 | SELECT username,PROFILE FROM dba_users; |
3、查看概要文件密码有效期
1 | SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name like 'PASSWORD%'; |
4、修改概要文件有效期
1 | ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; |
5、再次查看用户过期时间,expiry_date字段已经变为空
1 | select username,account_status,expiry_date from dba_users; |