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 -> Shell script Backup Server Oracle Linux

Shell script Backup Server Oracle Linux

From: hal9000 <magicalex_at_inwind.it>
Date: Mon, 15 Aug 2005 00:19:04 GMT
Message-ID: <1h1bcvm.19tpebg1vf60a4N%magicalex@inwind.it>


I have programmed a shell script to do the backup to server Oracle on linux system.
Here it is the script
'--
#!/bin/sh
set ORACLE_HOME=/usr/oracle/9.0/
export ORACLE_HOME
echo "The backup is beginning"
/usr/app/oracle/9.2/bin/exp system/oraclesystem full=y file=/home/oracle/exp/dati.dmp log=/home/oracle/exp/datilog.txt tar -cvf /dev/st0 exp
echo "backup ended, have a nice day"
---

I used a crontab to the the backup every day at 5.00 AM. But every day, the script do not run and the mail corresponding says
---

Message 206 not found; No message file for product=RDBMS, facility=EXP: Release 9.2.0.4.0 - Production on Mon Jul 4 03:12:00 2005  

Copyright (c) 1982, 2002, Oracle   

Invalid format of Export utility name  

Verify that ORACLE_HOME is properly set  

Export terminated unsuccessfully  

EXP-00000: Message 0 not found; No message file for product=RDBMS, facility=EXPexp/

exp/datilog.txt
exp/dati.dmp
exp/dati.dmp.gz
exp/dati310505.dmp
exp/dati.dmpgz

backup finito, have a nice day
--
Any hints?
Regards.
                                ALEX 
Received on Sun Aug 14 2005 - 19:19:04 CDT

Original text of this message

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