From oracle-l-bounce@freelists.org  Wed May 25 08:08:21 2005
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air891.startdedicated.com (root@localhost)
 by orafaq.com (8.12.10/8.12.10) with ESMTP id j4PD8Lom014690
 for <oracle-l@orafaq.com>; Wed, 25 May 2005 08:08:21 -0500
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j4PD8KNi014686
 for <oracle-l@orafaq.com>; Wed, 25 May 2005 08:08:21 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id CB7571B1BDF;
 Wed, 25 May 2005 07:05:23 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 10554-02; Wed, 25 May 2005 07:05:23 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 517DC1B1C43;
 Wed, 25 May 2005 07:05:23 -0500 (EST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=rr1/jfsR2g4EW3KFmfK6bUCCHyYULcu1ffNN0O+BCbrh3x8FFDO0VMc6D0s28GN1jGxgH3YV5Btvpyak51ocTryNBaIKOrg+zF57WrFHZ82Tzstl0H2IZptTpAhFKlWf10nh2hElzw+vKP6dzDft7F0jXbWKSKU9vBNZ7/DQJhI=
Message-ID: <68b1285505052505033aaac2b3@mail.gmail.com>
Date: Wed, 25 May 2005 14:03:35 +0200
From: Vitalis Jerome <vitalisman@gmail.com>
To: cemail_219@hotmail.com
Subject: Re: Backup/rman script in Linux
Cc: oracle-l@freelists.org
In-Reply-To: <BAY106-F30B6543F0AD94D49D6EDD6A50E0@phx.gbl>
Mime-Version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
References: <BAY106-F30B6543F0AD94D49D6EDD6A50E0@phx.gbl>
X-archive-position: 20253
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: vitalisman@gmail.com
Precedence: normal
Reply-To: vitalisman@gmail.com
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on 
 air891.startdedicated.com
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=ham version=2.63

On 5/25/05, J. Dex <cemail_219@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
> rman target system/$syspass@$ORACLE_SID catalog rman/$rmanpass@$RMAN_SID
> log=3D$SIDBKUP/`date +%a`_rman_config.rpt <<EOF
>=20
> The beginning of the script is as follows:

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-l

