RMAN Configuration Demystified: A Practical Deep Dive for
DBAs – Part 3
LIST Commands:-
|
REPORT Commands:-
Command |
Description |
REPORT OBSOLETE; |
Lists backups that are
no longer needed according to current retention policy (can be
deleted). |
REPORT SCHEMA; |
Displays the
current database schema as seen by RMAN (tablespaces, datafiles). |
REPORT NEED BACKUP; |
Shows files that
need a backup based on the retention policy. |
REPORT NEED BACKUP RECOVERY WINDOW OF 2 DAYS DATABASE DEVICE TYPE SBT; |
Reports files
that need a backup to satisfy a 2-day recovery window for tape. |
REPORT NEED BACKUP
DEVICE TYPE DISK; |
Same as above, but for
disk-based backups. |
REPORT NEED BACKUP TABLESPACE USERS DEVICE TYPE SBT; |
Shows if tablespace
USERS needs backup on tape. |
REPORT OBSOLETE
RECOVERY WINDOW OF 3 DAYS; |
Lists backups that
fall outside a 3-day recovery window — can be purged. |
REPORT OBSOLETE REDUNDANCY 1; |
Lists backups
that exceed a redundancy of 1 copy, meaning you can safely delete
extras. |
CROSSCHECK Commands:-
Command |
Description |
CROSSCHECK BACKUP
DEVICE TYPE DISK; |
Checks all
disk-based backups to ensure the files still exist on disk. |
CROSSCHECK BACKUP DEVICE TYPE SBT; |
Checks tape-based
(SBT) backups for availability. |
CROSSCHECK BACKUP; |
Validates all
backups: backup sets, image copies, proxy copies — regardless of device
type. |
CROSSCHECK COPY OF DATABASE; |
Validates all
image copies of the entire database (datafiles, controlfiles, etc.). |
CROSSCHECK
BACKUPSET 1338, 1339, 1340; |
Checks specific
backup sets by ID numbers. |
CROSSCHECK BACKUPPIECE TAG nightly_backup; |
Checks all backup
pieces that were tagged with nightly_backup. |
CROSSCHECK BACKUP
OF ARCHIVELOG ALL SPFILE; |
Verifies backups of all
archivelogs and SPFILEs. |
CROSSCHECK CONTROLFILECOPY '/tmp/control01.ctl'; |
Checks the
availability of a control file copy at a specific location. |
DELETE Commands:-
|
No comments:
Post a Comment