Hello,
I have installed Oracle 10g on RHEL 4 succesfully. After installing the database starts normally.
But the problem I am having is I get the following error when I try to execute the 'dbstart' script as root
----
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 5 09:50:36 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> ERROR:
ORA-12546: TNS:permission denied
SQL> ORA-12546: TNS:permission denied
SQL>
/home/oracle/oracle/produc
t/10.2.0/d
b_2/bin/db
star t: Database instance "orcl" warm started.
----
Further debugging revealed that I am not able to connect to the database using sqlplus when logged in as root. I get the same message as above. But as oracle user, I can connect and startup the database.
[ email@removed ~]# ORACLE_HOME=/home/oracle/o
racle/prod
uct/10.2.0
/db_2
[ email@removed ~]# ORACLE_SID=orcl
[ email@removed ~]# export ORACLE_HOME
[ email@removed ~]# export ORACLE_SID
[ email@removed ~]# cd $ORACLE_HOME
[ email@removed db_2]# cd bin
[ email@removed bin]# ./sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 5 10:43:19 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect / as sysdba
ERROR:
ORA-12546: TNS:permission denied
SQL> exit
[ email@removed bin]# exit
logout
[ email@removed db_2]$ cd bin
[ email@removed bin]$ ./sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 5 10:44:20 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 536870912 bytes
Fixed Size 1220408 bytes
Variable Size 180355272 bytes
Database Buffers 348127232 bytes
Redo Buffers 7168000 bytes
Database mounted.
Database opened.
SQL>
How can I get this working as root so I can startup the database when system starts? Can you please let me know what I am missing?
Thank you.
Start Free Trial