ITPub博客

首页 > 数据库 > Oracle > Oracle所有者不是dba 引起sqlplus / as sysdba 登录报错ORA-01031

Oracle所有者不是dba 引起sqlplus / as sysdba 登录报错ORA-01031

原创 Oracle 作者:maohaiqing0304 时间:2014-12-21 20:40:44 0 删除 编辑


标题: Oracle所有者不是dba 引起sqlplus / as sysdba 登录报错ORA-01031 

作者:lōττéry©版权所有[文章允许转载,但必须以链接方式注明源地址,否则追究法律责任.]



环境:
[oracle@sinosoft admin]$ sqlplus / as sysdba  

SQL*Plus: Release 11.2.0.3.0 Production on Thu Oct 16 14:46:47 2014

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

ERROR:
ORA-01031: insufficient privileges
....

[oracle@sinosoft ~]$ sqlplus lottery/lottery     -- 普通用户没问题

SQL*Plus: Release 11.2.0.3.0 Production on Thu Oct 16 14:53:27 2014

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> 

----检查
[root@sinosoft ~]# id  oracle 
uid=501(oracle) gid=1302(oinstall) 组=1302(oinstall)
[root@sinosoft ~]# usermod -g oinstall -G dba,oper,asmdba,asmadmin oracle
[root@sinosoft ~]# id oracle
uid=501(oracle) gid=1302(oinstall) 组=1302(oinstall),1200(asmadmin),1201(asmdba),1300(dba),1301(oper)
[root@sinosoft ~]# su - oracle
[oracle@sinosoft ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Thu Oct 16 14:52:32 2014

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> 


  【源于本人笔记】 若有书写错误,表达错误,请指正...


此条目发表在 Oracle  分类目录。将固定连接加入收藏夹。


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28602568/viewspace-1375239/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
.

注册时间:2013-03-13

  • 博文量
    117
  • 访问量
    2626234