查詢rman備份資訊經常使用指令

來源:互聯網
上載者:User

標籤:style   color   使用   strong   檔案   資料   

查詢rman備份資訊經常使用指令


----登陸到rman

$rman target /

----以精簡的格式查看備份資訊

RMAN> list backup of database summary;

List of Backups

===============

Key     TY LV S Device Type Completion Time#Pieces #Copies Compressed Tag

備份片號 類型 備份層級 裝置類型 完畢時間 片數 鏡像數 是否壓縮 標籤

------- -- -- ------------ --------------- ------- ------- ---------- ---

1054    B 0  A DISK        26-MAY-14       1      1       YES        TAG20140526T140012

1055    B 0  A DISK        26-MAY-14       1      1       YES        TAG20140526T140012

1062    B 1  A DISK        26-MAY-14       1      1       YES        TAG20140526T141509

1063    B 1  A DISK        26-MAY-14       1      1       YES        TAG20140526T141509

1069    B 1  A DISK        26-MAY-14       1      1       YES        TAG20140526T143009

1070    B 1  A DISK        26-MAY-14       1      1       YES        TAG20140526T143009

1076    B 1  A DISK        26-MAY-14       1      1       YES        TAG20140526T144509

1077    B 1  A DISK        26-MAY-14       1      1       YES        TAG20140526T144509

1082    B 0  A DISK        26-MAY-14       1      1       YES        TAG20140526T150011

1083    B 0  A DISK        26-MAY-14       1      1       YES        TAG20140526T150011

1090    B 1  A DISK        26-MAY-14       1      1       YES        TAG20140526T151509

1091    B 1  A DISK        26-MAY-14       1      1       YES        TAG20140526T151509

RMAN> list backup of database;

----查看備份具體資訊

----BS Key:備份組號

----Type:備份類型,Incr代表增量備份

----LV:備份層級,如1級備、0級備份

----Size:大小

----Device Type:裝置類型,DISK代表磁碟

----Elapsed Time:消耗時間

----Completion Time:完畢時間

----BP Key:備份片號

----Status: 備份狀態,AVAILABLE代表可用 

----Compressed: 是否壓縮,YES代表已經壓縮 

----Tag:標籤,預設會以時間格式列出,如 TAG20140526T151509代表2014年5月26日,15:15進行的備份

----Piece Name: 備份片的實體路徑,如/backup/level1_25p98sfu_1_1.bak

----List of Datafilesin backup set 1091:列出1091號備份片備份的資料檔案資訊

----Ckp SCN:資料檔案的scn號

----Ckp Time:生產檢查點時間

 

List of Backup Sets

===================

BS Key Type LV Size       Device TypeElapsed Time Completion Time

------- ---- -- ---------- ----------------------- ---------------

1090   Incr 1  104.00K    DISK       00:00:00     26-MAY-14     

       BP Key: 1090   Status:AVAILABLE  Compressed: YES  Tag: TAG20140526T151509

       Piece Name: /backup/level1_24p98sfu_1_1.bak

 List of Datafiles in backup set 1090

 File LV Type Ckp SCN    CkpTime  Name

 ---- -- ---- ---------- --------- ----

 1    1  Incr 796838     26-MAY-14/u01/app/oracle/oradata/metro/system01.dbf

 4    1  Incr 796838     26-MAY-14/u01/app/oracle/oradata/metro/users01.dbf

 

BS Key Type LV Size       Device TypeElapsed Time Completion Time

------- ---- -- ---------- ----------------------- ---------------

1091   Incr 1  1.15M      DISK        00:00:02     26-MAY-14     

       BP Key: 1091   Status:AVAILABLE  Compressed: YES  Tag: TAG20140526T151509

       Piece Name: /backup/level1_25p98sfu_1_1.bak

 List of Datafiles in backup set 1091

 File LV Type Ckp SCN    CkpTime  Name

 ---- -- ---- ---------- --------- ----

 2    1  Incr 796842     26-MAY-14/u01/app/oracle/oradata/metro/undotbs01.dbf

 3    1  Incr 796842     26-MAY-14 /u01/app/oracle/oradata/metro/sysaux01.dbf

 5    1  Incr 796842     26-MAY-14/u01/app/oracle/oradata/metro/example01.dbf

----檢查歸檔日誌的連續性

RMAN> crosscheck archivelog all;

----刪除到期的歸檔,假設有運行操作

RMAN> deleteexpired archivelog all;

----查看rman備份的歸檔資訊

RMAN> list backup of archivelog all;

----查看控制檔案的備份資訊

RMAN> list backup of controlfile;

----查看鏡像檔案的備份資訊

RMAN> list copy;

---查看參數檔案的備份資訊

RMAN> list backup of spfile;

----查看資料庫物理結構

RMAN> report schema;

----查看須要備份的檔案資訊

RMAN> report need backup;

----查看rman配置資訊

RMAN> show all;

----查看過時的備份資訊

RMAN> report obsolete;

----查看前1天的備份資訊

RMAN> list backup of archivelog untiltime =‘sysdate -1‘;

---查看user資料表空間的備份資訊

RMAN> list backup of tablespace users;

----查看檔案號為1的備份資訊

RMAN> list backup of datafile 1;

----備份system資料表空間

RMAN> backup tablespace SYSTEM;

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.