ora_full.sh
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 91 DAYS;
CONFIGURE CONTROLFILE AUTOBACKUP off;
run
{
allocate channel t1 type 'SBT_TAPE';
send channel t1 'NSR_ENV=(NSR_CLIENT=gps02,NSR_SERVER=bakserver,NSR_DATA_VOLUME_POOL=oraddboostb)';
allocate channel t2 type 'SBT_TAPE';
send channel t1 'NSR_ENV=(NSR_CLIENT=gps02,NSR_SERVER=bakserver,NSR_DATA_VOLUME_POOL=oraddboostb)';
allocate channel t3 type 'SBT_TAPE';
send channel t1 'NSR_ENV=(NSR_CLIENT=gps02,NSR_SERVER=bakserver,NSR_DATA_VOLUME_POOL=oraddboostb)';
allocate channel t4 type 'SBT_TAPE';
send channel t1 'NSR_ENV=(NSR_CLIENT=gps02,NSR_SERVER=bakserver,NSR_DATA_VOLUME_POOL=oraddboostb)';
sql 'alter system archive log current';
backup full filesperset 1
format 'ora_%d_%I_%s_%p_%T' database;
release channel t1;
release channel t2;
release channel t3;
release channel t4;
}
run {
allocate channel t1 type 'SBT_TAPE';
send channel t1 'NSR_ENV=(NSR_CLIENT=gps02,NSR_SERVER=bakserver,NSR_DATA_VOLUME_POOL=oraddboostb)';
sql 'alter system archive log current';
backup filesperset 10
format 'arch_%d_%I_%s_%
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 91 DAYS;
CONFIGURE CONTROLFILE AUTOBACKUP off;
run
{
allocate channel t1 type 'SBT_TAPE';
send channel t1 'NSR_ENV=(NSR_CLIENT=gps02,NSR_SERVER=bakserver,NSR_DATA_VOLUME_POOL=oraddboostb)';
allocate channel t2 type 'SBT_TAPE';
send channel t1 'NSR_ENV=(NSR_CLIENT=gps02,NSR_SERVER=bakserver,NSR_DATA_VOLUME_POOL=oraddboostb)';
allocate channel t3 type 'SBT_TAPE';
send channel t1 'NSR_ENV=(NSR_CLIENT=gps02,NSR_SERVER=bakserver,NSR_DATA_VOLUME_POOL=oraddboostb)';
allocate channel t4 type 'SBT_TAPE';
send channel t1 'NSR_ENV=(NSR_CLIENT=gps02,NSR_SERVER=bakserver,NSR_DATA_VOLUME_POOL=oraddboostb)';
sql 'alter system archive log current';
backup full filesperset 1
format 'ora_%d_%I_%s_%p_%T' database;
release channel t1;
release channel t2;
release channel t3;
release channel t4;
}
run {
allocate channel t1 type 'SBT_TAPE';
send channel t1 'NSR_ENV=(NSR_CLIENT=gps02,NSR_SERVER=bakserver,NSR_DATA_VOLUME_POOL=oraddboostb)';
sql 'alter system archive log current';
backup filesperset 10
format 'arch_%d_%I_%s_%