Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> 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
Matthias Hoys ha escrito:
> "_mamarin_" <ma.marin.m_at_gmail.com> wrote in message
> news:1165840799.769946.39610_at_16g2000cwy.googlegroups.com...
> > 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_at_host script.sh
> > The script only connects sqlplus (sqlplus user_at_pass/DB_SID)
> > And I get the followin message:
> > bash: sqlplus: command not found
> >
> >
> > Any ideas?
> >
> > Thanks a lot
> >
>