前几天安装的oracle 忘记了密码 scott 和 sys 都登陆不上去了,只有system能够登录, 怎么查询另两个用户的密码并修改密码呢?

解决方案 »

  1.   

    操作系统下sqlplus / as sysdba登录先然后:
    alter user sys identified by passwd_str;
    alter user scott identified by passwd_str;
      

  2.   

    conn / as sysdba
    alter user scott identified by 'password'
      

  3.   

    SQL> show user
    USER 为"SYSTEM"
    SQL> conn system/lgmf as sysdba
    已连接。
    SQL> ALTER USER scott identified by yang;用户已更改。
      

  4.   

    SQL> ALTER USER SYS IDENTIFIED BY lgmf;用户已更改。只能更改,无法查询,ORACLE把你的密码用加密算法加密了
      

  5.   

    我用 system 登录进去之后 , 使用
    alter user scott identified by thinkpad; 
    执行完提示 用户已更改
    关掉 在打开 使用 scott  thinkpad 登录,提示 the account is locked 
      

  6.   

    alter user scott account unlock;
      

  7.   

    为什么我更改完密码 用户会被自动lock呢?
      

  8.   


    scott账号默认就是锁着的,如果你一直没用过的话
      

  9.   

    修改scott 
    >alter user scott account unlock;
    回车(会看到user altered 信息)
    >commit
    回车(会出现commit complete 信息)
    >conn scott/tiger(scott的密码)
    回车