当前位置:  数据库>oracle

Oracle RMAN备份深入解析--联机备份

    来源: 互联网  发布时间:2017-06-07

    本文导语: RMAN> backup database plus archivelog; 此命令将触发以下操作: 1、首先,进程使用alter system archivelog current命令完成了日志切换操作。 2、进程将现存所有归档重做日志备份 3、开始执行实际的数据库备份操作,此时会发生一次日志切换...

RMAN> backup database plus archivelog;

此命令将触发以下操作:

1、首先,进程使用alter system archivelog current命令完成了日志切换操作。

2、进程将现存所有归档重做日志备份

3、开始执行实际的数据库备份操作,此时会发生一次日志切换(alter system archivelog current),同时RMAN备份剩余的归档重做日志(使用backup archivelog all命令)。

4、执行控制文件和服务器参数文件的自动备份操作。

--------------------------------------------------------------------------------

RMAN 配置归档日志删除策略

Oracle基础教程之通过RMAN复制数据库

RMAN备份策略制定参考内容

RMAN备份学习笔记

Oracle数据库备份加密 RMAN加密

Linux-6-64下安装Oracle 12C笔记

在CentOS 6.4下安装Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虚拟机中安装步骤

Debian 下 安装 Oracle 11g XE R2

--------------------------------------------------------------------------------

案例:

1、查看备份前的日志信息

17:13:50 SYS@ prod>select group#,sequence#,thread#,status from v$log;

    GROUP#  SEQUENCE#    THREAD# STATUS

---------- ---------- ---------- ----------------

        1        16          1 CURRENT

        2        14          1 INACTIVE

        3        15          1 INACTIVE

Elapsed: 00:00:00.05

2、执行备份

RMAN> backup database plus archivelog;

 

Starting backup at 03-JUL-14

current log archived

using channel ORA_DISK_1

channel ORA_DISK_1: starting archived log backup set

channel ORA_DISK_1: specifying archived log(s) in backup set

input archived log thread=1 sequence=13 RECID=41 STAMP=851966028

input archived log thread=1 sequence=14 RECID=42 STAMP=851966028

input archived log thread=1 sequence=15 RECID=43 STAMP=851966030

input archived log thread=1 sequence=16 RECID=44 STAMP=851966141

channel ORA_DISK_1: starting piece 1 at 03-JUL-14

channel ORA_DISK_1: finished piece 1 at 03-JUL-14

piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/0kpcfu5t_1_1 tag=TAG20140703T171541 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04

Finished backup at 03-JUL-14

Starting backup at 03-JUL-14

using channel ORA_DISK_1

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/prod/system01.dbf

input datafile file number=00002 name=/u01/app/oracle/oradata/prod/sysaux01.dbf

input datafile file number=00008 name=/u01/app/oracle/oradata/prod/perftbs01.dbf

input datafile file number=00004 name=/u01/app/oracle/oradata/prod/users01.dbf

input datafile file number=00005 name=/u01/app/oracle/oradata/prod/example01.dbf

input datafile file number=00007 name=/u01/app/oracle/oradata/prod/undotbs2.dbf

input datafile file number=00006 name=/u01/app/oracle/oradata/prod/tbs1.dbf

input datafile file number=00003 name=/u01/app/oracle/oradata/prod/undotbs1.dbf

channel ORA_DISK_1: starting piece 1 at 03-JUL-14

channel ORA_DISK_1: finished piece 1 at 03-JUL-14

piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/0lpcfu61_1_1 tag=TAG20140703T171545 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:01:26

Finished backup at 03-JUL-14

Starting backup at 03-JUL-14

current log archived

using channel ORA_DISK_1

channel ORA_DISK_1: starting archived log backup set

channel ORA_DISK_1: specifying archived log(s) in backup set

input archived log thread=1 sequence=17 RECID=45 STAMP=851966231

channel ORA_DISK_1: starting piece 1 at 03-JUL-14

channel ORA_DISK_1: finished piece 1 at 03-JUL-14

piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/0mpcfu8o_1_1 tag=TAG20140703T171712 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01

