Solved

Sqlplus says insufficient privileges

Posted on 2007-04-03
6
876 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
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.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

786 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