From oracle-l-bounce@freelists.org Wed May 25 11:38:07 2005 Return-Path: Received: from air891.startdedicated.com (root@localhost) by orafaq.com (8.12.10/8.12.10) with ESMTP id j4PGc7Rw024989 for ; Wed, 25 May 2005 11:38:07 -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 j4PGc6Ni024982 for ; Wed, 25 May 2005 11:38:07 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 8A92C1B1FFE; Wed, 25 May 2005 10:35:09 -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 19204-01; Wed, 25 May 2005 10:35:09 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 080BC1B174D; Wed, 25 May 2005 10:35:08 -0500 (EST) Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=EPP2nws/snvS8UOSQdc65nGmM5EWbbqpXGFDTYPpwVsridWEb3+ZvXd/+u93EIxlZC16FIgBzeN8h20GG8KWbpTXACuaEG9bIKTkkwsWxl1X5B+rjg+e9zkj1NS6tv35Sv6F7hGi0yiEsz7JLMvIEugvGWq7BK0W7eMXYsoadeY= ; Message-ID: <20050525153319.98302.qmail@web20708.mail.yahoo.com> Date: Wed, 25 May 2005 08:33:19 -0700 (PDT) From: Charlotte Hammond Subject: RE: Backup/rman script in Linux To: ORACLE-L Cc: cemail_219@hotmail.com MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-archive-position: 20271 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: charlottejanehammond@yahoo.com Precedence: normal Reply-To: charlottejanehammond@yahoo.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.5 required=5.0 tests=AWL,FORGED_YAHOO_RCVD autolearn=no version=2.63 How do you know it doesn't pass in the variables? What happens? Two suspicions I would have: 1. Are you sure you're calling Oracle RMAN and not PolyglotMan (a Linux program for transforming man pages). Check the path in the script. 2. I've seen some differences between Public Domain KSH (pdksh) on Linux and the "official" KSH93. Which one are you running? You can find KSH93 on http://www.kornshell.com/ (Although I've not encountered any problems with shell variables so this may be a red herring...) - Charlotte --- 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 different in Linux? Also, if I do it step for step via command prompt it works fine as well. Just doesn't want to work in this script. rman target system/$syspass@$ORACLE_SID catalog rman/$rmanpass@$RMAN_SID log=$SIDBKUP/`date +%a`_rman_config.rpt <" exit 1 export ORACLE_SID=$1 fi ORACLE_SID=$1 export ORACLE_SID . /u01/app/oracle/oraconfig/Oracle.env.vars today=`date +%a` export today rmanpass=`cat ~/info/.passwd.rman` export rmanpass syspass=`cat ~/info/.passwd.$ORACLE_SID` export syspass cd $SIDBKUP tar cvf $SIDBKUP/`date +%a`_Hot_tns.tar $ADMINDIR/pfile/* rman target system/$syspass@$ORACLE_SID catalog rman/$rmanpass@$RMAN_SID log=$SIDBKUP/`date +%a`_rman_config.rpt <