Oracle 11g 密码过期解决方案 ORA-28001:the password has expired

连接时报错:ORA-28001:the password has expired

解决方案一

前提:当还有客户端登录尚未断开连接时,选择此方案。

select username,PROFILE FROM dba_users;              -- PROFILE一般都是 DEFAULT
select * FROM dba_profiles s Where s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';             -- 默认是180天
alter PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;           -- 将密码有效期由默认的180天修改成“无限制”

解决方案二

前提:当没有任何客户端能登录时,选择此方案。

管理员运行CMD,执行以下命令:

sqlplus /nolog              //进入oralce控制台

conn /as sysdba          //以管理员权限登录

alter user user123 identified by password123;   //修改用户名user123 密码为password123

 

 end.

 

posted on 2020-02-29 13:04  梦幻朵颜  阅读(457)  评论(0编辑  收藏  举报