How to determine which data blocks are changed in Oracle Incremental Backup

Source: Internet
Author: User

We all know that Oracle 8.0 implements incremental Oracle backup only when relevant recovery management is introduced. Before RMAN, the output of the Oracle database can also be incrementally increased. However, once any part of a table changes, the entire table needs to be overwritten. RMAN Incremental Backup only needs to re-write the modified part in the given data file, which greatly saves space.

However, before the 10 GB version, Oracle Incremental backup needs to scan the entire data file to determine which data blocks have changed. For large databases, although space is saved, the time complexity is not much better than full backup.

Oracle 8.0 introduced recovery management RMAN), the first implementation of a real Incremental backup. Before RMAN, the database output can also be incremental, but once any part of a table changes, the entire table needs to be overwritten. RMAN Incremental Backup only needs to re-write the modified part in the given data file, which greatly saves space.

However, before the 10 GB version, Incremental backup needs to scan the entire data file to determine which data blocks have changed. For large databases, although space is saved, the time complexity is not much better than full backup.

Change tracking technology, also known as block change tracking technology, solves the above problem by recording changed data blocks in an independent tracking file, these changes are written to files by a background process in real time.

The initial incremental Oracle backup still requires a complete scan. After that, you can directly access the block to be backed up by referring to the change tracking file during Backup.

To create and activate change tracking files, first make sure that the DATABASE is open or accessible, and then run the following DATABASE change alter database command:

 
 
  1. ALTER DATABASE   
  2. ENABLE BLOCK CHANGE TRACKING   
  3. USING FILE ;   

To change the storage location of the tracking file in the operating system. If you have activated the Oracle management file, the USING clause is optional. The change tracking file is created in the DB_CREATE_FILE_DEST directory .)

No matter where the file path is located, the initial size is 10 MB, and the size is increased by 10 MB each time as needed.

Using change tracking will affect system performance, so unless you need to use the RMAN Incremental backup function, you 'd better set it to the default setting for unavailability ).
 

Article by: http://www.programbbs.com/doc/class10-2.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.