rman list 用法

转载 2013年12月03日 23:18:57

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;

RMAN的list和report命令详解

一.List命令  RMAN的list命令是一种在数据库控制文件或恢复目录中查询备份的历史信息的方法。  1.列出对应物  命令:list incarnation  作用:为用户提供目标数据库...
  • cuiyan1982
  • cuiyan1982
  • 2016年08月19日 16:16
  • 376

RMAN深入解析之--Incarnation应用(不完全恢复)

RMAN深入解析之--Incarnation应用(不完全恢复)案例环境:操作系统:RedHat EL5Oracle:  Oracle 11gR2   当在做Media Recover的不完全恢复时,通...
  • lqx0405
  • lqx0405
  • 2015年03月31日 12:05
  • 404

OCP-1Z0-053-V13.02-264题

264.Using the LIST command in Recovery Manager (RMAN), which two pieces of information in the RMAN ...
  • rlhua
  • rlhua
  • 2014年01月27日 15:18
  • 6530

RMAN 异机 复制数据库

 关于RMAN 复制的理论知识,参考我的Blog:RMAN 复制目标数据库的理论知识http://blog.csdn.net/tianlesoftware/archive/2010/07/19/574...
  • tianlesoftware
  • tianlesoftware
  • 2010年07月20日 15:46
  • 11493

RMAN 系列(八) ---- RMAN List和report 命令

一. List 命令RMAN的list命令是一种在数据库控制文件或恢复目录中查询备份的历史信息的方法。列表提供了一组信息,包括从数据库对应物的列表到备份集和归档日志的备份的列表的所有信息。1.1 列出...
  • tianlesoftware
  • tianlesoftware
  • 2010年07月12日 09:27
  • 6883

RMAN的基本知识及使用技巧

RMAN是 ORACLE提供的一个备份与恢复的工具,可以用来备份和还原数据库文件、 归档日志和控制文件。它也可以用来执行完全或不完全的数据库恢复。 一,RMAN的组件、概念 1,RMAN  主...
  • waterxcfg304
  • waterxcfg304
  • 2013年01月10日 14:56
  • 918

RMAN 备份与恢复之所有文件都丢失

RMAN 备份与恢复之所有文件都丢失
  • zhuke0203
  • zhuke0203
  • 2017年05月10日 23:56
  • 260

RMAN catalog 的创建和使用

RMAN 基于Catalog 的方式提供了更安全,更可靠的数据保护方式,同时也可以将常用备份脚本置于其中……...
  • robinson_0612
  • robinson_0612
  • 2010年11月29日 19:15
  • 23201

linux平台下RMAN 备份详解

--====================== -- RMAN 备份详解 --======================   一、数据库备份与RMAN备份的概念         1.数...
  • oMiracle12345678
  • oMiracle12345678
  • 2014年03月07日 14:05
  • 1307

基于RMAN实现坏块介质恢复(blockrecover)

对于物理损坏的数据块,我们可以通过RMAN块介质恢复(BLOCK MEDIA RECOVERY)功能来完成受损块的恢复,而不需要恢复整个数据库或所有文件来修复这些少量受损的数据块。恢复整个数据库或数据...
  • robinson_0612
  • robinson_0612
  • 2013年08月29日 11:45
  • 6565
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:rman list 用法
举报原因:
原因补充:

(最多只允许输入30个字)