Operating System - HP-UX
1752778 Members
5840 Online
108789 Solutions
New Discussion юеВ

Re: root user cannot login into ORACLE

 
SOLVED
Go to solution
Justo Exposito
Esteemed Contributor

Re: root user cannot login into ORACLE

Sorry adicionally,

can you attach your tnsnames and an output of cmviewcl -v command?

Regards,

Justo.
Help is a Beatiful word
Christian Gebhardt
Honored Contributor

Re: root user cannot login into ORACLE

Can you exactly tell us which connections does not work ?

-Database is running on machine a
-User root and taller have the same environment on both machines

This connections should work:
machine a:
- both user can connect with sqlplus
- both user can connect with sqlplus@

machine b:
- both user have to connect to the database with sqlplus@

Graham Cameron_1
Honored Contributor

Re: root user cannot login into ORACLE

It must be to do with your environment.
Try "env|grep -e ORA -e SQL -e TNS" from both accounts and compare results.
-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.

Re: root user cannot login into ORACLE

Christian:

-Database is running on machine a
-User root and taller have the same environment on both machines
This connections should work:
machine a:
- both user can connect with sqlplus
DOESN├В┬┤T WORK WITH root USER
- both user can connect with sqlplus@
WORK WITH both USER
machine b:
- both user have to connect to the database with sqlplus@
WORK WITH both USER

Justo & Graham:

I├В┬┤m working with your suggestio
Christian Gebhardt
Honored Contributor
Solution

Re: root user cannot login into ORACLE

Hi

ok, as mentioned before try to set TWO_TASK (as User root on a):

export TWO_TASK=

then try again.

Chris


Justo Exposito
Esteemed Contributor

Re: root user cannot login into ORACLE

Hi Manuel,

This is the entry on my tnsnames.ora:
SRP5 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = SRP5)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = SRP5)
)
)

Note that SRP5 is the name of the database (SID), this is defined as well in the /etc/hosts file with his own IP address, and the package name is pkgSRP5.

hope this helps,

Justo.
Help is a Beatiful word
Justo Exposito
Esteemed Contributor

Re: root user cannot login into ORACLE

Hi,

You can probe your tnsnames.ora file with the tnsping command.

Regards,

Justo.
Help is a Beatiful word
Sushil Singh_1
Advisor

Re: root user cannot login into ORACLE

Hi Manuel,
We have almost the same setting as u do. Generally, root don't have ORACLE/BIN in the PATH therefore we can logging from root directly, but I think know the problem.

1) Make sure $ORACLE_HOME/bin is in the PATH
2) Make sure root is in the same group as oracle, generally group name is dba.
3) before logging to svrmgrl or sqlplus, just export the ORACLE_SID
eg. export ORACLE_SID=ORCL

Since I have almost the same configuration, please let me know if this works or not.

Thanks
Sushil Singh

Re: root user cannot login into ORACLE

Christian:

Don├В┬┤t understand anything, but your last TWO_TASK suggestion worked. Any technical explanation?????

There is some things I still don├В┬┤t understand:

We have machine1 and machine2 both with same user and Oracle config, root user on machine1 doesn├В┬┤t have set variable TWO_TASK and can do sqlplus taller/control.

Why is needed TWO_TASK on machine2??????

Ghosts?????

Thanks all for your resp
Steven E. Protter
Exalted Contributor

Re: root user cannot login into ORACLE

Oracle recommends, not using the root user for any database operations.

It has the potential to make shared memory inaccessible, and cause all kinds of other nasty issues.

You should immediatly migrate your procedures and practices to use the user that owns the oracle binaries for these operations. If the binaries are owned by root, that setup is NOT supported by Oracle.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com