以下是plsql上运行的命令,passw命令无反应,而sqlplus中正常,请问是什么原因
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 
Connected as scott
 
SQL> conn system
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 
Connected as SYS
 
SQL> show user
User is "SYS"
 
SQL> passw
SQL> passw test
SQL> passw;
SQL> 

解决方案 »

  1.   

     
    SQL> ALTER USER scott IDENTIFIED BY aaa ;
     
    User altered
     
    SQL> 
      

  2.   

    这个没错,可是passw命令在sqlplus中能够修改密码,怎么在plsql中无法修改了?
      

  3.   

    plsql developer的command窗口跟sqlplus是不一样的。
    不是所有的sqlplus命令都能在里面用
      

  4.   

    plsql登录时有个connect as '',如果是一般用户选Normal,如果是sys登录要选择sysdba
      

  5.   

    plsql中确实无法修改。两者是有区别。
      

  6.   

    Examples
    Changing User Identification: Example
    The following statement changes the password of the user sidney (created in "Creating a Database User: Example") second_2nd_pwd and default tablespace to the tablespace example:ALTER USER sidney 
        IDENTIFIED BY second_2nd_pwd
        DEFAULT TABLESPACE example;