首頁 >資料庫 >mysql教程 >Oracle解除对SCOTT/TIGER用户的锁定

Oracle解除对SCOTT/TIGER用户的锁定

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原創
2016-06-07 14:54:171269瀏覽

Oracle 解除对SCOTT/TIGER用户的锁定 1、查证目前系统对于SCOTT用户的状态: select * from dba_users where upper(username)='SCOTT'; ACCOUNT_STATUS:EXPIRED LOCKED 2、解除对于SCOTT用户的锁定: conn sys/bitservice@ttonline as sysdba; alter user

  Oracle 解除对SCOTT/TIGER用户的锁定

  1、查证目前系统对于SCOTT用户的状态:

  select * from dba_users where upper(username)='SCOTT';

  ACCOUNT_STATUS:EXPIRED & LOCKED

  2、解除对于SCOTT用户的锁定:

  conn sys/bitservice@ttonline as sysdba;

  alter user scott account unlock;

  select * from dba_users where upper(username)='SCOTT';

  ACCOUNT_STATUS:EXPIRED

  3、连接SCOTT用户:

  conn scott/tiger@ttonline;提示该用户已经过期,请重新输入新的密码:tiger

  conn scott/tiger@ttonline;此次可以正常连接此用户。

  4、查看SCOTT用户的状态:

  conn sys/bitservice@ttonline as sysdba;

  select * from dba_users where upper(username)='SCOTT';

  ACCOUNT_STATUS:OPEN

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn