LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-03-2003, 07:47 PM   #1
sandiegon
LQ Newbie
 
Registered: Sep 2003
Location: San Diego
Posts: 16

Rep: Reputation: 0
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
 
Old 09-03-2003, 07:51 PM   #2
windowsrefund
Red Hat Ambassador
 
Registered: Aug 2003
Location: NYC
Distribution: Debian, Redhat
Posts: 73

Rep: Reputation: 15
Looks like a problem with your PATH variable.

Adam
 
Old 09-03-2003, 07:53 PM   #3
sandiegon
LQ Newbie
 
Registered: Sep 2003
Location: San Diego
Posts: 16

Original Poster
Rep: Reputation: 0
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?
 
Old 09-03-2003, 08:25 PM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
To run a script in the current folder
./script
 
Old 09-03-2003, 08:36 PM   #5
windowsrefund
Red Hat Ambassador
 
Registered: Aug 2003
Location: NYC
Distribution: Debian, Redhat
Posts: 73

Rep: Reputation: 15
I hope this is not a production server.

Adam
 
Old 09-04-2003, 11:46 AM   #6
sandiegon
LQ Newbie
 
Registered: Sep 2003
Location: San Diego
Posts: 16

Original Poster
Rep: Reputation: 0
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
 
Old 09-04-2003, 11:58 PM   #7
osprey0331
Member
 
Registered: Jul 2003
Location: California
Distribution: RH 7 and 8
Posts: 45

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: command not found! Adil_uk Linux - General 14 04-09-2012 01:04 AM
bash: command not found intels_ss Linux - Newbie 5 07-20-2005 07:41 PM
bash: pg: command not found Chomper Programming 2 02-05-2005 02:22 AM
-bash: ls: command not found jchun Linux - General 3 11-02-2004 10:11 AM
bash -command not found- K3V Linux - Newbie 7 09-30-2004 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration