?
Solved

Sqlplus says insufficient privileges

Posted on 2007-04-03
6
Medium Priority
?
913 Views
Last Modified: 2013-12-18
When I try to connect to my oracle database on my RHEL4 server I get this error:
ORA-01031: insufficient privileges
to connect I am typing:
[oracle@pavo3 ~]$ sqlplus / as sysdba
This is my bash_profile
             unset USERNAME
             export ORACLE_HOME=/opt/nnoracle/u01/app/oracle/product/10.2.0/db_1
             export ORACLE_BASE=/opt/nnoracle/u01/app/oracle
             export ORACLE_SID=titan
             PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
             export PATH
I have the owenership on directories u01-8 all as oracle:oinstall
I have done several oracle installs but I cant seem to figure this out.  Any ideas?
0
Comment
Question by:frobie192
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 35

Accepted Solution

by:
johnsone earned 2000 total points
ID: 18844372
Normally to connect as sysdba, you need to be in the dba group on the UNIX side.  What do you get if you run id in UNIX?
0
 

Author Comment

by:frobie192
ID: 18845050
[oracle@pavo3 ~]$ id
uid=500(oracle) gid=500(oinstall) groups=500(oinstall)

However when I look at the groups file the oracle user is in the dba 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
tty:x:5:
disk:x:6:root
lp:x:7:daemon,lp
mem:x:8:
kmem:x:9:
wheel:x:10:root
mail:x:12:mail
news:x:13:news
uucp:x:14:uucp
man:x:15:
games:x:20:
gopher:x:30:
dip:x:40:
ftp:x:50:
lock:x:54:
nobody:x:99:
users:x:100:
dbus:x:81:
floppy:x:19:
vcsa:x:69:
rpm:x:37:
haldaemon:x:68:
utmp:x:22:
netdump:x:34:
nscd:x:28:
slocate:x:21:
sshd:x:74:
rpc:x:32:
rpcuser:x:29:
nfsnobody:x:4294967294:
mailnull:x:47:
smmsp:x:51:
pcap:x:77:
xfs:x:43:
ntp:x:38:
gdm:x:42:
oinstall:x:500:
dba:x:501:500:
0
 
LVL 35

Expert Comment

by:johnsone
ID: 18845546
Try doing

newgrp dba

That should change you to the dba group and then it should work.  I would guess that if you look in /etc/passwd the dba group is not your default group.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:frobie192
ID: 18845548
ok I got it, 500 was put in there because that is the uid of the user oracle, it has to be the actual username and not the uid.  Is that true in all distrobutions or only RHEL?
0
 
LVL 35

Expert Comment

by:johnsone
ID: 18845579
No, that is true of all versions of UNIX that I have ever worked with.
0
 

Author Comment

by:frobie192
ID: 18845890
I appreciate the assistance, thank you very much.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
In this article, we’ll look at how to deploy ProxySQL.
Via a live example, show how to take different types of Oracle backups using RMAN.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question