Oracle Database backup script under RedHatLinux5 #! /Bin/shexportORACLE_HOME =/app/oracle/product/10.2.0/db_1; exportORACLE_SID = orcl; exportNLS_LANG = "SIMPLIFIEDCHINESE_CHINA.UTF8"; exportF = $ (date + % y % m % d
Oracle Database backup script under RedHat Linux 5
#! /Bin/sh
Export ORACLE_HOME =/app/oracle/product/10.2.0/db_1;
Export ORACLE_SID = orcl;
Export NLS_LANG = "SIMPLIFIED CHINESE_CHINA.UTF8 ";
Export F = $ (date + % y % m % d % H % M % S); # Use the date plus time as the backup file name
Backupdir =/opt/DataBackup # directory of backup file storage
/App/oracle/product/10.2.0/db_1/bin/exp user/pwd file = $ backupdir/$ {F}. dmp log = $ backupdir/backup. log owner = oracle
Find $ backupdir-type f-mtime + 60-exec rm {}\;>/dev/null 2> & 1 # automatically Delete backup files more than 60 days ago
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10