ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 解锁oralce中的用户

解锁oralce中的用户

原创 Linux操作系统 作者:mengzhaoliang 时间:2008-05-04 09:40:07 0 删除 编辑

1 系统锁住的用户
SQL> select username,account_status from dba_users where username='SCOTT';

USERNAME                       ACCOUNT_STATUS
------------------------------ --------------------------------
SCOTT                          EXPIRED & LOCKED

2 锁住的用户不能登陆

SQL> connect scott/tiger
ERROR:
ORA-28000: the account is locked


警告: 您不再连接到 ORACLE。

3 用sys解锁
SQL> alter user scott account unlock;

用户已更改。

SQL> select username,account_status from dba_users where username='SCOTT';

USERNAME                       ACCOUNT_STATUS
------------------------------ --------------------------------
SCOTT                          EXPIRED


4 解锁后登陆改密码
SQL> conn scott/tiger
ERROR:
ORA-28001: the password has expired


更改 scott 的口令
新口令:
重新键入新口令:
口令已更改
已连接。
SQL>

5 scott用户中的对象全部损坏,可用sys运行$ORACLE_HOME\RDBMS\ADMIN\scott.sql脚本重新生成.

SQL>@G:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\scott.sql

 

 

 

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12778571/viewspace-258734/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2008-01-30

  • 博文量
    336
  • 访问量
    3085635