ORA-28001:the password has expired oracle数据库密码过期

报错:ORA-28001:the password has expired

原因: 默认Oracle密码180天会过期

解决:cmd  cd..到根目录

          sqlplus / as sysdba;

          alter user 用户名 identified  by "要修改成的密码";

(如果是在plsql登录的话,plsql会直接弹出对话框让你做修改,更简单一些)

 

了解一下密码期限

先查看用户的profile

select username,profile from dba_users;

上一步知道了用户的profile为DEFAULT,就可以查看profile为DEFAULT用户的密码周期了

select * from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';

密码周期为180天

你可能感兴趣的:(oracle)