Oracle RMAN 備份命令超詳細解釋

來源:互聯網
上載者:User

一、list常用命令總結備忘
 
    list命令列出控制檔案、RMAN恢複目錄中備份資訊,是我們對所有可見的Database Backup檔案的一個最直觀的瞭解的方法
 
    list incarnation;
 
    list backup summary;
 
    list backup of database summary;
 
    list backup of tablespace summary;
 
    list backup of datafile n,n summary;
 
    list archivelog all summary;
 
    list archivelog all;
 
 
 
    list backup by file;
 
    list backup;
 
    list expired backup;
 
    list copy;
 
 
 
    list backup of spfile;
 
    list backup of controlfile;
 
    list backup datafile n,n,n;
 
    list backup tablespace tablespace_name;
 
    list backup of archivelog all;
 
    list backup of archivelog from scn ...;
 
    list backup of archivelog until scn ...;
 
    list backup of archivelog from sequence ..;
 
    list backup of archivelog until time 'sysdate-10';
 
    list backup of archivelog {all, from, high, like, logseq, low, scn, sequence, time, until};
 
 
 
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;

  • 1
  • 2
  • 3
  • 4
  • 下一頁

相關文章

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.