English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have a linux machine and i just installed oracle 9 client on it, but when i open a terminal and i type the lsnrctl command, i get 'Command not found', does anyone know what i am doing wrong here. Also what commands do you use when the command actually works.
Thanks,

2007-03-22 02:13:11 · 1 answers · asked by sijosers 2 in Computers & Internet Programming & Design

1 answers

You need to check a few of things to see if the TNS listener control command library is properly set in your path, available or even installed correctly.

First, You must be logged in as the Oracle user to run lsnrctl. If you get a "Command not found" message, check you are logged in as Oracle (type 'id') and that the environmental variables are in place (type 'env'). Failing that, the path to this command is usually
/opt/app/oracle/product/${ORACLE_HOME}/bin


Next, see if the LD_LIBRARY_PATH is in your path and set correctly,
echo $PATH
echo $LD_LIBRARY_PATH

If this isn't correct, then let's get that set
export LD_LIBRARY_PATH=${ORACLE_HOME} /lib:/usr/lib:/usr/local/lib

(that's all on one line)


Next, see if the $Oracle_Home/bin was properly initialized
find -name lsnrctl* -depth -print ./bin/lsnrctl0

Try to list the lsnrctl comand
/opt/oracle/product/${ORACLE_HOME}/db_1/bin # ls -l lsn*
(that switch is a small L, not a 1)

If it's there and the path is correctly set, then you should be able to start it. If not, then try using the entire path.

2007-03-24 01:11:27 · answer #1 · answered by Kevin 7 · 3 0

fedest.com, questions and answers