bash-2.03# export ORACLE_HOME=/opt/app/oracle9202
bash-2.03# export ORACLE_SID=testfms
bash-2.03# export PATH=/opt/app/oracle9202/bin:$PATH
bash-2.03# sqlplus /nolog
SQL*Plus: Release 9.2.0.2.0 - Production on Thu Aug 30 12:10:25 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect sys as sysdba
Enter password:
Connected to an idle instance.
SQL> startup nomount
ORA-01031: insufficient privileges
SQL>
I used the same user (SYS) the first time, and then it was no problem
starting in nomount mode. This is Oracle 9.2 on Sun OS 5.8.
Regards
Odd B Andersen
ErgoGroup AS
Oslo, Norway
Odd Bjørn Andersen wrote:
Are you logged into SQL+ as root? su to the oracle software owner, set the
variables (or use . oraenv) and try again.
I did su to oracle, and used oraenv, but still got the same messages
'insuffisient privileges'.
Odd B Andersen
su - oracle , not su oracle if you want to have the oracle
environment.
H.
You need to use 'su - oracle' to get the proper environment:
bash-2.03# su - oracle
$
Also you need to verify that the proper user group (dba) is assigned
to 'oracle' at login:
$ touch testfile
$ ls -l testfile
-rw-rw-r-- 1 oracle dba 0 Aug 30 08:16 testfile
At this point you can verify the ORACLE_SID is correct, invoke sqlplus
and start your database. And you should have no further 'insufficient
privileges' errors.
David Fitzjarrell