ITPub博客

首页 > 数据库 > Oracle > oracle 11g用户的解锁与加锁(hr模式)

oracle 11g用户的解锁与加锁(hr模式)

Oracle 作者:大_米 时间:2015-01-11 17:03:33 0 删除 编辑
SQL> conn sys/sys as sysdba
Connected.
SQL> show user
USER is "SYS"
SQL> alter user hr account unlock;(解锁)
User altered.
SQL> alter user hr identified by *password*;(更改密码,这一步是必需的,否则hr模式还是不能使用的)
User altered.
到这里hr模式就可以使用了,试试:
SQL> conn hr/*password*
Connected.
SQL> show user
USER is "HR"
----------------------------------
相反的
SQL> alter user hr account lock;(上锁)
User altered.
SQL> alter user hr password expire;(密码失效)
User altered.
SQL> conn hr/*password*
ERROR:
ORA-28000: the account is locked
Warning: You are no longer connected to ORACLE.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30090120/viewspace-1398123/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 大米的oracle
请登录后发表评论 登录
全部评论

注册时间:2015-01-03

  • 博文量
    19
  • 访问量
    36457