Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: run a shell script on red hat linux

Re: run a shell script on red hat linux

From: Matthias Hoys <anti_at_spam.com>
Date: Wed, 15 Aug 2007 23:21:05 +0200
Message-ID: <46c36e40$0$13858$ba620e4c@news.skynet.be>

<rogergorden_at_gmail.com> wrote in message news:1187118397.550083.93070_at_o61g2000hsh.googlegroups.com...
> On Aug 14, 8:21 am, vincent.r..._at_gmail.com wrote:
>> Here is my environment : Oracle 10G release 2 on RED HAT LINUX
>> ENTERPRISE.
>> I have a shell script (.sh) with an Oracle export and a ftp command to
>> transfer the file *.dmp to an other machine. When i execute this
>> script with the user Oracle, it works perfectly.
>> Now I try to launch it via OEM; Program,job, etc...it doesn't work
>> because, perhaps, an environment trouble (the script is launch by ??
>> with his environment ???)
>> Sorry for my bad english, i'm french.
>
> Try setting your environment variables in the .sh script you need
> your $PATH and your $BIN at minimum.
> Also, make sure the permissions are set so that the group (DBA or
> OINSTALL usually) has execute permission on the file.
>
>
> Roger Gorden
> Senior DBA Skila.Corp.
>

Put this in the script :

~/.profile

So that the Oracle environment settings are read from your .profile file. Received on Wed Aug 15 2007 - 16:21:05 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US