由于Oracle安装好后一直没有修改缺省密码,后来发现密码竟然被修改掉了,没办法只有重设
$>sqlplus /nolog
SQL>conn / as sysdba
SQL>alter user system identified by [password]
SQL>quit不过走到
SQL>alter user system identified by [password]
这里时,我用命令
alter user system identified by 
或alter user system identified by 1
或alter user system identified by '1'
或alter user system identified by "1"都会出现SQL> alter user sys identified by "1"
  2 _
然则光标就停在2后面啦,大家说说我哪里做错啦,谢谢

解决方案 »

  1.   

    是不是sqlplus环境变量linesize太小的原因?
    你用set lines 100试试
      

  2.   

    都不行,不过我在
    SQL> alter user sys identified by "1"
      2 _
    时按回车键就回到
    SQL>
      

  3.   

    回车后光标当然在第二行了!alter user sys identified by "1" 后要加“;”再回车。
      

  4.   

    SQL> alter user system identified by system;用户已更改。不过我在Enterprise Manager Console用
    user system
    password system
    还是提示密码不对,是什么时候原因呢?
      

  5.   

    SQL> conn sys/change_on_install@testdb as sysdba
    ERROR
    ORA-01017: invalid username/password; logon denied
    Warning: You are on longer connected to ORACLEthe sysdba trick is generally used to allow other NON-SYS users to connect btw, 
    best to use your OWN account that has been granted sysdba!$ orapwd file=orapw password=foobar entries=40I just recreated my password file with a password foobar.  My sys password is 
    NOT foobar
    SVRMGR> alter user sys identified by change_on_install;
    Statement processed.
    SVRMGR> connect sys/change_on_install@ora816dev as sysdba;
    Connected.
    SVRMGR> 
      

  6.   

    再不清楚就参考:
    http://www.dbonline.cn/source/oracle/20040211/STR_database%20password%20file%20use%20and%20maintain(1).htmlhttp://www.dbonline.cn/source/oracle/20040211/STR_database%20password%20file%20use%20and%20maintain(2).html
      

  7.   

    在/opt/oracle/product/dbs目录下有一个orapwxxx.init文件,
    你找一个知道密码实例的orapwxxx.init文件,覆盖该文件或许可以