SQL Plus no access [message #505315] |
Mon, 02 May 2011 06:35  |
 |
juniorpeardba
Messages: 31 Registered: April 2011 Location: London
|
Member |
|
|
I have 2 servers experiencing 2 different connection issues.
DCS01 - user dmadmin not working with SQLPLUS
[dmadmin@UKEDXDTMDCS01 ~]$ cd $ORACLE_HOME
-bash: cd: /home/oracle/app/oracle/product/11.1.0/client_1/: Permission denied
[dmadmin@UKEDXDTMDCS01 ~]$ id
uid=500(dmadmin) gid=500(dmadmin) groups=500(dmadmin),501(oinstall),502(dba)
[dmadmin@UKEDXDTMDCS01 ~]$ sqlplus /nolog
-bash: sqlplus: command not found
[dmadmin@UKEDXDTMDCS01 ~]$
On the same server with the user Oracle - All works fine
[dmadmin@UKEDXDTMDCS01 ~]$ su oracle
Password:
[oracle@UKEDXDTMDCS01 dmadmin]$ sqlplus /nolog
SQL*Plus: Release 11.1.0.6.0 - Production on Mon May 2 11:43:48 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
SQL> exit
$ more /etc/group
dmadmin:x:500:
oinstall:x:501:dmadmin
dba:x:502:oracle,dmadmin
oracle environment variables:
ORACLE_HOME=/home/oracle/app/oracle/product/11.1.0/client_1
PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/dmadmin/bin:/home/oracle/app/oracle/product/11.1.0/client_1/bin
DDBS01 - user dmadmin working with SQLPLUS
sqlplus /nolog
SQL*Plus: Release 11.2.0.2.0 Production on Mon May 2 11:29:21 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> exit
[dmadmin@UKEDXDTMDDBS01 db_1]$ cd $ORACLE_HOME
[dmadmin@UKEDXDTMDDBS01 db_1]$ id
uid=501(dmadmin) gid=502(dmadmin) groups=500(oinstall),501(dba),502(dmadmin)
$ more /etc/group
oinstall:x:500:dmadmin
dba:x:501:oracle,dmadmin
dmadmin:x:502:
oracle environment variables:
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/u01/app/oracle/product/11.2.0/db_1/bin
What could be the issue here why O/S account dmadmin does not work on server DCS01?
Many thanks
|
|
|
|
|
|
|
|
|
|
|
Re: SQL Plus no access [message #505384 is a reply to message #505380] |
Mon, 02 May 2011 13:36   |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
The Problem is in ORACLE_HOME /home/oracle/app/oracle/product/11.1.0/client_1.
This installation log is for ORACLE_HOME /home/oracle/product/11.1.0/db_1 (despite it being an patchset log, not the original installation log).
You also seem to have an additional ORACLE_HOME /u01/app/oracle/product/11.2.0
Also versions 11.1.0.6.0 and 11.2.0.2.0 floating around, with the mixed up upgrade from 11.1.0.6.0 to 11.1.0.7.0 in your other thread.
Why do you install Oracle sometimes in /home/oracle/app/, sometimes in /u01/app/ and sometimes in /home/? You should stick to ONE way to install it, not change it all the time.
A few questions:
1) Is this *still* only about a client install, no server installation?
If so you should pick ONE client version you want, and ONE path to install it to, and then follow the installation instructions to the letter, not run off in dozens of directions at once.
|
|
|
|