Finished backup at 03-JUL-14

Starting Control File and SPFILE Autobackup at 03-JUL-14

piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/c-239333010-20140703-00 comment=NONE

Finished Control File and SPFILE Autobackup at 03-JUL-14


3、查看告警日志

[oracle@rh6 ~]$ tail -f /u01/app/oracle/diag/rdbms/prod/prod/trace/alert_prod.log

  Current log# 1 seq# 16 mem# 1: /dsk2/oradata/prod/redo01b.log

Thu Jul 03 17:13:50 2014

Archived Log entry 43 added for thread 1 sequence 15 ID 0xfaf1e60 dest 2:

Thu Jul 03 17:15:41 2014

ALTER SYSTEM ARCHIVE LOG

Thu Jul 03 17:15:41 2014

Thread 1 advanced to log sequence 17 (LGWR switch)

  Current log# 2 seq# 17 mem# 0: /dsk1/oradata/prod/redo02a.log

  Current log# 2 seq# 17 mem# 1: /dsk2/oradata/prod/redo02b.log

Archived Log entry 44 added for thread 1 sequence 16 ID 0xfaf1e60 dest 2:

Thu Jul 03 17:17:11 2014

ALTER SYSTEM ARCHIVE LOG

Thu Jul 03 17:17:11 2014

Thread 1 advanced to log sequence 18 (LGWR switch)

  Current log# 3 seq# 18 mem# 0: /dsk1/oradata/prod/redo03a.log

  Current log# 3 seq# 18 mem# 1: /dsk2/oradata/prod/redo03b.log

Archived Log entry 45 added for thread 1 sequence 17 ID 0xfaf1e60 dest 2:

4、备份后的日志切换信息

17:13:56 SYS@ prod>select group#,sequence#,thread#,status from v$log;

    GROUP#  SEQUENCE#    THREAD# STATUS

---------- ---------- ---------- ----------------

        1        16          1 INACTIVE

        2        17          1 ACTIVE

        3        18          1 CURRENT

Elapsed: 00:00:00.01

5、查看备份信息

RMAN> list backup of database;

List of Backup Sets

===================

BS Key  Type LV Size      Device Type Elapsed Time Completion Time

------- ---- -- ---------- ----------- ------------ ---------------

17      Full    1.13G      DISK        00:01:21    03-JUL-14     

        BP Key: 17  Status: AVAILABLE  Compressed: NO  Tag: TAG20140703T171545

        Piece Name: /u01/app/oracle/product/11.2.0/db_1/dbs/0lpcfu61_1_1

  List of Datafiles in backup set 17

  File LV Type Ckp SCN    Ckp Time  Name

  ---- -- ---- ---------- --------- ----

  1      Full 2066885    03-JUL-14 /u01/app/oracle/oradata/prod/system01.dbf

  2      Full 2066885    03-JUL-14 /u01/app/oracle/oradata/prod/sysaux01.dbf

  3      Full 2066885    03-JUL-14 /u01/app/oracle/oradata/prod/undotbs1.dbf

  4      Full 2066885    03-JUL-14 /u01/app/oracle/oradata/prod/users01.dbf

  5      Full 2066885    03-JUL-14 /u01/app/oracle/oradata/prod/example01.dbf

  6      Full 2066885    03-JUL-14 /u01/app/oracle/oradata/prod/tbs1.dbf

  7      Full 2066885    03-JUL-14 /u01/app/oracle/oradata/prod/undotbs2.dbf

  8      Full 2066885    03-JUL-14 /u01/app/oracle/oradata/prod/perftbs01.dbf

 

RMAN> list backup of archivelog all;

List of Backup Sets

===================

BS Key  Size      Device Type Elapsed Time Completion Time

------- ---------- ----------- ------------ ---------------

