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博客 ” ,链接:http://blog.itpub.net/12778571/viewspace-258734/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12778571/viewspace-258734/