加入收藏 | 设为首页 | 会员中心 | 我要投稿 衡阳站长网 (https://www.0734zz.cn/)- 数据集成、设备管理、备份、数据加密、智能搜索!
当前位置: 首页 > 站长百科 > 正文

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

发布时间:2020-12-26 20:10:57 所属栏目:站长百科 来源:网络整理
导读: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 sc

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

(编辑:衡阳站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读