LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   bash:xxxx:command not found (https://www.linuxquestions.org/questions/red-hat-31/bash-xxxx-command-not-found-88994/)

sandiegon 09-03-2003 07:47 PM

bash:xxxx:command not found
 
Hi My fellow linux buddies
I am new to linux and after Installing Oracle 9i Release 2 database on Red Hat linux 2.1 and try to connect to the server through lap top I ran into Oracle Listener problem. I login to the server and try to see the status of the listener or try to execute any command either as o/s root or oracle root I get this error

bash:lsnrctl status:command not found. I even try to execute the oracle installer again but no luck

Any help would be appreciated

Mo

windowsrefund 09-03-2003 07:51 PM

Looks like a problem with your PATH variable.

Adam

sandiegon 09-03-2003 07:53 PM

well I drill down to where my script is and try to run but still the same problem. If it was a path, I should be able run the script right at the folder correct?

darthtux 09-03-2003 08:25 PM

To run a script in the current folder
./script

windowsrefund 09-03-2003 08:36 PM

I hope this is not a production server.

Adam

sandiegon 09-04-2003 11:46 AM

No its not. This is a new QA box I am trying to build. Okay I ./script and I got the permission denied error. When I look at dir or file it self I see

-rwxr-x--x 1 oracle oinstall 1600683 Sep 2 17:52 tnslsnr

this tells me that I do have rwx permission correct?

Morris

osprey0331 09-04-2003 11:58 PM

the problem is not with redhat but with oracle...the scripts can only be run as the oracle user, not any other use on the system. We had the same problem with oracle 7 and 8i on solaris and linux. when you installed oracle, you specified a user as part of the installation, typically "oracle". Type su - oracle and the prompt should change to $ at which time, try dbshut to park the database. Then do dbstart to bring the database back up and connect it, the issue lsnrctl start. This should bring your database and listener online, provided the listener.ora and the tnsnames.ora files are configured correctly. Also, verify that the oratab file in the /var/oracle directory is configured to make the scripts available. If you need help with that, look at the last line in the oratab file, and you will see the SID and the last character in the line will be either an uppercase N or Y. If it is an N, change it to a Y, otherwise, your scripts are available.


All times are GMT -5. The time now is 09:59 PM.