Atikh's DBA blog
  • Home
  • Oracle
  • MySQL
  • MongoDB
  • PostgreSQL
  • Snowflake
  • About Me
  • Contact Us

Oracle RMAN : File Section for backup of large datafiles

 Atikh Shaikh     Backup and Recovery, oracle, Oracle 12c, RMAN     No comments   

After learning RMAN introduction and taking first backup of database, we will go through file section for RMAN backups of large datafiles and databases.
  • With introduction of BigFile tablespaces in oracle, large sized datafiles are command these days. For such large datafiles, it takes enormous amount of time to get backed up.
  • By using multiple channels, we can make it faster but issue remains same for single large sized datafiles, as channels support inter-file parallelism not intra-file parallelism
  • To resolve this we need to logically divide large data file into small file chunks using the option “SECTION SIZE” in backup command
  • When large data file is broken into many smaller chunks, each chunk will be treated as separate file. Every single chunk will be backed up by individual channels i.e. intra parallelism.
  • SECTION SIZE can be mentioned in KB, MB, GB and backup will be completed in backup set format
  • SECTION SIZE clause can be used in either full database backup or partial database backup such as tablespace or datafile
  • In below example, we will take backup of one of tablespace SYSTEM using SECTION SIZE
RMAN> run
{
allocate channel ch1 type disk;
BACKUP SECTION SIZE 800M TABLESPACE SYSTEM;
release channel ch1;
}2> 3> 4> 5> 6>

allocated channel: ch1
channel ch1: SID=2330 device type=DISK

Starting backup at 07-JAN-19
channel ch1: starting full datafile backup set
channel ch1: specifying datafile(s) in backup set
input datafile file number=00001 name=+DATA/TECH_DB/DATAFILE/system.285.996743219
backing up blocks 1 through 102400
channel ch1: starting piece 1 at 07-JAN-19
channel ch1: finished piece 1 at 07-JAN-19
piece handle=+FLASH/TECH_DB/BACKUPSET/2019_01_07/nnndf0_tag20190107t054719_0.328.996904041 tag=TAG20190107T054719 comment=NONE
channel ch1: backup set complete, elapsed time: 00:00:07
channel ch1: starting full datafile backup set
channel ch1: specifying datafile(s) in backup set
input datafile file number=00001 name=+DATA/TECH_DB/DATAFILE/system.285.996743219
backing up blocks 102401 through 204800
channel ch1: starting piece 2 at 07-JAN-19
channel ch1: finished piece 2 at 07-JAN-19
piece handle=+FLASH/TECH_DB/BACKUPSET/2019_01_07/nnndf0_tag20190107t054719_0.327.996904049 tag=TAG20190107T054719 comment=NONE
channel ch1: backup set complete, elapsed time: 00:00:03
channel ch1: starting full datafile backup set
channel ch1: specifying datafile(s) in backup set
input datafile file number=00001 name=+DATA/TECH_DB/DATAFILE/system.285.996743219
backing up blocks 204801 through 262144
channel ch1: starting piece 3 at 07-JAN-19
channel ch1: finished piece 3 at 07-JAN-19
piece handle=+FLASH/TECH_DB/BACKUPSET/2019_01_07/nnndf0_tag20190107t054719_0.326.996904051 tag=TAG20190107T054719 comment=NONE
channel ch1: backup set complete, elapsed time: 00:00:03
channel ch1: starting full datafile backup set
channel ch1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ch1: starting piece 1 at 07-JAN-19
channel ch1: finished piece 1 at 07-JAN-19
piece handle=+FLASH/TECH_DB/BACKUPSET/2019_01_07/ncsnf0_tag20190107t054719_0.325.996904055 tag=TAG20190107T054719 comment=NONE
channel ch1: backup set complete, elapsed time: 00:00:01
Finished backup at 07-JAN-19

released channel: ch1

RMAN>


  • For Oracle 12c onward, SECTION SIZE clause can be used for image copy format backup as well, command will be like below
RMAN > backup as copy SECTION SIZE 500M database;


  • Using SECTION SIZE method, it helps a lot in case database is huge to reduce elapsed time.
Feel free to comment  here and share if you like it.
[Also read : RMAN disk backup ]

  • Share This:  
  •  Facebook
  •  Twitter
  •  Instagram
  •  Pin
  •  linkedin
  •  reddit
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Author

Atikh Shaikh
View my complete profile

Categories

  • MongoDB (18)
  • Oracle 12c (30)
  • Oracle12cR2 New Feature (3)
  • PostgreSQL (20)
  • RMAN (10)
  • Snowflake (8)
  • mysql (23)
  • oracle (74)

Blog Archive

  • ►  2018 (38)
    • ►  November (25)
    • ►  December (13)
  • ▼  2019 (33)
    • ▼  January (15)
      • Data Types in MongoDB
      • Oracle : RMAN Introduction
      • ORA-00265: instance recovery required, cannot set ...
      • Oracle : Starting with RMAN Commands
      • Oracle RMAN : Incremental Backups
      • MongoDB 4.0 New Features
      • Oracle RMAN : File Section for backup of large dat...
      • ORA-19804, ORA-19809: limit exceeded for recovery ...
      • Oracle RMAN: Fast Incremental Backups
      • The DUAL table in oracle
      • Oracle : Drop Pluggable Database (PDB) in 12c/19c/...
      • Oracle : The oerr Utility (Oracle Error)
      • Oracle RMAN : Incrementally Updated Backups
      • MySQL 8.0 New Features
      • Postgres spooling file and other command line options
    • ►  February (6)
    • ►  March (2)
    • ►  April (5)
    • ►  May (5)
  • ►  2020 (5)
    • ►  April (1)
    • ►  May (2)
    • ►  July (2)
  • ►  2021 (8)
    • ►  June (3)
    • ►  July (3)
    • ►  August (1)
    • ►  December (1)
  • ►  2022 (33)
    • ►  May (3)
    • ►  June (10)
    • ►  July (3)
    • ►  August (4)
    • ►  September (8)
    • ►  October (3)
    • ►  November (2)
  • ►  2023 (14)
    • ►  February (1)
    • ►  April (5)
    • ►  May (2)
    • ►  June (1)
    • ►  September (1)
    • ►  October (1)
    • ►  December (3)
  • ►  2024 (5)
    • ►  January (2)
    • ►  March (3)
  • ►  2025 (6)
    • ►  March (1)
    • ►  April (3)
    • ►  May (2)

Popular Posts

  • ORA-29283: invalid file operation: unexpected "LFI" error (1509)[29437]
    I was trying to export the schema in my windows PC, it got stuck with below error    C:\Users\shaik\Videos\technodba exp>expdp userid...
  • Oracle 23ai : Use of NOVALIDATE Constraints in IMPDP
    While performing impdp operations in the Oracle database, Oracle performs validation checks for every constraint on the imported table, that...
  • PostgreSQL : How to get data directory location for PostgreSQL instance
    Sometimes, you start working on a PostgreSQL instance but forget about the data directory, here we will discuss different methods to know th...
  • ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES
    In previous articles, we have learned about user creation and grants  in MySQL in detail, but there are a few privileges called global priv...
  • Oracle Dataguard Broker Configuration (DGMGRL)
    Data Guard Broker is a command-line interface that makes managing primary and standby databases easy. DBA can use a single command to switch...

Labels

oracle Oracle 12c mysql PostgreSQL MongoDB oracle 19c Oracle23c oracle19c Orale PDB-CDB oracle12c python AWS Oracle ASM Virtualbox pluggable database storage engine

Pages

  • Disclaimer
  • Privacy Policy

Follow TechnoDBA

Copyright © Atikh's DBA blog | Powered by Blogger