Está en la página 1de 2

Hello Sir,

Need to enable block change tracking feature of RMAN in PRODUCTION.

This block change tracking keeps log of the blocks changed since the last backup.
During the next backup it uses the log file block change tracking to detect the
changed blocks instead of scanning all data files. Changed blocks are determined
and written to the log file by the process CTWR. After enabling block change
tracking RMAN incremantal backups will run effectively.

Regards,
Qadar

About RMAN Block change Tracking feature:

Block change tracking improves incremental backup performance by recording changed


blocks in each datafile in a change tracking file. If change tracking is enabled,
RMAN uses the change tracking file to identify changed blocks for incremental
backup, thus avoiding the need to scan every block in the datafile.

Action Plan:

SQL> select * from v$block_change_tracking;

STATUS FILENAME BYTES CON_ID


---------- ------------------------------ ---------- ----------
DISABLED

SQL> select db_unique_name,database_role,open_mode from v$database;

DB_UNIQUE_NAME DATABASE_ROLE OPEN_MODE


-------------------- ---------------- --------------------
DECLN PHYSICAL STANDBY READ ONLY WITH APPLY

SQL> alter database enable block change tracking using file '/u03/oracle
/DECLN/db/apps_st/data/Change_Track.f';

Database altered.

SQL> select filename,status,bytes from v$block_change_tracking;

FILENAME STATUS BYTES


-------------------------------------------------- ---------- ----------------
/u03/oracle/DECLN/db/apps_st/data/Change_Track.f ENABLED 11599872

SQL>

SQL> ! ls /u03/oracle/DECLN/db/apps_st/data/Change_Track.f
/u03/oracle/DECLN/db/apps_st/data/Change_Track.f

SQL>

After enabling the block change tracking, now we can see the CTWR background
process is started and now it should be ready to write any changed records directly
to the BCT file.
Completed: alter database disable block change tracking
Wed Mar 18 13:28:22 2015
alter database enable block change tracking using file
'/u02/app/oracle/oradata/mcdb/Change_Track.f'
Wed Mar 18 13:28:22 2015
Block change tracking file is current.
Starting background process CTWR
Wed Mar 18 13:28:22 2015
CTWR started with pid=37, OS id=7073
Wed Mar 18 13:28:22 2015
Block change tracking service is active.
Completed: alter database enable block change tracking using file
'/u02/app/oracle/oradata/mcdb/Change_Track.f'