16      31.11M    DISK        00:00:01    03-JUL-14     

        BP Key: 16  Status: AVAILABLE  Compressed: NO  Tag: TAG20140703T171541

        Piece Name: /u01/app/oracle/product/11.2.0/db_1/dbs/0kpcfu5t_1_1

  List of Archived Logs in backup set 16

  Thrd Seq    Low SCN    Low Time  Next SCN  Next Time

  ---- ------- ---------- --------- ---------- ---------

  1    13      2051289    03-JUL-14 2066660    03-JUL-14

  1    14      2066660    03-JUL-14 2066663    03-JUL-14

  1    15      2066663    03-JUL-14 2066666    03-JUL-14

  1    16      2066666    03-JUL-14 2066878    03-JUL-14

BS Key  Size      Device Type Elapsed Time Completion Time

------- ---------- ----------- ------------ ---------------

18      104.00K    DISK        00:00:00    03-JUL-14     

        BP Key: 18  Status: AVAILABLE  Compressed: NO  Tag: TAG20140703T171712

        Piece Name: /u01/app/oracle/product/11.2.0/db_1/dbs/0mpcfu8o_1_1

  List of Archived Logs in backup set 18

  Thrd Seq    Low SCN    Low Time  Next SCN  Next Time

  ---- ------- ---------- --------- ---------- ---------

  1    17      2066878    03-JUL-14 2066956    03-JUL-14


    
 
 

您可能感兴趣的文章:

  • 如何将Aix上的oracle 物理备份 然后再在linux 系统上还原oracle
  • Oracle数据库设置任务计划备份一周的备份记录
  • Oracle数据库备份和恢复工具 RMan
  • oracle10g 数据备份与导入
  • aix下自动备份oracle 的输出日志问题,急!!
  • hp unix下备份oracle表的问题
  • linux小白提问linux备份oracle数据库的问题
  • oracle不能自动备份
  • Oracle数据库逻辑备份的SH文件
  • Linux环境中Oracle数据导入与导出备份操作
  • oracle数据库备份急???????????
  • oracle定时备份压缩的实现步骤
  • Unix系统下如何将oracle数据库备份
  • 详解如何应用改变跟踪技术加速Oracle递增备份
  • Oracle中备份表的简单sql命令语句
  • 实战Oracle数据库备份与恢复
  • Linux下实现自动备份Oracle数据库
  • oracle备份恢复的具体方法
  • 利用windows任务计划实现oracle的定期备份
  • Oracle11g备份和恢复功能的提高
  • oracle联机数据库备份详解
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • linux下oracle的自启动脚本解析
  • oracle SQL解析步骤小结
  • 解析mysql与Oracle update的区别
  • 细化解析Oracle 10g STATSPACK的新功能
  • 深入解析Oracle参数及参数文件
  • Oracle数据库安装配置流程示例详细解析
  • Oracle中DBMS_SQL解析SQL语句的流程
  • 如何设置让Oracle SQL Developer显示的时间包含时分秒 iis7站长之家
  • Oracle数据库安全性管理基本措施实例解析
  • 解析Oracle查询和删除JOB的SQL
  • 解析jdbc处理oracle的clob字段的详解
  • 职场专家解析Oracle认证门道
  • oracle 索引不能使用深入解析
  • oracle的rownum深入解析
  • 解析如何查看Oracle数据库中某张表的字段个数
  • Oracle row_number() over()解析函数高效实现分页
  • 解析学习Oracle架构所应了解的基础知识
  • Oracle基本查询过滤排序示例解析
  • Oracle硬解析和软解析的区别分析
  • 解析Oracle中多表级联删除的方法
  • Oracle 12c发布简单介绍及官方下载地址
  • 在linux下安装oracle,如何设置让oracle自动启动!也就是让oracle那个服务自动启动,不是手动的
  • oracle 11g最新版官方下载地址
  • 请问su oracle 和su - oracle有什么不同?
  • Oracle 数据库(oracle Database)Select 多表关联查询方式
  • 虚拟机装Oracle R12与Oracle10g
  • Oracle数据库(Oracle Database)体系结构及基本组成介绍
  • Oracle 数据库开发工具 Oracle SQL Developer
  • 如何设置让Oracle SQL Developer显示的时间包含时分秒
  • Oracle EBS R12 支持 Oracle Database 11g
  • Oracle 10g和Oracle 11g网格技术介绍


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,