Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Unable to distinguish the difference in RMAN configuration
Hi
I have a problem. We configured RMAN in one machine and it is keeping
backup set of only last backup(ie 1 DAYS backup) even tough we gave
recovery window as 5 days. But on the other machine five backup files
are stored , where in both two machines the RETNENTION POLICY IS SAME.
I will put the script we used for backup
The Shell script we are using is
[oracle_at_devdb02 script]$ cat<backupscript
#!/bin/sh
LOGS=/backup/log/nightly_backup_`/bin/date '+%m%d%y'`.log
ORACLE_SID=prod ORACLE_BASE=/disk1/oracle/product ORACLE_HOME=/disk1/oracle/product/9201
function fullOffline
{
rman TARGET system/manager CATALOG rmanuser/rman_at_dev <<EOF
run { execute script full_offline; } run { delete noprompt obsolete; } run { delete noprompt backup of archivelog until time 'sysdate-5'; }EOF
function fullOnline
{
rman TARGET system/manager CATALOG rmanuser/rman_at_dev <<EOF
run { execute script full_online; } run { delete noprompt obsolete; } run { delete noprompt backup of archivelog until time 'sysdate-5'; }EOF
theDay=(`/bin/date '+%a'`)
case $theDay in
*) fullOnline > $LOGS;;
esac
The stored scripts are:
RMAN> print script full_offline
2> ;
printing stored script: full_offline
{
shutdown immediate;
allocate channel disk1 device type DISK;
backup full database
format '/backup/offline/%d_%t_%s_%p.dbf'
channel disk1
tag Full_Offline_Backup
;
backup
filesperset 5
format '/backup/controlfile/%d_%t_%s_%p.cf'
channel disk1
current controlfile
tag Controlfile_Backup
;
sql 'alter system archive log current';
backup filesperset 50
archivelog all format '/backup/archivelog/%d_%t_%s_%p.arch'
channel disk1
skip inaccessible
delete all input
tag Archivelog_Backup
;
release channel disk1;
startup;
}
RMAN> print script full_online;
printing stored script: full_online
{
allocate channel disk1 device type DISK;
backup full database
format '/backup/online/%d_%t_%s_%p.dbf'
channel disk1
tag Full_Database_Backup
;
backup
filesperset 5
format '/backup/controlfile/%d_%t_%s_%p.cf'
channel disk1
current controlfile
tag Controlfile_Backup
;
sql 'alter system archive log current';
backup filesperset 50
archivelog all format '/backup/archivelog/%d_%t_%s_%p.arch'
channel disk1
skip inaccessible
delete all input
tag Archivelog_Backup
;
release channel disk1;
}
The RMAN configuration we use are
RMAN> SHOW ALL;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 5 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
# default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; #
default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO
'/disk1/oracle/product/9201/dbs/snapcf_prod.f'; # default
RMAN configuration has no stored or default parameters
In the first machine all RMAN configurations are same except the last
message
"RMAN configuration has no stored or default parameters"
we are unable to figure out why this difference occurs , could you please help us
Thanks in adavnce!!! Received on Fri Mar 19 2004 - 04:04:25 CST