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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。