Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Backup/rman script in Linux
On 5/25/05, J. Dex <cemail_219_at_hotmail.com> wrote:
> This backup/rman script (korn shell) works fine in other environments but=
is
> not working in Linux. It gets to this rman line and doesn't pass in the
> variables for the passwords or SIDs. Any idea why this would be differe=
nt
> in Linux? Also, if I do it step for step via command prompt it works fi=
ne
> as well. Just doesn't want to work in this script.
>=20
Hi,
Looks like this script is lacking the shebang-line telling the OS which shell executable to launch (bash is the default on linux).
Try adding
#!/bin/ksh
on the first line of the script.
You may have to install the korn shell which is not included by default in several linux distributions (for example you can download pdksh)
HTH
Jerome
HTH
Jerome
-- http://www.freelists.org/webpage/oracle-lReceived on Wed May 25 2005 - 08:08:21 CDT