1.查看用户和profile,testuser为要查找的用户名,按实际情况来修改。
select username,profile from dba_users where username=‘testuser’; --一般查出为DEFAULT
2.查看默认设置的密码到期时长,一般是180天。
select * from dba_profiles s where s.profile=‘DEFAULT’ and s.resource_name=‘PASSWORD_LIFE_TIME’; --一般limit结果为180
3.设置密码永不过期。
#修改之后不需要重启动数据库,会立即生效。
alter profile DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
Oracle设置密码永不过期
最新推荐文章于 2024-05-30 19:18:21 发布