RMAN 命令詳解
List command example
可以用於檢視對應物,backup,copy,archivelog等
01 list incarnation
===========================
01.01 list incarnation;
list incarnation of database;
list incarnation of database 'ORA9I';
===================================================
02 list backup example
===========================
02.01 list backup;
02.02 list backup of database;
02.03 list backup of tablespace 'SYSTEM','USERS';
02.04 list backup of datafile 1,3,7;
list backup of datafile 'e:oracleoradataora9isystem01.dbf',
'e:oracleoradataora9iusers01.dbf';
02.05 list backup of controlfile;
02.06 list backup of spfile;
02.07 list backup of archivelog all;
list backup of archivelog like '%.log';
list backup of archivelog from time 'sysdate-14';
list backup of archivelog until time 'sysdate-7';
list backup of archivelog from time 'sysdate-14' until time 'sysdate-7';
list backup of archivelog from scn 10000;
list backup of archivelog until scn 11000;
list backup of archivelog from scn 10000 until scn 11000;
list backup of archivelog from logseq 135;
list backup of archivelog until logseq 139;
list backup of archivelog from logseq 135 until logseq 139;
02.08 list backup completed after 'sysdate -14';
list backup completed before 'sysdate -7';
list backup completed between 'sysdate -14' and 'sysdate-7';
02.09 list backup tag=WHOLE_COLDBACK;
02.10 list backup recoverable;
02.11 list backup device type disk;
02.12 list backup completed after 'sysdate-14'
tag=WHOLE_COLDBACK
device type disk
recoverable;
===================================================
03 list copy example
===========================
03.01 list copy;
03.02 list copy of database;
03.03 list copy of tablespace 'SYSTEM','USERS';
03.04 list copy of datafile 1,3,7;
list copy of datafile
'e:oracleoradataora9isystem01.dbf',
'e:oracleoradataora9iusers01.dbf';
03.05 list copy of controlfile;
03.06 list copy of spfile;
03.07 list copy of archivelog all;
list copy of archivelog like '%.log';
list copy of archivelog from time 'sysdate-14';
list copy of archivelog from time "to_date('07-11-2004','mm-dd-yyyy')";
list copy of archivelog until time 'sysdate-7';
list copy of archivelog from time 'sysdate-14' until time 'sysdate-7';
list copy of archivelog from scn 10000;
list copy of archivelog until scn 11000;
list copy of archivelog from scn 10000 until scn 11000;
list copy of archivelog from logseq 135;
list copy of archivelog until logseq 139;
list copy of archivelog from logseq 135 until logseq 139;
03.08 list copy completed after 'sysdate -14';
list copy completed before 'sysdate -7';
list copy completed between 'sysdate -14' and 'sysdate-7';
03.09 list copy tag=WHOLE_COLDBACK;
03.10 list copy recoverable;
03.11 list copy device type disk;
03.12 list copy completed after 'sysdate-14'
tag=WHOLE_COLDBACK
device type disk
recoverable;
================================================
04. list backup summary
===========================
04.01 list backup summary; 概述可用的備份
04.02 list backup of database summary;
04.03 list backup of tablespace users summary;
04.04 list backup of datafile 9 summary;
04.05 list backup of archivelog all summary;
04.06 list backup of controlfile summary;
04.07 list backup of spfile summary;
=======================================================
05. list others
===========================
05.01 list expired backup;
05.02 list expired backup of archivelog all summary;
05.03 list backup by file;
05.04 list archivelog all;
05.05 list backupset;
1、SHOW命令:
顯示rman配置: RMAN> show all;
2、REPORT命令:
2.1、RMAN> report schema 報告目標資料庫的物理結構;
2.2、RMAN>report need backup days=3; 報告最近3天沒有被備份的資料檔案;
2.3、RMAN> report need backup days 3 tablespace users; 在USERS表空間上3天未備份的資料檔案;
2.4、RMAN> report need backup incremental 3; 報告恢復資料檔案需要的增量備份個數超過3次的資料檔案;
2.5、RMAN> report need backup redundancy 2 database; 報告備份檔案低於2份的所有資料檔案;
RMAN>report need backup redundancy=2;
2.6、RMAN> report need backup recovery window of 6 days; 報告檔案報表的恢復需要超過6天的歸檔日誌的資料檔案;
2.7、RMAN> report unrecoverable; 報告資料庫所有不可恢復的資料檔案;
2.8、RMAN> report obsolete redunndancy 2; 報告備份次數超過2次的陳舊備份;
2.9、RMAN>report obsolete; 報告多餘的備份;
3、LIST命令:列出備份資訊
3.1、列出資料檔案備份集
RMAN>list backup 列出詳細備份;
RMAN>list expired backup 列出過期備份;
RMAN> list backup of database; 列出所有資料檔案的備份集;
RMAN> list backup of tablespace user01; 列出特定表空間的所有資料檔案備份集;
3.2、RMAN> list backup of controlfile 列出控制檔案備份集;
3.3、RMAN> list backup of archivelog all 列出歸檔日誌備份集詳細資訊;
RMAN>list archivelog all; 列出歸檔日誌備份集簡要資訊
3.4、RMAN> list backup of spfile 列出SPFILE備份集;
3.5、RMAN> list copy of datafile 5 列出資料檔案映像副本;
3.6、RMAN> list copy of controlfile 列出控制檔案映像副本;
3.7、RMAN> list copy of archivelog all 列出歸檔日誌映像副本;
3.8、RMAN> list incarnation of database 列出對應物/列出資料庫副本;
3.9、RMAN>list backup summary; 概述可用的備份;
B表示backup
F表示FULL
A表示archive log
0 1表示incremental backup
S說明備份狀態(A AVAILABLE X EXPIRED )
3.10、RMAN>list backup by file 按備份型別列出備份;
按照資料檔案備份,歸檔日誌備份,控制檔案備份,伺服器引數檔案備份 列出
4、CROSSCHECK命令:校驗備份資訊
4.1、RMAN> crosscheck backup 核對所有備份集;
4.2、RMAN> crosscheck backup of database 核對所有資料檔案的備份集;
4.3、RMAN> crosscheck backup of tablespace users 核對特定表空間的備份集;
4.4、RMAN> crosscheck backup of datafile 4 核對特定資料檔案的備份集;
4.5、RMAN> crosscheck backup of controlfile 核對控制檔案的備份集;
4.6、RMAN> crosscheck backup of spfile 核對SPFILE的備份集;
4.7、RMAN> crosscheck backup of archivelog sequence 3 核對歸檔日誌的備份集;
4.8、RMAN> crosscheck copy 核對所有映像副本;
4.9、RMAN> crosscheck copy of database 核對所有資料檔案的映像副本;
4.10、RMAN> crosscheck copy of tablespace users 核對特定表空間的映像副本;
4.11、RMAN> crosscheck copy of datafile 6 核對特定資料檔案的映像副本;
4.12、RMAN> crosscheck copy of archivelog sequence 4 核對歸檔日誌的映像副本;
4.13、RMAN> crosscheck copy of controlfile 核對控制檔案的映像副本;
4.14、RMAN> crosscheck backup tag='SAT_BACKUP';
4.15、RMAN> crosscheck backup completed after 'sysdate - 2'
4.16、RMAN> crosscheck backup completed between 'sysdate - 5' and 'sysdate -2 '
4.17、RMAN> crosscheck backup device type sBT;
4.18、RMAN> crosscheck archivelog all;
4.19、RMAN> crosscheck archivelog like '%ARC00012.001'
4.20、RMAN> crosscheck archivelog from sequence 12;
4.21、RMAN> crosscheck archivelog until sequence 522;
5、DELETE:刪除備份
5.1、RMAN> delete obsolete; 刪除陳舊備份;
5.2、RMAN> delete expired backup; 刪除EXPIRED備份
5.3、RMAN> delete expired copy; 刪除EXPIRED副本;
5.4、RMAN> delete backupset 19; 刪除特定備份集;
5.5、RMAN> delete backuppiece ''d:\backup\DEMO_19.bak'' 刪除特定備份片;
5.6、RMAN> delete backup 刪除所有備份集;
5.7、RMAN> delete datafilecopy ''d:\backup\DEMO_19.bak'' 刪除特定映像副本;
5.8、RMAN> delete copy 刪除所有映像副本;
5.9、RMAN> delete archivelog all delete input;
RMAN> delete backupset 22 format = ''d:\backup\%u.bak'' delete input
在備份後刪除輸入物件;
5.10、RMAN> delete backupset id;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28894640/viewspace-763299/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RMAN命令詳解
- rman命令詳解(三)
- 轉載-RMAN下CROSSCHECK命令詳解ROS
- RMAN命令詳解 非常好的文章
- RMAN的list和report命令詳解
- 使用RMAN工具-RMAN詳解
- Oracle Rman 命令詳解(List report backup configure)Oracle
- rman超詳細命令介紹
- RMAN 備份詳解
- RMAN備份詳解
- -- RMAN備份詳解
- rman使用方法詳解
- RMAN備份詳解(轉載)
- oracle RMAN引數配置詳解Oracle
- 轉載:RMAN 備份詳解
- rman 命令
- RMAN命令
- Dockerfile 命令詳解Docker
- tcpdump命令詳解TCP
- getsebool命令詳解
- w命令詳解
- GCC命令詳解GC
- echo命令詳解
- brctl 命令詳解
- rsync命令詳解
- echo 命令詳解
- date 命令詳解
- free 命令詳解
- NPM命令詳解NPM
- docker命令詳解Docker
- ps命令詳解
- lsof命令詳解
- SVN命令詳解
- 命令模式 詳解模式
- Ethtool命令詳解
- find命令詳解
- test命令詳解
- awk命令詳解