1. 完全备份

RMAN> backup as backupset database;

Starting backup at 14-DEC-16
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=16 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/ENMOEDU/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/ENMOEDU/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/ENMOEDU/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/ENMOEDU/undotbs01.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/ENMOEDU/ts_lgr.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/ENMOEDU/users01.dbf
channel ORA_DISK_1: starting piece 1 at 14-DEC-16
channel ORA_DISK_1: finished piece 1 at 14-DEC-16
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/13rnfdlf_1_1 tag=TAG20161214T175350 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:02:35
Finished backup at 14-DEC-16 Starting Control File and SPFILE Autobackup at 14-DEC-16
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/c-188428065-20161214-09 comment=NONE
Finished Control File and SPFILE Autobackup at 14-DEC-16
RMAN>

2. 级别为0的增量备份

RMAN> backup as backupset incremental level 0 database;

Starting backup at 14-DEC-16
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental level 0 datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/ENMOEDU/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/ENMOEDU/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/ENMOEDU/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/ENMOEDU/undotbs01.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/ENMOEDU/ts_lgr.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/ENMOEDU/users01.dbf
channel ORA_DISK_1: starting piece 1 at 14-DEC-16
channel ORA_DISK_1: finished piece 1 at 14-DEC-16
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/15rnfe0a_1_1 tag=TAG20161214T175938 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:02:45
Finished backup at 14-DEC-16 Starting Control File and SPFILE Autobackup at 14-DEC-16
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/c-188428065-20161214-0a comment=NONE
Finished Control File and SPFILE Autobackup at 14-DEC-16 RMAN>

3. 级别为1的差异增量备份

RMAN> backup as backupset incremental level 1 database;

Starting backup at 14-DEC-16
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental level 1 datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/ENMOEDU/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/ENMOEDU/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/ENMOEDU/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/ENMOEDU/undotbs01.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/ENMOEDU/ts_lgr.dbf
skipping datafile 00006 because it has not changed
input datafile file number=00004 name=/u01/app/oracle/oradata/ENMOEDU/users01.dbf
channel ORA_DISK_1: starting piece 1 at 14-DEC-16
channel ORA_DISK_1: finished piece 1 at 14-DEC-16
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/17rnfeas_1_1 tag=TAG20161214T180516 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:35
Finished backup at 14-DEC-16 Starting Control File and SPFILE Autobackup at 14-DEC-16
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/c-188428065-20161214-0b comment=NONE
Finished Control File and SPFILE Autobackup at 14-DEC-16 RMAN>

4. 级别为1的累积增量备份

RMAN> backup as backupset incremental level 1 cumulative database;

Starting backup at 14-DEC-16
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental level 1 datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/ENMOEDU/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/ENMOEDU/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/ENMOEDU/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/ENMOEDU/undotbs01.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/ENMOEDU/ts_lgr.dbf
skipping datafile 00006 because it has not changed
input datafile file number=00004 name=/u01/app/oracle/oradata/ENMOEDU/users01.dbf
channel ORA_DISK_1: starting piece 1 at 14-DEC-16
channel ORA_DISK_1: finished piece 1 at 14-DEC-16
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/19rnfeg1_1_1 tag=TAG20161214T180801 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:02:35
Finished backup at 14-DEC-16 Starting Control File and SPFILE Autobackup at 14-DEC-16
piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/c-188428065-20161214-0c comment=NONE
Finished Control File and SPFILE Autobackup at 14-DEC-16 RMAN>

