Quantcast
Channel: Deiby Gomez's Activities
Viewing all articles
Browse latest Browse all 108

RMAN Multi Section Backup 11g vs 12c

$
0
0

In my previous article called  "RMAN Multi Section Backups in 11g"  I was explaining How Multi Section Works in RMAN 11, we cleared some myths that there are in Internet saying that MultiSection cannot be used with Incremental Backups and  we saw as well that 11g had some limitations regarding Multi Section Backups, for example that we can use Multi Section in combination with Backup Sets only, but not with Image Copies. In 12c RMAN received several enhancements. One of those enhancements were Backups using Multi Sections, in 12c it's possible to combine Multi Section with some Backups Using Image Copies.

In this article we will review the following examples:

  • Tablespace Backup with Image Copies and Multi Section in 11g
  • Tablespace Backup with Image Copies and Multi Section in 12c
  • Database Backup with Image Copies and Multi Section in 11g
  • Database Backup with Image Copies and Multi Section in 12c
  • Incremental L0 Backup with Image Copies and Multi Section in 11g
  • Incremental L0 Backup with Image Copies and Multi Section in 12c

Let's start with the first example...

Tablespace Backup with Image Copies and Multi Section in 11g:

In this example we will see the result if we try to perform a Backup using Image Copies and also Multi Section and we are using Oracle Database 11g:

run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
allocate channel c4 type disk;
allocate channel c5 type disk;
Backup As Copy Section Size 500M tablespace TheBigFile format '/home/oracle/Backups/%U';
release channel c1;
release channel c2;
release channel c3;
release channel c4;
release channel c5;
}


allocated channel: c1
channel c1: SID=52 device type=DISK

allocated channel: c2
channel c2: SID=37 device type=DISK

allocated channel: c3
channel c3: SID=32 device type=DISK

allocated channel: c4
channel c4: SID=31 device type=DISK

allocated channel: c5
channel c5: SID=44 device type=DISK

Starting backup at 07-25-2016 11:23:36
released channel: c1
released channel: c2
released channel: c3
released channel: c4
released channel: c5
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 07/25/2016 11:23:36
RMAN-06580: the SECBYTES option cannot be used with AS COPY

RMAN>

As you see we received some errors as the output and the backup was not performed. The backup basically failed because that feature doesn't exist in 12c. 

Tablespace Backup with Image Copies and Multi Section in 12c:

And now let's do the same kind of backup but in 12c, and we will se the difference.


RMAN> run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
allocate channel c4 type disk;
allocate channel c5 type disk;
Backup As Copy Section Size 500M tablespace TheBigFile format '/home/oracle/Backups/%U';
release channel c1;
release channel c2;
release channel c3;
release channel c4;
release channel c5;
}2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13>

using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=33 device type=DISK

allocated channel: c2
channel c2: SID=56 device type=DISK

allocated channel: c3
channel c3: SID=41 device type=DISK

allocated channel: c4
channel c4: SID=51 device type=DISK

allocated channel: c5
channel c5: SID=45 device type=DISK

Starting backup at 04-AUG-16
channel c1: starting datafile copy
input datafile file number=00007 name=/data/db1/DB1/datafile/o1_mf_thebigfi_ct654vhm_.dbf
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-THEBIGFILE_FNO-7_2vrccq8a tag=TAG20160804T061122 RECID=1 STAMP=918972682
channel c1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 04-AUG-16

released channel: c1

released channel: c2

released channel: c3

released channel: c4

released channel: c5

RMAN>

Database Backup with Image Copies and Multi Section in 11g:

Now we will perform a Database Backup,  again in 11g and then in 12c to see the difference.  


RMAN> 
run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
allocate channel c4 type disk;
allocate channel c5 type disk;
Backup As Copy Section Size 500M database format '/home/oracle/Backups/%U';
release channel c1;
release channel c2;
release channel c3;
release channel c4;
release channel c5;
}

RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 
allocated channel: c1
channel c1: SID=56 device type=DISK

allocated channel: c2
channel c2: SID=49 device type=DISK

allocated channel: c3
channel c3: SID=52 device type=DISK

allocated channel: c4
channel c4: SID=32 device type=DISK

allocated channel: c5
channel c5: SID=37 device type=DISK

Starting backup at 07-25-2016 11:58:12
released channel: c1
released channel: c2
released channel: c3
released channel: c4
released channel: c5
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 07/25/2016 11:58:12
RMAN-06580: the SECBYTES option cannot be used with AS COPY

We are receiving the same error, saying that the feature does't existe and we cannot combine Multi Section with Image Copies.

Database Backup with Image Copies and Multi Section in 12c:

As you can guess, that feature exist in 12c as a new enhancement. 


RMAN> 
RMAN> run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
allocate channel c4 type disk;
allocate channel c5 type disk;
Backup As Copy Section Size 500M database format '/home/oracle/Backups/%U';
release channel c1;
release channel c2;
release channel c3;
release channel c4;
release channel c5;
}
2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 
using target database control file instead of recovery catalog

allocated channel: c1
channel c1: SID=33 device type=DISK

allocated channel: c2
channel c2: SID=56 device type=DISK

allocated channel: c3
channel c3: SID=41 device type=DISK

allocated channel: c4
channel c4: SID=54 device type=DISK

allocated channel: c5
channel c5: SID=42 device type=DISK

Starting backup at 04-AUG-16
channel c1: starting datafile copy
input datafile file number=00001 name=/data/db1/DB1/datafile/o1_mf_system_cnnz5sx2_.dbf
backing up blocks 1 through 64000
channel c2: starting datafile copy
input datafile file number=00003 name=/data/db1/DB1/datafile/o1_mf_sysaux_cnnz42rx_.dbf
backing up blocks 1 through 64000
channel c3: starting datafile copy
input datafile file number=00002 name=/data/db1/DB1/datafile/o1_mf_tbs1_csg5jtrz_.dbf
channel c4: starting datafile copy
input datafile file number=00005 name=/data/db1/DB1/datafile/o1_mf_users_cnony92f_.dbf
channel c5: starting datafile copy
input datafile file number=00004 name=/data/db1/DB1/datafile/o1_mf_undotbs1_cnnz784o_.dbf
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-UNDOTBS1_FNO-4_3vrccr0q tag=TAG20160804T062425 RECID=22 STAMP=918973469
channel c5: datafile copy complete, elapsed time: 00:00:03
channel c5: starting datafile copy
input datafile file number=00001 name=/data/db1/DB1/datafile/o1_mf_system_cnnz5sx2_.dbf
backing up blocks 64001 through 102400
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-TBS1_FNO-2_3trccr0q tag=TAG20160804T062425 RECID=24 STAMP=918973470
channel c3: datafile copy complete, elapsed time: 00:00:04
channel c3: starting datafile copy
input datafile file number=00003 name=/data/db1/DB1/datafile/o1_mf_sysaux_cnnz42rx_.dbf
backing up blocks 64001 through 88320
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-USERS_FNO-5_3urccr0q tag=TAG20160804T062425 RECID=23 STAMP=918973470
channel c4: datafile copy complete, elapsed time: 00:00:06
channel c4: starting datafile copy
copying current control file
output file name=/home/oracle/Backups/cf_D-DB1_id-1506943872_42rccr10 tag=TAG20160804T062425 RECID=25 STAMP=918973473
channel c4: datafile copy complete, elapsed time: 00:00:01
channel c4: starting datafile copy
input datafile file number=00006 name=/data/db1/DB1/datafile/o1_mf_users_cnnz774t_.dbf
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-USERS_FNO-6_43rccr13 tag=TAG20160804T062425 RECID=26 STAMP=918973475
channel c4: datafile copy complete, elapsed time: 00:00:01
channel c4: starting datafile copy
input datafile file number=00007 name=/data/db1/DB1/datafile/o1_mf_thebigfi_ct654vhm_.dbf
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-THEBIGFILE_FNO-7_44rccr14 tag=TAG20160804T062425 RECID=27 STAMP=918973476
channel c4: datafile copy complete, elapsed time: 00:00:01
channel c4: starting full datafile backup set
channel c4: specifying datafile(s) in backup set
including current SPFILE in backup set
channel c4: starting piece 1 at 04-AUG-16
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-SYSAUX_FNO-3_3srccr0q tag=TAG20160804T062425
channel c3: datafile copy complete, elapsed time: 00:00:07
channel c4: finished piece 1 at 04-AUG-16
piece handle=/home/oracle/Backups/45rccr16_1_1 tag=TAG20160804T062425 comment=NONE
channel c4: backup set complete, elapsed time: 00:00:01
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-SYSTEM_FNO-1_3rrccr0q tag=TAG20160804T062425
channel c1: datafile copy complete, elapsed time: 00:00:19
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-SYSAUX_FNO-3_3srccr0q tag=TAG20160804T062425
channel c2: datafile copy complete, elapsed time: 00:00:19
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-SYSTEM_FNO-1_3rrccr0q tag=TAG20160804T062425
channel c5: datafile copy complete, elapsed time: 00:00:15
Finished backup at 04-AUG-16

