1、oracle查询数据库密码哪一天过期
select username,account_status,expiry_date,profile from dba_users;
其中expiry_date即是过期的时间
2、查询数据库密码有效期
select * from dba_profiles s where s.profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';
3、修改数据库密码永不过期
alter profile default limit password_life_time unlimited;
4、修改数据库密码180天过期
alter profile default limit password_life_time 180;
本文介绍了如何在Oracle数据库中查询用户密码的过期日期,通过`dba_users`和`dba_profiles`表进行操作。还展示了如何将密码设置为永不自动过期和指定180天过期的命令。
1万+

被折叠的 条评论
为什么被折叠?



