萬盛學電腦網

 萬盛學電腦網 >> 數據庫 >> oracle教程 >> Oracle解除對SCOTT/TIGER用戶的鎖定

Oracle解除對SCOTT/TIGER用戶的鎖定

   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

copyright © 萬盛學電腦網 all rights reserved