`
天空之城
  • 浏览: 398117 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Oracle10G 如何解除scott用户的锁定状态

 
阅读更多
问题描述:
    新装完Oracle10g后,用scott/tiger测试,会出现以下错误提示:
    oracle10g the account is locked
    oracle10g the password has expired
 
原因:默认Oracle10g的scott不能登陆。
 
解决:
(1)conn sys/sys as sysdba;//以DBA的身份登录
(2)alter user scott account unlock;// 然后解锁
(3)conn scott/tiger //弹出一个修改密码的对话框,修改一下密码就可以了
 
具体操作步骤如下:
C:> sqlplus
请输入用户名:sys
输入口令:sys as sysdba //注意:在口令这里输入的密码后面必须要跟上 as sysdba 才可以。
SQL> alter user scott account unlock;
     用户已更改.
SQL> commit;
     提交完成.
SQL> conn scott/tiger
更改scott口令
新口令:tiger
重新键入新口令:tiger
口令已更改
已连接。
//完成。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics