Steven5007

导航

ORA-28000: the account is locked解决

ORA-28000: the account is locked解决

1.运行cmd命令行

  录入

sqlplus /nolog       无用户名登录

conn /as sysdba   连接到数据本地数据

alter user sgyw  account unlock;   

alter user sgyw  identified by 123456;  //重置用户sgyw的密码

 2.oracle11g,会遇到sqlplus登陆oracle数据库时提示“口令将过期 ”等情况。

解决方案

按照如下步骤进行操作:
1、查看用户proifle,一般是default:
sql>Select username,PROFILE FROM dba_users;

2、查看概要文件(如default)的密码有效期:
sql>Select * FROM dba_profiles s Where s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

3、将密码有效期由默认的180天修改成“无限制”:
sql>Alter PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

修改之后不需要重启动数据库,会立即生效。

 

posted on 2019-10-22 10:49  Steven5007  阅读(380)  评论(0编辑  收藏  举报