ORA-01031:insufficient privileges,I already checked the other threads about this, still doesn't work [message #140009] |
Fri, 30 September 2005 08:33 |
epicuro
Messages: 2 Registered: September 2005 Location: A secret place!
|
Junior Member |
|
|
Dear Oracle users,
I've installed Oracle 9.2.0 on a Fedora Core 1 machine, and I'm having problems using the sysdba account. Could someone please give me some advice ?
I installed Oracle under the oracle user, that it's under the dba group.
When I installed, I didn't chose the option to create a database. I just installed the software because I wanted to create the database later manually (not using dbca).
Now, as user oracle :
-bash-2.05b$ id
uid=7191(oracle) gid=1101(dba) groups=1101(dba)
-bash-2.05b$ sqlplus "/ as sysdba"
SQL*Plus: Release 9.2.0.4.0 - Production on Fri Sep 30 15:23:59 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
SQL>
And with root user :
[root@asterix root]# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),1101(dba)
[root@asterix root]# sqlplus "/as sysdba"
SQL*Plus: Release 9.2.0.4.0 - Production on Fri Sep 30 15:24:24 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-01031: insufficient privileges
Enter user-name:
Could someone please help me ? I can't see what am I doing wrong. root is under dba group so oracle user does.
Thanks.
Cheers,
Mark
[Updated on: Fri, 30 September 2005 08:35] Report message to a moderator
|
|
|
|
Re: ORA-01031:insufficient privileges,I already checked the other threads about this, still doesn't [message #140052 is a reply to message #140046] |
Fri, 30 September 2005 10:38 |
epicuro
Messages: 2 Registered: September 2005 Location: A secret place!
|
Junior Member |
|
|
Dear Mahesh,
Thanks for your prompt reply.
I need this because I'm new to oracle and I just wanted to see how the "connect / as sysdba" works.
Quote: | Root does not need to login into oracle as a Sysdba
|
I don't want to use it on production systems. I'm just learning. In the "Oracle9i Database Administrator's Guide Release 2 (9.2)" manual, it doesn't say anything about root not being able to connect as sysdba.
What I want to know is why this doesn't work. Is there a hardcoded function in sqlplus that doesn't let you connect as sysdba if your userid is 0 ?
Thanks.
|
|
|
|
|
Re: ORA-01031:insufficient privileges,I already checked the other threads about this, still doesn't [message #149428 is a reply to message #140009] |
Thu, 01 December 2005 14:26 |
nmacdannald
Messages: 460 Registered: July 2005 Location: Stockton, California - US...
|
Senior Member |
|
|
You really should have the .profile of the Oracle Software Owner set to see only that database. Root is not allowed to install and you should not access the databse as root. Here is my .profile:
>cat .profile
MAIL=/usr/mail/${LOGNAME:?}
set umask 022
#
###
#set terminal charistics
#
stty istrip
stty columns 80
stty rows 36
set -o emacs
#DISPLAY=solarsystem:0.0
#export DISPLAY
#
###
ORACLE_BASE=/u04/app/oracle
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.1.0.2
export ORACLE_HOME
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/ccs/lib:/usr/dt/lib:/usr/lib:$ORACLE_HOME/jdbc/lib$ORACLE_HOME/lib32
export LD_LIBRARY_PATH
TMPDIR=/var/tmp
export TMPDIR
ORACLE_SID=os2t
export ORACLE_SID
ORACLE_TERM=vt220
export ORACLE_TERM
CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip
export CLASSPATH
#ORA_NLS=AMERICAN_AMERICA.US7ASCII
#export ORA_NLS
#SQLPATH=$ORACLE_HOME/
#export SQLPATH
#
###
# Set environmentals for util
###
UNZ_DIR=$ORACLE_HOME/oraunzip
export UNZ_DIR
#
###
# Add to the PATH env
### Original Path...
PATH=/sbin:/usr/sbin:$ORACLE_HOME:$ORACLE_HOME/bin:/export/home/orat10:/export/home/scripts:/opt/csw/bin:/bin:/usr/sbin:/usr/bin:/usr /ccs/bin:/usr/ucb:/etc:/usr/lib/lp/postscript:/usr/bin/unzip:/usr/local/bin:/u04/oradata/os2t/101:/usr/openwin/bin:/usr/gnome:/opt/sf w/bin/:/usr/dt/bin/:u05/oracle/os2t/budir
export PATH
ORAENV_ASK=NO
. /export/home/orat10/scripts/orafuncds
. /export/home/orat10/scripts/don-funcds
MANPATH=$MANPATH:/usr/share/man
export MANPATH
PS1="[`hostname`:$LOGNAME]$"
date
who -u
stty erase ^?
set -o vi
PS1="
`whoami`*\${ORACLE_SID}-\${PWD}
>"
export EDITOR=vi
This runs whenever you log into orat10(software owner) using ksh.
|
|
|
|
Re: ORA-01031:insufficient privileges,I already checked the other threads about this, still doesn't [message #467749 is a reply to message #150472] |
Tue, 27 July 2010 01:50 |
mayanksi
Messages: 1 Registered: July 2010
|
Junior Member |
|
|
I have sucessfully overcome this error Insuffcient Permission
Below is the solution
ASMM10 /oravl01/oracle > orasql
SQL*Plus: Release 10.2.0.2.0 - Production on Tue Jul 27 11:58:08 2010
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
ERROR:
ORA-01031: insufficient privileges
ASMM10 /etc>id
uid=269(oracle) gid=102
orapwd file=orapwAMCINST2 password=manager entries=100 force=y
Group should be 201
ASMM10 /oravl01/oracle > cat /etc/group | grep dba
dba::201:
ASMM10 /etc > cat /etc/passwd | grep oracle
oracle:x:269:201:Shripad ,36133,shripadg,GEN,ASMS-DEV,,=idm=,:/oravl01/oracle:/usr/bin/tcsh
After fixing the DBA group id
ASMM10 /etc > id
uid=269(oracle) gid=201(dba)
ASMM10 /oravl01/oracle > orasql
SQL*Plus: Release 10.2.0.2.0 - Production on Tue Jul 27 12:10:22 2010
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning and Data Mining options
SQL>
|
|
|