• 【Oracle】RMAN备份


    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> 
  • 相关阅读:
    SSH框架学习笔记(六)----hibernate关联映射注解
    1. Elasticsearch startup on local
    Oracle PL/SQL 入门
    单例模式的两种实现方式对比:DCL (double check idiom)双重检查 和 lazy initialization holder class(静态内部类)
    单例模式中用volatile和synchronized来满足双重检查锁机制
    Java反射机制可以动态修改实例中final修饰的成员变量吗?
    left join 条件区别
    Java应用程序项目的打包与发行(run.bat形式)
    Eclipse调试常用技巧(转)
    PhoneGap: Android 自定义组件
  • 原文地址:https://www.cnblogs.com/NextAction/p/7366704.html
Copyright © 2020-2023  润新知