ora-01034 for users other than oracle [message #599579] |
Sat, 26 October 2013 07:00 |
|
corn_pops
Messages: 6 Registered: October 2013
|
Junior Member |
|
|
Hello.
I am having an issue when trying to connect local through SQLPLUS. If I login to sqlplus using oracle user everything is fine, I,m able to login to the database which is already opened and mounted. But if I try to login to sqlplus with another linux user I get the following:
[metro_ctl@LX-TSC2 ~]$ sqlplus metro_ctl/xxxx
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Oct 26 07:22:31 2013
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
I am able to succesfully login to the instance if I do it this way:
[metro_ctl@LX-TSC2 ~]$ sqlplus metro_ctl/xxxx@TSC
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Oct 26 07:43:18 2013
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Release 10.2.0.4.0 - Production
SQL>
Enviroment variables ORACLE_SID, ORACLE_HOME, PATH to oracle lib and bin are already defined for user metro_ctl, but I still cannot login using sqlplus without putting the SID at the end of sqlplus command line.
listener.ora and tnsnames.ora already have the SID defined in uppercase, the instance is already running:
[oracle@LX-TSC2 client]$ ps -ef|grep pmo
oracle 24463 1 0 06:32 ? 00:00:00 ora_pmon_TSC
[metro_ctl@LX-TSC2 ~]$ tnsping TSC
TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 26-OCT-2013 07:46:01
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = LX-TSC2)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = TSC)))
OK (0 msec)
ANy help will be appreciate.
|
|
|
|
|
Re: ora-01034 for users other than oracle [message #599582 is a reply to message #599581] |
Sat, 26 October 2013 08:39 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
>I have no problem if I work through SQL*Net (abcd/efgh@SID). But how can I manage to login with (abcd/efg) without specifying the SID name which is already defined as env variable.
@SID is an entry in the tnsnames.ora file; where "SID" may be the same as ORACLE_SID or different from it.
post the results from the following OS commands
id
env | sort
ps -ef | grep SMON | grep -v grep
ls -ltr $ORACLE_HOME/dbs
cat $ORACLE_HOME/network/admin/tnsnames.ora
COPY the results from above then PASTE all back here
[Updated on: Sat, 26 October 2013 08:48] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: ora-01034 for users other than oracle [message #599616 is a reply to message #599596] |
Sat, 26 October 2013 16:13 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
I think that perhaps you have not run the $ORACLE_HOME/root.sh script on this Oracle Home. You should do so, it adjusts the permissions on several files - if you don't do it, you'll have other problems later.
|
|
|