These parameters are set before taking datafiles backup:
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/makkdb1-bk/rma
n/%F';
configuration for DISK channel 2 is ignored
configuration for DISK channel 3 is ignored
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 1;
CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/makkdb1-bk/rman/%U';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/makkdb2-bk/rman/%U';
CONFIGURE CHANNEL 3 DEVICE TYPE DISK FORMAT '/makkdb2-bk/rman/%U';
CONFIGURE MAXSETSIZE TO 5 G;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/9iRAC/dbs/snapcf_rcdb1.f';
These parameters are set before taking backup of archivelogs: only one change mark in red.
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/makkdb1-bk/rman/%F';
configuration for DISK channel 2 is ignored
configuration for DISK channel 3 is ignored
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 1;
CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/makkdb1-bk/rman/arc_%U';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/makkdb2-bk/rman/%U';
CONFIGURE CHANNEL 3 DEVICE TYPE DISK FORMAT '/makkdb2-bk/rman/%U';
CONFIGURE MAXSETSIZE TO 5 G;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/9iRAC/dbs/snapcf_rcdb1.f';
select
b.NAME,
a.COMPLETION_TIME,
a.MEDIA,
a.STATUS,
a.HANDLE
from
rc_backup_piece a,
rc_database b
where a.DB_KEY = b.DB_KEY
and HANDLE in
('/makkdb1-bk/rman/4fiq9uj1_1_1',
'/makkdb1-bk/rman/4giq9uko_1_1')
order by b.NAME, a.COMPLETION_TIME, a.STATUS
select
b.NAME,
a.COMPLETION_TIME,
a.MEDIA,
a.STATUS,
a.HANDLE
from
rc_backup_piece a,
rc_database b
where a.DB_KEY = b.DB_KEY
and HANDLE in
('/makkdb1-bk/rman/4fiq9uj1_1_1',
'/makkdb1-bk/rman/4giq9uko_1_1')
order by b.NAME, a.COMPLETION_TIME, a.STATUS
SQL> select b.name,a.completion_time,
2 a.media,a.status,a.handle
3 from rc_backup_piece a,
4 rc_database b
5 where a.DB_KEY=b.DB_KEY
6 and handle in
7 ('/makkdb1-bk/rman/4fiq9uj1_1_1','/makkdb1-bk/rman/4giq9uko_1_1')
8 order by b.name,a.completion_time,a.status;
NAME COMPLETIO MEDIA
-------- --------- --------------------------------------------------------------------------------
S
-
HANDLE
----------------------------------------------------------------------------------------------------
RACDB 25-AUG-07
X
/makkdb1-bk/rman/4fiq9uj1_1_1
Well rman says that your backups have expired based on the contents of the catalog.
I would suggest you do a clean test just to discount something funny from this whole exercise
First delete the expired
1)delete expired backup
2)backup database plus archivelog
3)Backup the files to some other location or tape
3)remove the files using host command using rm
4)run crosscheck command rman should report the backup as expired
5)restore the files to the same location
6)run crosscheck command rman should mark the backups as available
Let me know if you are able to reproduce whatever happened till now
regards
Hrishy
I hope the permissions on these files /makkdb1-bk/rman/4fiq9uj1_1_1 are 666
so rman can read them ?
Bookmarks