我建立了一个用户adm然后把dba角色给他,然后使用它在服务器上login可以,但在客户端以sysdba login (sqlplus adm/adm@orcl as sysdba)提示授权不足请问甚末原因,如何修改,谢!

解决方案 »

  1.   

    需要系统权限 sysdba,角色 DBA 不包含 sysdba 权限。
      

  2.   

    那为甚末我可以在server端用adm以sysdba login (sqlplus adm/adm@orcl as sysdba) ? 
      

  3.   

    服务器端执行grant resource,connect to adm;
    客户端还按你原来那么登陆你再看看行不行
      

  4.   


    是这样的。
    d:\>sqlplus "chennan/chennan@cwtest201 as sysdba"SQL*Plus: Release 9.2.0.8.0 - Production on 星期一 7月 21 10:29:20 2008Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.ERROR:
    ORA-01031: insufficient privileges
    请输入用户名:
    d:\>
    d:\>
    d:\>
    d:\>sqlplus /nologSQL*Plus: Release 9.2.0.8.0 - Production on 星期一 7月 21 10:29:38 2008Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    SQL> conn chennan/chennan@cwtest201 as sysdba
    ERROR:
    ORA-01031: insufficient privileges
    SQL> conn sys/chennan@cwtest201 as sysdba
    已连接。
    SQL> grant sysdba to chennan
      2  ;授权成功。SQL> exit
    从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production中断开d:\>sqlplus "chennan/chennan@cwtest201 as sysdba"SQL*Plus: Release 9.2.0.8.0 - Production on 星期一 7月 21 10:38:20 2008Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    连接到:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Productionsys@cwtest201>
    sys@cwtest201>