Re: sqlplus "command not found" connecting with ssh



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/

.



Relevant Pages