DB_BLOCK_CHECKING
When the
DB_BLOCK_CHECKING parameter is set to [TRUE|HIGH] Oracle performs a walk through of the data in the block to check it is self-consistent. Unfortunately block checking can add between 1 and 10% overhead to the server. Oracle recommend setting this parameter to [TRUE|HIGH] if the overhead is acceptable.
Allowable values include [OFF|FALSE], LOW, MEDIUM, [HIGH|TRUE]. Read the definitions here
I kept having problems with a test Oracle DB....again and again.
Until I turned on this setting I could not load data consistently.
Here is what I used to enable this feature:
db_block_checking tips
Oracle Tips by Burleson Consulting
June 15, 2009 |
The db_block_checking parameter is used to performs block checks for all data blocks making sure that all data in the block is consistent. The default fordb_block_checking is false, because db_block_checking imposes an additional system overhead.
This db_block_checking parameter is used primarily in diagnosing disk I/O issues in system where replicated blocks show corruption. checks data block integrity before writing the data block to disk.
In this involves checking the internal block headers and footer, plus internal row linkages.
Block checking provides early detection of block corruption, however, it costs between 1-10% in overhead on the database. The more DML and block writes that occur on a system (INSERT, UPDATE, DELETE), the more costlydb_block_checking becomes.
WARNING: While the Oracle documentation says that db_block_checking=true only adds a 1 to 10% overhead depending on concurrency of DML, we have seen cases where db_block_checking=truemade the updates run 6x slower.
Any errors encountered by block checking result in an ORA-600 level message in the alert log. Before setting the db_block_checking parameter to TRUE, first execute the database verify (dbv) utility against the datafiles to make sure they are free of corruption. Even when db_block_checking=false, Oracle still provides block checking for the system tablespace.
Note that the db_block_checking parameter can be changed with an alter systemcommand:
Also see related pages:
- db_block_checksum tips
- db_ultra_safe Tips
No comments:
Post a Comment