Listing Backups
Run the LIST
BACKUP
and LIST
COPY
commands to display information about backups and data file copies listed in the repository. For backups, you can control the format of LIST
output with the options in Table 2-3 and Table 2-4.
Table 2-3 LIST Options for Backups
Option | Example | Explanation |
---|---|---|
|
|
按備份集組織輸出。這是默認的表示模式。 |
|
|
列出根據哪個文件備份的備份 |
|
|
顯示彙總輸出。 |
For both backups and copies you have additional options shown in Table 2-4.
Table 2-4 Additional LIST Options
Option | Example | Explanation |
---|---|---|
|
|
列出在RMAN存儲庫中記錄的備份,但是在最後一個CROSSCHECK命令期間沒有出現在磁盤或磁帶上的預期位置。過期的備份可能已被操作系統實用程序刪除。 |
|
|
列出RMAN存儲庫中具有可用狀態且可以恢復和恢復的數據文件備份或副本。 |
-
Start RMAN and connect to a target database.
-
Run the
LIST
command at the RMAN prompt.You can display specific objects, as in the following examples:
LIST BACKUP OF DATABASE; LIST COPY OF DATAFILE 1, 2; LIST BACKUP OF ARCHIVELOG FROM SEQUENCE 10; LIST BACKUPSET OF DATAFILE 1;
See Also:
-
"Listing Backups and Recovery-Related Objects" to learn more about the
LIST
command -
Oracle Database Backup and Recovery Reference for
LIST
command syntax
Reporting on Database Files and Backups
The REPORT
command performs more complex analysis than LIST
. Some main options are shown in Table 2-5.
Option | Example | Explanation |
---|---|---|
|
|
顯示在當前保留策略下哪些文件需要備份。使用可選的冗餘和恢復窗口參數來指定不同的標準。 |
|
|
列出在已配置的備份保留策略下已過時的備份。使用可選的冗餘和RECOVERYWINDOW參數覆蓋默認值。 |
|
|
報告數據庫中當前時間(默認值)或其他時間的表空間和數據文件。 |
|
|
列出自上次備份數據文件以來對數據文件中的對象執行不可恢復操作的所有數據文件。 |
To generate reports of database files and backups:
-
Start RMAN and connect to a target database.
-
Run the
REPORT
command at the RMAN prompt.The following example reports backups that are obsolete according to the currently configured backup retention policy:
REPORT OBSOLETE;
The following example reports the data files and temp files in the database:
REPORT SCHEMA;
See Also:
"Reporting on Backups and Database Schema" to learn how to use the REPORT
command for RMAN reporting