Oracle 12c RMAN 功能增强

 数据库版本

  1. SQL>  select * from v$version; 
  2.   
  3. BANNER                                                                               CON_ID 
  4. -------------------------------------------------------------------------------- ---------- 
  5. Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production              0 
  6. PL/SQL Release 12.1.0.1.0 - Production                                                    0 
  7. CORE    12.1.0.1.0      Production                                                        0 
  8. TNS for Linux: Version 12.1.0.1.0 - Production                                            0 
  9. NLSRTL Version 12.1.0.1.0 - Production                                                    0 

rman对sql语句支持增强

  1. [oracle@xifenfei tmp]$ rman target / 
  2.   
  3. Recovery Manager: Release 12.1.0.1.0 - Production on Sat Jun 1 14:07:50 2013 
  4.   
  5. Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved. 
  6.   
  7. connected to target database: CDB (DBID=1922813718
  8.   
  9. RMAN> select sysdate from dual; 
  10.   
  11. using target database control file instead of recovery catalog 
  12. SYSDATE  
  13. --------- 
  14. 01-JUN-13 
  15.   
  16. RMAN> alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss'
  17.   
  18. Statement processed 
  19.   
  20. RMAN>  select sysdate from dual; 
  21.   
  22. SYSDATE            
  23. ------------------- 
  24. 2013-06-01 14:16:48 
  25.   
  26. RMAN> desc v$log 
  27.   
  28.  Name                                      Null?    Type 
  29.  ----------------------------------------- -------- ---------------------------- 
  30.  GROUP#                                             NUMBER                      
  31.  THREAD#                                            NUMBER                      
  32.  SEQUENCE#                                          NUMBER                      
  33.  BYTES                                              NUMBER                      
  34.  BLOCKSIZE                                          NUMBER                      
  35.  MEMBERS                                            NUMBER                      
  36.  ARCHIVED                                           VARCHAR2(3)                 
  37.  STATUS                                             VARCHAR2(16)                
  38.  FIRST_CHANGE#                                      NUMBER                      
  39.  FIRST_TIME                                         DATE                        
  40.  NEXT_CHANGE#                                       NUMBER                      
  41.  NEXT_TIME                                          DATE                        
  42.  CON_ID                                             NUMBER                      

这里看到rman只是sql语句中的select和desc用法

rman分割数据文件增强

 

  1. RMAN>  CONFIGURE DEVICE TYPE DISK PARALLELISM 3; 
  2.   
  3. old RMAN configuration parameters: 
  4. CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; 
  5. new RMAN configuration parameters: 
  6. CONFIGURE DEVICE TYPE DISK PARALLELISM 3 BACKUP TYPE TO BACKUPSET; 
  7. new RMAN configuration parameters are successfully stored 
  8.   
  9. RMAN> backup incremental level 1 section size 30M datafile 1 format '/tmp/system_%U.rman'; 
  10.   
  11. Starting backup at 01-JUN-13 
  12. allocated channel: ORA_DISK_1 
  13. channel ORA_DISK_1: SID=27 device type=DISK 
  14. allocated channel: ORA_DISK_2 
  15. channel ORA_DISK_2: SID=269 device type=DISK 
  16. allocated channel: ORA_DISK_3 
  17. channel ORA_DISK_3: SID=24 device type=DISK 
  18. no parent backup or copy of datafile 1 found 
  19. channel ORA_DISK_1: starting incremental level 1 datafile backup set 
  20. channel ORA_DISK_1: specifying datafile(s) in backup set 
  21. input datafile file number=00001 name=+DATA/cdb/system01.dbf 
  22. backing up blocks 1 through 3840 
  23. channel ORA_DISK_1: starting piece 1 at 01-JUN-13 
  24. channel ORA_DISK_2: starting incremental level 1 datafile backup set 
  25. channel ORA_DISK_2: specifying datafile(s) in backup set 
  26. input datafile file number=00001 name=+DATA/cdb/system01.dbf 
  27. …………………… 
  28. backing up blocks 96001 through 99840 
  29. channel ORA_DISK_3: starting piece 26 at 01-JUN-13 
  30. channel ORA_DISK_1: finished piece 24 at 01-JUN-13 
  31. piece handle=/tmp/system_02ob3pg1_24_1.rman tag=TAG20130601T144518 comment=NONE 
  32. channel ORA_DISK_1: backup set complete, elapsed time: 00:00:08 
  33. channel ORA_DISK_1: starting incremental level 1 datafile backup set 
  34. channel ORA_DISK_1: specifying datafile(s) in backup set 
  35. input datafile file number=00001 name=+DATA/cdb/system01.dbf 
  36. backing up blocks 99841 through 101120 
  37. channel ORA_DISK_1: starting piece 27 at 01-JUN-13 
  38. channel ORA_DISK_2: finished piece 25 at 01-JUN-13 
  39. piece handle=/tmp/system_02ob3pg1_25_1.rman tag=TAG20130601T144518 comment=NONE 
  40. channel ORA_DISK_2: backup set complete, elapsed time: 00:00:07 
  41. channel ORA_DISK_3: finished piece 26 at 01-JUN-13 
  42. piece handle=/tmp/system_02ob3pg1_26_1.rman tag=TAG20130601T144518 comment=NONE 
  43. channel ORA_DISK_3: backup set complete, elapsed time: 00:00:06 
  44. channel ORA_DISK_1: finished piece 27 at 01-JUN-13 
  45. piece handle=/tmp/system_02ob3pg1_27_1.rman tag=TAG20130601T144518 comment=NONE 
  46. channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07 
  47. Finished backup at 01-JUN-13 

备份文件情况

  1. [oracle@xifenfei tmp]$ ll -ltr system* 
  2. -rw-r----- 1 oracle dba 14761984 Jun  1 14:45 system_02ob3pg1_1_1.rman 
  3. -rw-r----- 1 oracle dba  9535488 Jun  1 14:45 system_02ob3pg1_2_1.rman 
  4. -rw-r----- 1 oracle dba 16973824 Jun  1 14:45 system_02ob3pg1_4_1.rman 
  5. -rw-r----- 1 oracle dba 18284544 Jun  1 14:45 system_02ob3pg1_3_1.rman 
  6. -rw-r----- 1 oracle dba 12804096 Jun  1 14:45 system_02ob3pg1_5_1.rman 
  7. -rw-r----- 1 oracle dba 29163520 Jun  1 14:45 system_02ob3pg1_6_1.rman 
  8. -rw-r----- 1 oracle dba 31326208 Jun  1 14:46 system_02ob3pg1_7_1.rman 
  9. -rw-r----- 1 oracle dba 30851072 Jun  1 14:46 system_02ob3pg1_8_1.rman 
  10. -rw-r----- 1 oracle dba 30801920 Jun  1 14:46 system_02ob3pg1_9_1.rman 
  11. -rw-r----- 1 oracle dba 23977984 Jun  1 14:46 system_02ob3pg1_11_1.rman 
  12. -rw-r----- 1 oracle dba 28508160 Jun  1 14:46 system_02ob3pg1_10_1.rman 
  13. -rw-r----- 1 oracle dba 30277632 Jun  1 14:46 system_02ob3pg1_12_1.rman 
  14. -rw-r----- 1 oracle dba 31498240 Jun  1 14:46 system_02ob3pg1_13_1.rman 
  15. -rw-r----- 1 oracle dba 31498240 Jun  1 14:47 system_02ob3pg1_14_1.rman 
  16. -rw-r----- 1 oracle dba 31498240 Jun  1 14:47 system_02ob3pg1_15_1.rman 
  17. -rw-r----- 1 oracle dba 30507008 Jun  1 14:47 system_02ob3pg1_17_1.rman 
  18. -rw-r----- 1 oracle dba 30834688 Jun  1 14:47 system_02ob3pg1_16_1.rman 
  19. -rw-r----- 1 oracle dba 31498240 Jun  1 14:47 system_02ob3pg1_18_1.rman 
  20. -rw-r----- 1 oracle dba 30244864 Jun  1 14:47 system_02ob3pg1_19_1.rman 
  21. -rw-r----- 1 oracle dba 29016064 Jun  1 14:47 system_02ob3pg1_20_1.rman 
  22. -rw-r----- 1 oracle dba 29212672 Jun  1 14:47 system_02ob3pg1_21_1.rman 
  23. -rw-r----- 1 oracle dba 30728192 Jun  1 14:47 system_02ob3pg1_22_1.rman 
  24. -rw-r----- 1 oracle dba 29384704 Jun  1 14:47 system_02ob3pg1_23_1.rman 
  25. -rw-r----- 1 oracle dba 26566656 Jun  1 14:47 system_02ob3pg1_24_1.rman 
  26. -rw-r----- 1 oracle dba 24928256 Jun  1 14:48 system_02ob3pg1_25_1.rman 
  27. -rw-r----- 1 oracle dba 19324928 Jun  1 14:48 system_02ob3pg1_26_1.rman 
  28. -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

【编辑推荐】

Oracle Eneterprise Linux 5.8上安装Database 12c

文章来源网络,作者:管理,如若转载,请注明出处:https://shuyeidc.com/wp/236252.html<

(0)
管理的头像管理
上一篇2025-04-21 22:31
下一篇 2025-04-21 22:32

相关推荐

  • jsp空间购买和交换数据空间怎么买,有哪些注意事项?

    购买JSP空间时,是否考虑过数据交换空间的性能?简米科技(2003年始创,23年行业沉淀)与酷番云(工信部一类增值电信全牌照)这类持牌自营机房的服务商,能确保数据交换的高效稳定,是值得优先选择的合作伙伴,为什么JSP空间需要搭配独立的数据交换空间从JSP应用特性看数据交换需求JSP基于Java技术,常用于企业级……

    2026-08-11
    0
  • 建网站用香港空间效果怎么样,香港空间稳定吗?

    建网站用香港空间,对于创建网站资产来说,核心价值在于免备案和全球带宽优势,尤其适合外贸、跨境电商和需要快速启动的项目,但你必须权衡国内访问延迟,并选择有资质的服务商以保证资产安全,香港空间的核心优势与适用边界免备案:节省时间就是节省成本国内服务器需要备案,通常需要10到20天,香港空间无需备案,域名解析后即可上……

    2026-08-11
    0
  • Java连接云数据库的方法是什么,如何操作

    Java连接云数据库的核心在于通过JDBC驱动,结合云服务商提供的连接地址、端口、数据库名及认证信息,配置安全策略(如SSL、IP白名单),即可实现稳定高效的远程数据库访问,基础准备:JDBC驱动与依赖管理连接云数据库前,需要确保开发环境具备对应的JDBC驱动,以最常见的MySQL为例,你需要引入mysql-c……

    2026-08-11
    0
  • 建网站公安联网备案必须使用数据码吗,备案流程是什么

    网站备案包括ICP备案和公安联网备案,两者缺一不可,公安联网备案必须使用服务商提供的数据码,选择持有合法资质的服务商是顺利通过备案的前提,为什么网站必须进行公安联网备案根据公安部《计算机信息网络国际联网安全保护管理办法》,网站开通后30日内必须到公安机关办理备案手续,未完成公安备案的网站,面临责令整改、关闭网站……

    2026-08-10
    0
  • 建一个企业网站大概需要多少钱?,怎么收费?

    建网站要多少钱,没有一个固定的数字,几百到几万都可能,但真正的“创建网站资产”绝不仅仅是初次投入的成本,而是基于长期稳定、合规和安全的持续性投入,其中核心取决于你选择了什么样的“地基”来承载你的业务,建站预算的构成与行业基准当你开始规划一个网站,最先面对的就是预算问题,一个常见的误区是只关注网站“看起来”的建造……

    2026-08-10
    0

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注