In this blog entry let me introduce you to a new capability in Oracle 10g called Block Change Tracking, which can help DBA’s do faster incremental backups via RMAN (Recovery Manager).
Once this new capability in Oracle 10g is enabled it start recording the modified since last backup and stores the log of it in a block change tracking file.
Later while doing backup RMAN uses this file to determine which blocks are needed to be backed up?
Logically as we can see, this process improves the performance as RMAN does not have to scan whole datafile to detect which block in it has changed and needs backup.
This may not show any significant impact on smaller database but definitely will have big impact on bigger databases as now with this new functionality it does not have to scan full datafile but only need to query block change tracking file.
To create the Change Tracking file and enable Change Tracking, make sure the database is either open or mounted. Then issue following SQL:
SQL> ALTER DATABASE ENABLE BLOCK CHANGE TRACKING USING
FILE ‘c:\oracle\oradata\rkt\block_track\block_track_file01.log’;
Database altered.
Once you issue above SQL, Oracle creates a new background process which is responsible for writing data to the block change tracking file, which is called the block change writer CTRW.
To verify the status of block change tracking, use following SQL:
SQL> SELECT filename, status, bytes FROM v$block_change_tracking;
FILENAME
——————————————————
STATUS BYTE
————— ————–
C:\ORACLE\ORADATA\RKT\BLOCK_TRACK\BLOCK_TRACK_FILE01.LOG
ENABLED 1024
To disable block change tracking, use following SQL:
SQL> ALTER DATABASE DISABLE BLOCK CHANGE TRACKING;
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment