数据库版本

  1. SQL>  select * from v$version;

  2. BANNER                                                                               CON_ID

  3. -------------------------------------------------------------------------------- ----------

  4. Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production              0

  5. PL/SQL Release 12.1.0.1.0 - Production                                                    0

  6. CORE    12.1.0.1.0      Production                                                        0

  7. TNS for Linux: Version 12.1.0.1.0 - Production                                            0

  8. NLSRTL Version 12.1.0.1.0 - Production                                                    0

rman对sql语句支持增强

  1. [oracle@xifenfei tmp]$ rman target /

  2. Recovery Manager: Release 12.1.0.1.0 - Production on Sat Jun 1 14:07:50 2013

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

  4. connected to target database: CDB (DBID=1922813718)

  5. RMAN> select sysdate from dual;

  6. using target database control file instead of recovery catalog

  7. SYSDATE  

  8. ---------

  9. 01-JUN-13

  10. RMAN> alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';

  11. Statement processed

  12. RMAN>  select sysdate from dual;

  13. SYSDATE            

  14. -------------------

  15. 2013-06-01 14:16:48

  16. RMAN> desc v$log

  17. Name                                      Null?    Type

  18. ----------------------------------------- -------- ----------------------------

  19. GROUP#                                             NUMBER                      

  20. THREAD#                                            NUMBER                      

  21. SEQUENCE#                                          NUMBER                      

  22. BYTES                                              NUMBER                      

  23. BLOCKSIZE                                          NUMBER                      

  24. MEMBERS                                            NUMBER                      

  25. ARCHIVED                                           VARCHAR2(3)                

  26. STATUS                                             VARCHAR2(16)                

  27. FIRST_CHANGE#                                      NUMBER                      

  28. FIRST_TIME                                         DATE                        

  29. NEXT_CHANGE#                                       NUMBER                      

  30. NEXT_TIME                                          DATE                        

  31. CON_ID                                             NUMBER                      

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

rman分割数据文件增强

  1. RMAN>  CONFIGURE DEVICE TYPE DISK PARALLELISM 3;

  2. old RMAN configuration parameters:

  3. CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;

  4. new RMAN configuration parameters:

  5. CONFIGURE DEVICE TYPE DISK PARALLELISM 3 BACKUP TYPE TO BACKUPSET;

  6. new RMAN configuration parameters are successfully stored

  7. RMAN> backup incremental level 1 section size 30M datafile 1 format '/tmp/system_%U.rman';

  8. Starting backup at 01-JUN-13

  9. allocated channel: ORA_DISK_1

  10. channel ORA_DISK_1: SID=27 device type=DISK

  11. allocated channel: ORA_DISK_2

  12. channel ORA_DISK_2: SID=269 device type=DISK

  13. allocated channel: ORA_DISK_3

  14. channel ORA_DISK_3: SID=24 device type=DISK

  15. no parent backup or copy of datafile 1 found

  16. channel ORA_DISK_1: starting incremental level 1 datafile backup set

  17. channel ORA_DISK_1: specifying datafile(s) in backup set

  18. input datafile file number=00001name=+DATA/cdb/system01.dbf

  19. backing up blocks 1 through 3840

  20. channel ORA_DISK_1: starting piece 1 at 01-JUN-13

  21. channel ORA_DISK_2: starting incremental level 1 datafile backup set

  22. channel ORA_DISK_2: specifying datafile(s) in backup set

  23. input datafile file number=00001name=+DATA/cdb/system01.dbf

  24. ……………………

  25. backing up blocks 96001 through 99840

  26. channel ORA_DISK_3: starting piece 26 at 01-JUN-13

  27. channel ORA_DISK_1: finished piece 24 at 01-JUN-13

  28. piece handle=/tmp/system_02ob3pg1_24_1.rman tag=TAG20130601T144518comment=NONE

  29. channel ORA_DISK_1: backup set complete, elapsed time: 00:00:08

  30. channel ORA_DISK_1: starting incremental level 1 datafile backup set

  31. channel ORA_DISK_1: specifying datafile(s) in backup set

  32. input datafile file number=00001name=+DATA/cdb/system01.dbf

  33. backing up blocks 99841 through 101120

  34. channel ORA_DISK_1: starting piece 27 at 01-JUN-13

  35. channel ORA_DISK_2: finished piece 25 at 01-JUN-13

  36. piece handle=/tmp/system_02ob3pg1_25_1.rman tag=TAG20130601T144518comment=NONE

  37. channel ORA_DISK_2: backup set complete, elapsed time: 00:00:07

  38. channel ORA_DISK_3: finished piece 26 at 01-JUN-13

  39. piece handle=/tmp/system_02ob3pg1_26_1.rman tag=TAG20130601T144518comment=NONE

  40. channel ORA_DISK_3: backup set complete, elapsed time: 00:00:06

  41. channel ORA_DISK_1: finished piece 27 at 01-JUN-13

  42. piece handle=/tmp/system_02ob3pg1_27_1.rman tag=TAG20130601T144518comment=NONE

  43. channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07

  44. 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