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======

你可能感兴趣的:(privilege)