oracle的Rman管理命令詳解

來源:互聯網
上載者:User

一、相關查詢命令

1.List 當前RMAN所備份的資料庫

RMAN> list incarnation;

匯總查詢:–如果備份檔案多的話多用這兩個list命令可以對備份檔案有個總體瞭解。

1.1. list backup summary; –概述可用的備份

B 表示backup

A 表示Archivelog、 F 表示full backup、 0,1,2 表示incremental level備份

A 表示可用AVALIABLE、 X 表示EXPIRED

這個命令可以派生出很多類似命令,例如

list backup of database summary

list backup of archivelog all summary

list backup of tablespace users summary;

list backup of datafile n,n,n summary

這些命令可以讓我們對已有的備份檔案有一個整體,直觀的瞭解。

1.2.list backup by file;–按照檔案類型分別列出

分別為:資料檔案列表、歸檔日誌列表、控制檔案清單、SPFILE列表

1.3.list backup;

這個命令列出已有備份組的詳細資料。

1.4.list expired backup;

列出到期的備份檔案

1.5.list copy;

列出copy檔案

list copy of database;

list copy of controlfile;

list copy of tablespace users;

list copy of datafile n,n,n;

list copy of archivelog all;

list copy of archivelog from scn 10000;

list copy of archivelog until sequence 12;

2. List 相關檔案的資訊

list backup of {archivelog, controlfile, database, datafile, spfile, tablespace};

list backup of database; –full,incremental,tablespace,datafile

2.1伺服器參數檔案:

list backup of spfile;

2.2 控制檔案:

list backup of controlfile;

2.3 資料檔案:

list backup of datafle n,n,n,n;

2.4資料表空間:

list backup of tablespace tablespace_name;–資料表空間對應的backup

2.5歸檔日誌:

list backup of archivelog {all, from, high, like, logseq, low, scn, sequence, time, until};

list backup of archivelog all;

list backup of archivelog until time ‘sysdate-1′;

list backup of archivelog from sequence 10;

list backup of archivelog until sequence 10;

list backup of archivelog from scn 10000;

list backup of archivelog until scn 200000;

list archivelog from scn 1000;

list archivelog until scn 2000;

list archivelog from sequence 10;

list archivelog until sequence 12;

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.