oracle设置用户密码永不过期
转载:原文链接https://blog.csdn.net/chenqi3166/article/details/125141774
1.查询数据库用户何时过期
select username,expiry_date from dba_users where username in (‘MES’,‘SYSTEM’);
如果EXPIRY_DATE为NULL,表示永不过期!
2、查询用户所属的密码过期策略
select username,profile from dba_users where username in (‘MES’,‘SYSTEM’);
如上述密码过期策略为默认策略“DEFAULT"
3、查询该策略的密码过期时间
select * from dba_profiles where profile=‘DEFAULT’ and resource_name=‘PASSWORD_LIFE_TIME’;
如图,LIMIT180(单位:天),表示180天过期。
4、修改该策略的过期时间
alter profile default limit password_life_time unlimited;
可以设置成想要的过期天数,也可以设置成 ”unlimited" 表示修改为永不过期。再次查询是否生效。
select * from dba_profiles where profile=‘DEFAULT’ and resource_name=‘PASSWORD_LIFE_TIME’;
————————————————
版权声明:本文为CSDN博主「水瘦山寒」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/chenqi3166/article/details/125141774