zoukankan      html  css  js  c++  java
  • 【转】oracle10g的scott用户无法登陆的解决办法,即ora28000 the account is locked错误代码

    转帖地址:http://hi.baidu.com/zhangxia6110/blog/item/a4e2aa0001c3a483e850cd74.html

    在plsql developer中要是以scott/tiger登录时提示ora-28000 the account is locked。

    解决办法:

    新装完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 //弹出一个修改密码的对话框,修改一下密码就可以了

    在运行里面输入cmd在DOS模式下输入sqlplus,以system用户名登录,密码是刚装oracle时自己填写的密码orcl,登录进去以后。

    SQL> conn sys/sys as sysdba;       (分号是必须的但是我是以system登录的所在这不应该写conn sys/sys as sysdba应该写conn system/orcl as sysdba;)
             Connected.
    SQL> alter user scott account unlock;
             User altered.
    SQL> commit;
             Commit complete.
    SQL> conn scott/tiger//请输入新密码,并确认后OK
    Password changed
    Connected.

    这时再到plsql developer里面以scott/tiger登录就可以了。。。。。

  • 相关阅读:
    Encoding
    F Takio与Blue的人生赢家之战
    D FFF团的怒火
    C Golden gun的巧克力
    B 倒不了的塔
    A jubeat
    17230 计算轴承半径
    10686 DeathGod不知道的事情
    10688 XYM-AC之路
    10692 XYM-入门之道
  • 原文地址:https://www.cnblogs.com/jianglan/p/2380568.html
Copyright © 2011-2022 走看看