如何将数据库账号(用户)解锁
2016-04-08 14:05
375 查看
--1
ALTER USER username ACCOUNT UNLOCK;
--2
sqlplus / as sysdba
alter user system account unlock
--3
默认的scott用户是被锁定的,先解锁就能登陆上了。
使用下面的语句解锁scott: alter user scott account unlock;
解锁之后可能会要求你改密码: alter user scott identified by tiger;
再登陆: sqlplus scott/tiger 就能登陆了
Oracle锁定和解锁用户的命令 SQL> conn /as sysdba 已连接。
//scott 用户在没有设定tieger默认密码时,
登陆不上锁定用户的方法: SQL> alter user test account lock; 用户已更改。
-------test用户登陆数据库,失败了。
C:\>sqlplus test/test ERROR: ORA-28000: the account is locked
解锁的方法: SQL> conn /as sysdba SQL> alter user test account unlock; 用户已更改。
来自:http://blog.sina.com.cn/s/blog_6438b0e50100nrvp.html
ALTER USER username ACCOUNT UNLOCK;
--2
sqlplus / as sysdba
alter user system account unlock
--3
默认的scott用户是被锁定的,先解锁就能登陆上了。
使用下面的语句解锁scott: alter user scott account unlock;
解锁之后可能会要求你改密码: alter user scott identified by tiger;
再登陆: sqlplus scott/tiger 就能登陆了
Oracle锁定和解锁用户的命令 SQL> conn /as sysdba 已连接。
//scott 用户在没有设定tieger默认密码时,
登陆不上锁定用户的方法: SQL> alter user test account lock; 用户已更改。
-------test用户登陆数据库,失败了。
C:\>sqlplus test/test ERROR: ORA-28000: the account is locked
解锁的方法: SQL> conn /as sysdba SQL> alter user test account unlock; 用户已更改。
来自:http://blog.sina.com.cn/s/blog_6438b0e50100nrvp.html
相关文章推荐
- mysql数据库cpu、mem使用率高的解决案例
- Oracle数据库char(7)改为char(36)后,再改为varchar2(36)出现的问题
- mysql模糊查询表里的json格式的数据-177
- 1、查询数据库并分页显示出来
- Redis和Memcache对比及选择
- mongodb比较有用的查询技巧
- Informatica元数据库解析
- hibernate 使用sql 查询返回实体
- hibernate 使用sql查询列表返回map 形式
- navicat 连接远程mysql
- logstash+es+kibana+redis搭建
- mysql的字符串函数
- DEBUG——redhat下安装eclipse&debug redis源码
- sqlplus的非交互式使用
- MYSQL 分组合并函数
- mysql innodb的锁机制分析
- MySQL中LEFT JOIN 、RIGHT JOIN、INNER JOIN、FULL JOIN 的区别
- Mysql常用命令详解
- ibatis 改下数据库连接
- ADO连接sqlserver数据库,CreateInstance返回 REGDB_E_CLASSNOTREG Class not registered