【Oracle】RMAN备份的更多相关文章

  1. Oracle RMAN 备份一例

    Oracle RMAN备份一例: Solaris 10 + Oracle 11.2.0.3 Shell:csh,安装有bash,脚本调用bash 备份策略:周日0级备份,周一~周六1级备份,每6小时备 ...

  2. Oracle—RMAN备份(三)

    一.增量备份的相关概念 1. 在前面说明了RMAN的完整备份,完整备份是备份所用使用过的块,不备份没有使用的过的块:增量备份只备份自上次备份以来更改过的块. 2.即使RMAN的默认操作是在增量备份时扫 ...

  3. Oracle—RMAN备份(一)

    一.RMAN备份相关概念 1.RMAN备份中表空间不需要处于backup模式下,它备份数据文件,归档日志文件,控制文件,spfile和备份集片,但不备份联机重做日志文件,临时文件和口令文件. 2.备份 ...

  4. Oracle—RMAN备份(二)

    在Oracle  RMAN备份(一)中,对各种文件在RMAN中备份进行了说明, 一.备份集的复制 在RMAN 备份中,可以备份其自己的备份,即备份一个文件放在多个目录下,oralce支持最多备份四个. ...

  5. ORACLE RMAN备份--差异增量与累积增量的策略实例图

    转自原文 ORACLE RMAN备份--差异增量与累积增量的策略实例图

  6. ORACLE RMAN备份及还原 RMAN能够进行增量备份:数据库,表空间,数据文件

    ORACLE RMAN备份及还原   RMAN能够进行增量备份:数据库.表空间.数据文件 仅仅有使用过的block能够被备份成backup set 表空间与数据文件相应关系:dba_data_file ...

  7. Oracle RMAN备份策略

    建立增量备份:如果数据库运行于不归档模式下,只能在数据库干净关闭的情况下 ( 以 normal .immediate . transactional 方式关闭 ) 才能进行一致性的增量备份,如果数据库 ...

  8. Oracle RMAN备份恢复指导书

    目 录 1 目的与范围... 1 2 术语和定义... 1 3 角色和职责... 2 4 使用RMAN备份数据库... 2 4.1.1 检查数据库模式... 2 4.1.2 连接到target数据库. ...

  9. Oracle RMAN备份与还原注意事项

    1 备份文件管理 如果要删除之前的备份,不要手动去目录下删除,应该在rman命令模式下使用删除命令,否则虽然在磁盘上把物理备份文件删除了,但是使用备份查看命令会一直看到已经删除的备份文件 list b ...

  10. Oracle RMAN备份与还原

    RMAN在数据库服务器的帮助下实现数据库文件.控制文件.数据库文件与控制文件的映像副本.归档日志文件.数据库服务器参数文件的备份. RMAN的特点: (1) 支持增量备份:传统的exp与expdp备份 ...

随机推荐

  1. EL截取url中参数

    function getUrlString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*) ...

  2. PAT_A1154#Vertex Coloring

    Source: PAT A 1154 Vertex Coloring (25 分) Description: A proper vertex coloring is a labeling of the ...

  3. PAT_A1126#Eulerian Path

    Source: PAT A1126 Eulerian Path (25 分) Description: In graph theory, an Eulerian path is a path in a ...

  4. 11.6 【Linq】分组和延续

    11.6.1 使用 group...by 子句进行分组 class Program { static void Main(string[] args) { var query = from defec ...

  5. 爬虫系列(十三) 用selenium爬取京东商品

    这篇文章,我们将通过 selenium 模拟用户使用浏览器的行为,爬取京东商品信息,还是先放上最终的效果图: 1.网页分析 (1)初步分析 原本博主打算写一个能够爬取所有商品信息的爬虫,可是在分析过程 ...

  6. 批量重命名B站下载文件

    将B站下载的文件统一修改文件名 事情来由 事情是这样的,我在B站上发现一个教程,看了一下,非常不错,于是想下载下来(免得B站和谐). 问题就是这样来了,我手机没多少内存,下载后下发现文件在手机中都是以 ...

  7. 10.Spring注解+MyBatis+Servlet

    1.创建sql脚本 create table account ( id ) unsigned not null auto_increment primary key, account_number ) ...

  8. 学习EXTJS6(6)基本功能-工具栏和菜单

    <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content ...

  9. 【ACM】nyoj_2_括号配对问题_201308091548

    括号配对问题时间限制:3000 ms  |  内存限制:65535 KB 难度:3描述 现在,有一行括号序列,请你检查这行括号是否配对. 输入 第一行输入一个数N(0<N<=100),表示 ...

  10. [bzoj3530][Sdoi2014]数数_AC自动机_数位dp

    数数 bzoj-3530 Sdoi-2014 题目大意:给你一个整数集合,求所有不超过n的正整数,是的它的十进制表示下不能再一段等于集合中的任意数. 注释:$1\le n \le 1200$,$1\l ...