首页 > 网站 > 建站经验 > 正文

Ora,cle解除对SCOTT/TIGER用户的锁定

2019-11-02 14:27:20
字体:
来源:转载
供稿:网友

   Oracle

好看的邪恶搞笑漫画[www.62-6.com/1/manhua/]
除对SCOTT/TIGER用户的锁定

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

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

  ACCOUNT_STATUS:EXPIRED & LOCKED

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

  conn sys/[email protected] as sysdba;

  alter user scott account unlock;

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

  ACCOUNT_STATUS:EXPIRED

  3、连接SCOTT用户:

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

  conn scott/[email protected];此次可以正常连接此用户。

  4、查看SCOTT用户的状态:

  conn sys/[email protected] as sysdba;

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

  ACCOUNT_STATUS:OPEN

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表