LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sqlplus connection help is required (https://www.linuxquestions.org/questions/linux-newbie-8/sqlplus-connection-help-is-required-847133/)

sushil_sk 11-29-2010 12:06 AM

sqlplus connection help is required
 
Hi Friends I am newbie to Linux . I am working as oracle DBA on 10g . Till last day I had worked on windows platform. Now my company want me to work on Linux platform . I am first time using Linux dont know A,B,C of Linux . I want to connect sqlplus through linux command prompt. I have exported enviornment variable of oracle but I am getting permission denied Below mention steps I ahd followed . Please help me to solve it

[oracle@bhel1 mj]$ ORACLE_SID=V7;export ORACLE_SID
[oracle@bhel1 mj]$ ORACLE_HOME=/usr/lib/oracle/v7/app/oracle/prod
ver;export ORACLE_HOME
[oracle@bhel1 mj]$ PATH=$ORACLE_HOME/bin:$PATH;export PATH
[oracle@bhel1 mj]$ NLS_LANG=AMERICAN_AMERICA.AL32UTF8;export NLS_
[oracle@bhel1 mj]$ LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_P
LIBRARY_PATH
[oracle@bhel1 mj]$ sqlplus/nolog
bash: sqlplus/nolog: Permission denied
[oracle@bhel1 mj]$

chrism01 11-29-2010 12:17 AM

Try

which sqlplus

to find the sqlplus binary and it's ownerships/permissions. It looks like you don't have the right access perms, could also be its not in your cmd path. Try

echo $PATH

to check.
Also, for Linux generally, here's a great tutorial http://rute.2038bug.com/index.html.gz.

To examine the ownership & perms in Linux

ls -l filename

(that's a lowercase L btw)


All times are GMT -5. The time now is 07:11 PM.