crontab定时备份问题
RT,请大神们帮看下。我写的这个,不自动备份是不是少了点什么东西?
[oracle@ap9 ~]$ crontab -l
* 0 1,15 * * /was/oracle/oradata/rman_0.sh>/dev/null 2>&1
* 0 */3 * * /was/oracle/oradata/rman_1.sh>dev/null 2>&1
[oracle@ap9 ~]$
#su - oracle
export ORACLE_SID=jlgayxjk
rman target/
run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
backup incremental level=0 database;
release channel c1;
release channel c2;
release channel c3;
}
allocate channel for maintenance device type disk;
crosscheck backupset;
delete noprompt obsolete;
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/was/oracle/oradata/rman/jlgayxjk_bak_%U_%T';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/home/oracle/product/10.2.0/db_1/dbs/snapcf_jlgayxjk.f'; # default