released channel: c1

released channel: c2

released channel: c3

released channel: c4

released channel: c5

RMAN> 

Incremental L0 Backup with Image Copies and Multi Section in 11g:

We will see in this example how Multi Section works when we are using Incremental Backups. You already saw in the article  "RMAN Multi Section Backups in 11g"  that Multli Section + Backup Sets work with Incremental Backup L0 even when some articles in internet say that it's not possible. However in this article you will se that this doesn't work when we are using Image Copies:

RMAN>
run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
allocate channel c4 type disk;
allocate channel c5 type disk;
Backup Incremental Level 0 As Copy Section Size 500M database format '/home/oracle/Backups/%U';
release channel c1;
release channel c2;
release channel c3;
release channel c4;
release channel c5;
}
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13>

released channel: ORA_DISK_1
released channel: ORA_DISK_2
released channel: ORA_DISK_3
released channel: ORA_DISK_4
released channel: ORA_DISK_5
allocated channel: c1
channel c1: SID=56 device type=DISK

allocated channel: c2
channel c2: SID=49 device type=DISK

allocated channel: c3
channel c3: SID=52 device type=DISK

allocated channel: c4
channel c4: SID=32 device type=DISK

allocated channel: c5
channel c5: SID=37 device type=DISK

Starting backup at 07-25-2016 11:56:21
released channel: c1
released channel: c2
released channel: c3
released channel: c4
released channel: c5
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 07/25/2016 11:56:21
RMAN-06580: the SECBYTES option cannot be used with AS COPY

RMAN>

Incremental L0 Backup with Image Copies and Multi Section in 12c:

However starting with 12c this feature is already there and we can use it any time:

RMAN> run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
allocate channel c4 type disk;
allocate channel c5 type disk;
Backup Incremental Level 0 As Copy Section Size 500M database format '/home/oracle/Backups/%U';
release channel c1;
release channel c2;
release channel c3;
release channel c4;
release channel c5;
}2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13>

using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=33 device type=DISK

allocated channel: c2
channel c2: SID=56 device type=DISK

allocated channel: c3
channel c3: SID=41 device type=DISK

allocated channel: c4
channel c4: SID=51 device type=DISK

allocated channel: c5
channel c5: SID=45 device type=DISK

