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

Oracle RMAN: Fast Incremental Backups

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

There are two ways to achieve fast incremental backups as mentioned in last section of this post 
  1. Block change tracking (BCT) file
  2. Multi-Section incremental backups using section size (12c)
We will discuss these two methods in details

Block change tracking (BCT) file
  • While performing incremental backup RMAN search for modified blocks whose system change number (SCN) is higher than last incremental level backups incremental start SCN
  • In normal incremental backup strategy, in order to identify modified blocks it would require to read an entire datafile
  • If incremental backups needs to be fast enough we need to skip the scan of entire datafile to find modified blocks, oracle 10g introduced a more refined way of using block change tracking (BCT) file.
  • This file keeps entry of those blocks that are modified since last full backup
  • At the time of next incremental backup, RMAN would read details from this file only and avoid looking for whole datafile
  • BCT file uses bitmap structures to update and maintain the information from changed blocks
  • BCT file is neither default nor it gets generated at the time of database creation.
  • It can be viewed using database view v$block_change_tracking
SQL> select filename, status from v$block_change_tracking;

FILENAME   STATUS
---------- ----------
          DISABLED
SQL>

We can enable block change tracking file using below command

SQL >alter database enable block change tracking using file '/u01/oracle/bct/config.f';

Database altered

SQL> select filename,status from v$block_change_tracking;

FILENAME                               STATUS
-------------------------------------- ----------
/u01/oracle/bct/config.f                ENABLED

  • Default location for BCT file is $ORACLE_HOME/dbs
  • Default size would be 10M (1/30,000) of total database sizes at the time of database creation.
  • When BCT file is enabled, oracle database use the background process change tracking writer (CTWR) for recording the bitmaps of blocks being modified for datafile
  • The CTWR background process uses memory are CTWR dba buffer allocated from large pool
Current size is viewed using  v$sgastat view

SQL> select pool,name, bytes from v$sgastat where name like 'CTWR%';

POOL         NAME                            BYTES
------------ -------------------------- ----------
large pool   CTWR dba buffer               1525808


BCT file speeds up the already faster incremental backups even more, this file does not need an additional administration by DBA.

 Multi Section Incremental backups
  • As we have discussed here, SECTION SIZE clause helps to improve the performance backups of huge size datafiles and databases, same can be used in Incremental backup strategy as well.
  • To make use of SECTION SIZE  clause in level 1 incremental backups, the compatible parameter must be set to 12.0, for level 0 incremental backups compatible can be 11.0
  • Using below command we can complete multi section incremental backups
RMAN > backup incremental level 1 section 500m database;

Kindly comment below if any additional information is required
Read 
      • RMAN Introduction
      • Oracle RMAN Commands
      • Incremental Backups
  • 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