【11g rman】Listing Backups&Reporting

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

BY BACKUP

LIST BACKUP OF DATABASE BY BACKUP

按備份集組織輸出。這是默認的表示模式。

BY FILE

LIST BACKUP BY FILE

列出根據哪個文件備份的備份

SUMMARY

LIST BACKUP SUMMARY

顯示彙總輸出。

 

For both backups and copies you have additional options shown in Table 2-4.

Table 2-4 Additional LIST Options

Option Example Explanation

EXPIRED

LIST EXPIRED COPY

列出在RMAN存儲庫中記錄的備份,但是在最後一個CROSSCHECK命令期間沒有出現在磁盤或磁帶上的預期位置。過期的備份可能已被操作系統實用程序刪除。

RECOVERABLE

LIST BACKUP RECOVERABLE

列出RMAN存儲庫中具有可用狀態且可以恢復和恢復的數據文件備份或副本。

 

To list backups and copies:

  1. Start RMAN and connect to a target database.

  2. 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:

Reporting on Database Files and Backups

The REPORT command performs more complex analysis than LIST. Some main options are shown in Table 2-5.

Table 2-5 REPORT Options

Option Example Explanation

NEED BACKUP

REPORT NEED BACKUP DATABASE

顯示在當前保留策略下哪些文件需要備份。使用可選的冗餘和恢復窗口參數來指定不同的標準。

OBSOLETE

REPORT OBSOLETE

列出在已配置的備份保留策略下已過時的備份。使用可選的冗餘和RECOVERYWINDOW參數覆蓋默認值。

SCHEMA

REPORT SCHEMA

報告數據庫中當前時間(默認值)或其他時間的表空間和數據文件。

UNRECOVERABLE

REPORT UNRECOVERABLE

列出自上次備份數據文件以來對數據文件中的對象執行不可恢復操作的所有數據文件。

 

To generate reports of database files and backups:

  1. Start RMAN and connect to a target database.

  2. 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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章