Starting backup at 04-AUG-16
channel c1: starting datafile copy
input datafile file number=00001 name=/data/db1/DB1/datafile/o1_mf_system_cnnz5sx2_.dbf
backing up blocks 1 through 64000
channel c2: starting datafile copy
input datafile file number=00003 name=/data/db1/DB1/datafile/o1_mf_sysaux_cnnz42rx_.dbf
backing up blocks 1 through 64000
channel c3: starting datafile copy
input datafile file number=00002 name=/data/db1/DB1/datafile/o1_mf_tbs1_csg5jtrz_.dbf
channel c4: starting datafile copy
input datafile file number=00005 name=/data/db1/DB1/datafile/o1_mf_users_cnony92f_.dbf
channel c5: starting datafile copy
input datafile file number=00004 name=/data/db1/DB1/datafile/o1_mf_undotbs1_cnnz784o_.dbf
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-UNDOTBS1_FNO-4_3krccquh tag=TAG20160804T062312 RECID=14 STAMP=918973395
channel c5: datafile copy complete, elapsed time: 00:00:03
channel c5: starting datafile copy
input datafile file number=00001 name=/data/db1/DB1/datafile/o1_mf_system_cnnz5sx2_.dbf
backing up blocks 64001 through 102400
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-TBS1_FNO-2_3irccquh tag=TAG20160804T062312 RECID=15 STAMP=918973397
channel c3: datafile copy complete, elapsed time: 00:00:04
channel c3: starting datafile copy
input datafile file number=00003 name=/data/db1/DB1/datafile/o1_mf_sysaux_cnnz42rx_.dbf
backing up blocks 64001 through 88320
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-USERS_FNO-5_3jrccquh tag=TAG20160804T062312 RECID=16 STAMP=918973397
channel c4: datafile copy complete, elapsed time: 00:00:05
channel c4: starting datafile copy
copying current control file
output file name=/home/oracle/Backups/cf_D-DB1_id-1506943872_3nrccqun tag=TAG20160804T062312 RECID=17 STAMP=918973399
channel c4: datafile copy complete, elapsed time: 00:00:01
channel c4: starting datafile copy
input datafile file number=00006 name=/data/db1/DB1/datafile/o1_mf_users_cnnz774t_.dbf
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-USERS_FNO-6_3orccqup tag=TAG20160804T062312 RECID=18 STAMP=918973401
channel c4: datafile copy complete, elapsed time: 00:00:01
channel c4: starting datafile copy
input datafile file number=00007 name=/data/db1/DB1/datafile/o1_mf_thebigfi_ct654vhm_.dbf
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-THEBIGFILE_FNO-7_3prccqur tag=TAG20160804T062312 RECID=19 STAMP=918973403
channel c4: datafile copy complete, elapsed time: 00:00:01
channel c4: starting incremental level 0 datafile backup set
channel c4: specifying datafile(s) in backup set
including current SPFILE in backup set
channel c4: starting piece 1 at 04-AUG-16
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-SYSAUX_FNO-3_3hrccquh tag=TAG20160804T062312
channel c3: datafile copy complete, elapsed time: 00:00:08
channel c4: finished piece 1 at 04-AUG-16
piece handle=/home/oracle/Backups/3qrccqut_1_1 tag=TAG20160804T062312 comment=NONE
channel c4: backup set complete, elapsed time: 00:00:01
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-SYSTEM_FNO-1_3grccquh tag=TAG20160804T062312
channel c1: datafile copy complete, elapsed time: 00:00:19
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-SYSAUX_FNO-3_3hrccquh tag=TAG20160804T062312
channel c2: datafile copy complete, elapsed time: 00:00:19
output file name=/home/oracle/Backups/data_D-DB1_I-1506943872_TS-SYSTEM_FNO-1_3grccquh tag=TAG20160804T062312
channel c5: datafile copy complete, elapsed time: 00:00:15
Finished backup at 04-AUG-16

released channel: c1

released channel: c2

released channel: c3

released channel: c4

released channel: c5

RMAN>

Follow me:

      


Viewing all articles
Browse latest Browse all 108

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>