Solved

Sqlplus says insufficient privileges

Posted on 2007-04-03
6
861 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
  • 3
  • 3
6 Comments
 
LVL 34

Accepted Solution

by:
johnsone earned 500 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 34

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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

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 34

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now