The Rman Page command allows users to determine the current recoverable state of the database and to provide specific information about the database backup.
1. Specify data files that have not been backed up recently
The query does not have a backup table space within 3 days, you can use the following command:
Rman> need backup days=3;
You can also generate a report based on the number of incremental backups that you need to apply:
rman> need backup incremental = 3;
2. Report Backup redundancy or recovery window
You can use the need backup redundancy command to determine which data files need to be backed up to meet backup redundancy policies. Such as:
rman> need backup redundancy = 2;
File redundancy backup less than 2
File #bkps Name
---- ----- -----------------------------------------------------
1 0 d:/app/administrator/oradata/orcl/system01. Dbf
2 0 d:/app/administrator/oradata/orcl/sysaux01. Dbf
3 0 d:/app/administrator/oradata/orcl/undotbs01. Dbf
4 0 d:/app/administrator/oradata/orcl/users01. Dbf
You can also use the report need backup recovery Windows days command to establish a minimum time recovery window for backups, and reports that the backup time is longer than the data file for this recovery window.
rman> need backup Recovery window of 2 days;
Must back up to meet the file report required for the 2-day Recovery window
File Day Data name
---- ----- -----------------------------------------------------
1 d:/app/administrator/oradata/orcl/system01. Dbf
2 d:/app/administrator/oradata/orcl/sysaux01. Dbf
3 d:/app/administrator/oradata/orcl/undotbs01. Dbf
4 d:/app/administrator/oradata/orcl/users01. Dbf
3, the report data file is not available to restore operations
Unrecoverable operations on objects in tablespaces and data files that make up these tablespaces can cause some recoverability problems. We can use the unrecoverable command to view unrecoverable objects.
Rman> unrecoverable;
4. Reporting Database mode (schema)
The schema here refers to the physical structure of the database, including the data file name, the data file number, the table space assigned to the data file, the size of the data file, and whether the data file contains a rollback segment. We can look at the current pattern, or we can look at the patterns of past time points.
Rman> a schema;
5. Report Lost Backups
If you use a save policy, the backup may be marked as lost (obsolete), and you can perform the obsolete command to view the information.
rman> obsolete;
The RMAN retention policy applies to this command
Set the RMAN retention policy to redundancy 1
Deprecated Backup and copy reports
Type keyword completion time file name/handle
-------------------- ------ ------------------ --------------------
Backup Set 112 1 August-June-10
Backup Fragment 115 1 August-June -10 06lghd3f_1_1
Backup set 113 1 August-June-10
Backup fragment 116 1 August-June -10 07lghd6e_1_1
Backup set 137 2 January-June-10
Backup Fragment 141 2 January-June -10 d:/app/administrator/flash_recovery_are
A/orcl/backupset/2010_06_21/o1_mf_nnndf_tag20100621t233122_61z1gd2r_. BKP