欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

sqlplus / as sysdba报错ORA-01031: insufficient privileges

发布时间:2025/5/22 编程问答 38 豆豆
生活随笔 收集整理的这篇文章主要介绍了 sqlplus / as sysdba报错ORA-01031: insufficient privileges 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

使用sqlplus "/ as sysdba"连DB,报错:ORA-01031: insufficient privileges

[oracle@bej301441 lib]$ sqlplus "/ as sysdba"
SQL*Plus: Release 10.1.0.5.0 - Production on Tue Jul 3 03:58:50 2012
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
ERROR:
ORA-01031: insufficient privileges
Enter user-name: system
Enter password:


解决过程:

vi /u01/oracle/mc3yd213/db/tech_st/11.1.0/rdbms/lib/config.c
/*  $Header: config_ux.tmp 120.0 2005/10/13 10:30:15 ssuraj noship $ */
/*  SS_DBA_GRP defines the UNIX group ID for sqldba adminstrative access. */
/*  Refer to the Installation and User's Guide for further information.   */
#define SS_DBA_GRP "oinstall"
#define SS_OPER_GRP "oinstall"

说明数据库使用的group是oinsall


[oracle@bej301441 lib]$ cat /etc/group
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon

......

stapusr:x:107:
fax:x:78:
fuse:x:108:
ricci:x:109:
oinstall:x:54321:
dba:x:54322:oracle
avahi-autoipd:x:110:
sabayon:x:86:
admin:x:54323:
[oracle@bej301441 lib]$

发现oracle没有在oinstall这个组下


然后把oracle添加到oinstall组

/usr/sbin/usermod -a -G oinstall oracle


再以sysdba的身份就可以连数据库了


转载请注明出处:http://blog.csdn.net/pan_tian/article/details/7712975

======EOF======

总结

以上是生活随笔为你收集整理的sqlplus / as sysdba报错ORA-01031: insufficient privileges的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。