sys已经是sysdba了,你为什么要这样做?

解决方案 »

  1.   

    不过我的还是没有报错:SQL> conn / as sysdba;
    已连接。
    SQL> grant sysdba to sys;授权成功。
    我的版本是9i
      

  2.   

    ORA-01994 GRANT failed: cannot add users to shared password fileCause: A grant failed because a user could not be added to the password file. This is because the value of the REMOTE_LOGIN_PASSWORDFILE initialization parameter is set to SHARED.Action: To add a user to the password file, shut down the database, change the REMOTE_LOGIN_PASSWORDFILE initialization parameter to EXCLUSIVE, and restart the database.
      

  3.   

    REMOTE_LOGIN_PASSWORDFILE 设置成了PUBLICdown数据库,设置 REMOTE_LOGIN_PASSWORDFILE = exclusive或private
      

  4.   

    这是因为初始化参数REMOTE_LOGIN_PASSWORDFILE设置为SHARED.行动:
    为了添加一个用户到密码文件中,关闭数据库,更改初始化参数
    REMOTE_LOGIN_PASSWORDFILE为EXCLUSIVE,然后重新启动数据库.