设为首页 收藏本站
查看: 883|回复: 0

[经验分享] Oracle 12c RMAN 功能增强

[复制链接]

尚未签到

发表于 2018-9-15 06:30:39 | 显示全部楼层 |阅读模式
  数据库版本

  •   SQL>  select * from v$version;

  •   BANNER                                                                               CON_ID
  •   -------------------------------------------------------------------------------- ----------

  •   Oracle Database 12c Enterprise Edition>

  •   PL/SQL>
  •   CORE    12.1.0.1.0      Production                                                        0
  •   TNS for Linux: Version 12.1.0.1.0 - Production                                            0
  •   NLSRTL Version 12.1.0.1.0 - Production                                                    0
  rman对sql语句支持增强

  •   [oracle@xifenfei tmp]$ rman target /


  •   Recovery Manager:>

  •   Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

  •   connected to target database: CDB (DBID=1922813718)

  •   RMAN> select sysdate from dual;

  •   using target database control file instead of recovery catalog
  •   SYSDATE
  •   ---------
  •   01-JUN-13


  •   RMAN>>

  •   Statement processed

  •   RMAN>  select sysdate from dual;

  •   SYSDATE
  •   -------------------
  •   2013-06-01 14:16:48

  •   RMAN> desc v$log

  •   Name                                      Null?    Type
  •   ----------------------------------------- -------- ----------------------------
  •   GROUP#                                             NUMBER
  •   THREAD#                                            NUMBER
  •   SEQUENCE#                                          NUMBER
  •   BYTES                                              NUMBER
  •   BLOCKSIZE                                          NUMBER
  •   MEMBERS                                            NUMBER
  •   ARCHIVED                                           VARCHAR2(3)
  •   STATUS                                             VARCHAR2(16)
  •   FIRST_CHANGE#                                      NUMBER
  •   FIRST_TIME                                         DATE
  •   NEXT_CHANGE#                                       NUMBER
  •   NEXT_TIME                                          DATE
  •   CON_ID                                             NUMBER
  这里看到rman只是sql语句中的select和desc用法
  rman分割数据文件增强

  •   RMAN>  CONFIGURE DEVICE TYPE DISK PARALLELISM 3;

  •   old RMAN configuration parameters:
  •   CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
  •   new RMAN configuration parameters:
  •   CONFIGURE DEVICE TYPE DISK PARALLELISM 3 BACKUP TYPE TO BACKUPSET;
  •   new RMAN configuration parameters are successfully stored


  •   RMAN> backup incremental level 1 section>

  •   Starting backup at 01-JUN-13
  •   allocated channel: ORA_DISK_1
  •   channel ORA_DISK_1: SID=27 device type=DISK
  •   allocated channel: ORA_DISK_2
  •   channel ORA_DISK_2: SID=269 device type=DISK
  •   allocated channel: ORA_DISK_3
  •   channel ORA_DISK_3: SID=24 device type=DISK
  •   no parent backup or copy of datafile 1 found
  •   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=00001name=+DATA/cdb/system01.dbf
  •   backing up blocks 1 through 3840
  •   channel ORA_DISK_1: starting piece 1 at 01-JUN-13
  •   channel ORA_DISK_2: starting incremental level 1 datafile backup set
  •   channel ORA_DISK_2: specifying datafile(s) in backup set
  •   input datafile file number=00001name=+DATA/cdb/system01.dbf
  •   ……………………
  •   backing up blocks 96001 through 99840
  •   channel ORA_DISK_3: starting piece 26 at 01-JUN-13
  •   channel ORA_DISK_1: finished piece 24 at 01-JUN-13
  •   piece handle=/tmp/system_02ob3pg1_24_1.rman tag=TAG20130601T144518comment=NONE
  •   channel ORA_DISK_1: backup set complete, elapsed time: 00:00:08
  •   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=00001name=+DATA/cdb/system01.dbf
  •   backing up blocks 99841 through 101120
  •   channel ORA_DISK_1: starting piece 27 at 01-JUN-13
  •   channel ORA_DISK_2: finished piece 25 at 01-JUN-13
  •   piece handle=/tmp/system_02ob3pg1_25_1.rman tag=TAG20130601T144518comment=NONE
  •   channel ORA_DISK_2: backup set complete, elapsed time: 00:00:07
  •   channel ORA_DISK_3: finished piece 26 at 01-JUN-13
  •   piece handle=/tmp/system_02ob3pg1_26_1.rman tag=TAG20130601T144518comment=NONE
  •   channel ORA_DISK_3: backup set complete, elapsed time: 00:00:06
  •   channel ORA_DISK_1: finished piece 27 at 01-JUN-13
  •   piece handle=/tmp/system_02ob3pg1_27_1.rman tag=TAG20130601T144518comment=NONE
  •   channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07
  •   Finished backup at 01-JUN-13
  备份文件情况

  •   [oracle@xifenfei tmp]$ ll -ltr system*
  •   -rw-r----- 1 oracle dba 14761984 Jun  1 14:45 system_02ob3pg1_1_1.rman
  •   -rw-r----- 1 oracle dba  9535488 Jun  1 14:45 system_02ob3pg1_2_1.rman
  •   -rw-r----- 1 oracle dba 16973824 Jun  1 14:45 system_02ob3pg1_4_1.rman
  •   -rw-r----- 1 oracle dba 18284544 Jun  1 14:45 system_02ob3pg1_3_1.rman
  •   -rw-r----- 1 oracle dba 12804096 Jun  1 14:45 system_02ob3pg1_5_1.rman
  •   -rw-r----- 1 oracle dba 29163520 Jun  1 14:45 system_02ob3pg1_6_1.rman
  •   -rw-r----- 1 oracle dba 31326208 Jun  1 14:46 system_02ob3pg1_7_1.rman
  •   -rw-r----- 1 oracle dba 30851072 Jun  1 14:46 system_02ob3pg1_8_1.rman
  •   -rw-r----- 1 oracle dba 30801920 Jun  1 14:46 system_02ob3pg1_9_1.rman
  •   -rw-r----- 1 oracle dba 23977984 Jun  1 14:46 system_02ob3pg1_11_1.rman
  •   -rw-r----- 1 oracle dba 28508160 Jun  1 14:46 system_02ob3pg1_10_1.rman
  •   -rw-r----- 1 oracle dba 30277632 Jun  1 14:46 system_02ob3pg1_12_1.rman
  •   -rw-r----- 1 oracle dba 31498240 Jun  1 14:46 system_02ob3pg1_13_1.rman
  •   -rw-r----- 1 oracle dba 31498240 Jun  1 14:47 system_02ob3pg1_14_1.rman
  •   -rw-r----- 1 oracle dba 31498240 Jun  1 14:47 system_02ob3pg1_15_1.rman
  •   -rw-r----- 1 oracle dba 30507008 Jun  1 14:47 system_02ob3pg1_17_1.rman
  •   -rw-r----- 1 oracle dba 30834688 Jun  1 14:47 system_02ob3pg1_16_1.rman
  •   -rw-r----- 1 oracle dba 31498240 Jun  1 14:47 system_02ob3pg1_18_1.rman
  •   -rw-r----- 1 oracle dba 30244864 Jun  1 14:47 system_02ob3pg1_19_1.rman
  •   -rw-r----- 1 oracle dba 29016064 Jun  1 14:47 system_02ob3pg1_20_1.rman
  •   -rw-r----- 1 oracle dba 29212672 Jun  1 14:47 system_02ob3pg1_21_1.rman
  •   -rw-r----- 1 oracle dba 30728192 Jun  1 14:47 system_02ob3pg1_22_1.rman
  •   -rw-r----- 1 oracle dba 29384704 Jun  1 14:47 system_02ob3pg1_23_1.rman
  •   -rw-r----- 1 oracle dba 26566656 Jun  1 14:47 system_02ob3pg1_24_1.rman
  •   -rw-r----- 1 oracle dba 24928256 Jun  1 14:48 system_02ob3pg1_25_1.rman
  •   -rw-r----- 1 oracle dba 19324928 Jun  1 14:48 system_02ob3pg1_26_1.rman
  •   -rw-r----- 1 oracle dba  6291456 Jun  1 14:48 system_02ob3pg1_27_1.rman
  在12C之前的版本,ORACLE 11GR2只是对于全备的备份集备份(非增量,非copy备份方式)方式支持数据文件分割备份功能,对于11.2之前的版本均不支持该功能.在12C中rman可以支持对于全备,增量备份,copy备份全部支持分割数据文件备份(CONTROLFILE,SPFILE不支持)。
  原文链接:http://www.xifenfei.com/4491.html



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-583046-1-1.html 上篇帖子: java学习---oracle的触发器 下篇帖子: 构建oracle 11g数据库
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表