Re: sqlplus "command not found" connecting with ssh
- From: "_mamarin_" <ma.marin.m@xxxxxxxxx>
- Date: 11 Dec 2006 05:41:12 -0800
Thanks to you all...
"sourcing" the bash_profile into my script was the besto option at
least!!
#!/bin/bash
.. ~/.bash_profile
:D
Doug Spencer ha escrito:
On 11 Dec 2006 04:41:38 -0800
"_mamarin_" <ma.marin.m@xxxxxxxxx> wrote:
Hi you all,
I'm trying to execute an script which uses sqlplus from a remote ssh
client.
The script runs ok executing it from the server.
I'm executing the following line: ssh user@host script.sh
The script only connects sqlplus (sqlplus user@pass/DB_SID)
And I get the followin message:
bash: sqlplus: command not found
Any ideas?
Thanks a lot
You probably need to either specify the entire path to SQLPlus, similar to /opt/oracle/920/bin/sqlplus, or set your environment PATH prior to running SQLPlus to include the directory where SQLPlus exists.
Doug
--
For UNIX, Linux and security articles
visit http://SecurityBulletins.com/
.
- Follow-Ups:
- References:
- sqlplus "command not found" connecting with ssh
- From: _mamarin_
- Re: sqlplus "command not found" connecting with ssh
- From: Doug Spencer
- sqlplus "command not found" connecting with ssh
- Prev by Date: Re: sqlplus "command not found" connecting with ssh
- Next by Date: Re: Need Help with PuTTY - Printing to Local Printers
- Previous by thread: Re: sqlplus "command not found" connecting with ssh
- Next by thread: Re: sqlplus "command not found" connecting with ssh
- Index(es):
Relevant Pages
|
|