This option is useful if you have longrunning queries that might span the operation and attempt to read from blocks that have been reclaimed. Use sql to check datafile highwater mark for resizing. Show the hwm for a datafile and whether they can be. What is high water markhvm in oracle and how it effects. The oracle professionals or dbas should know how to accurately predict the highwater mark of ram demands for their database, and fully allocate the ram, reserving only enough to accommodate. The low high water mark lhwm is similar to the older high water mark in releases of oracle before 9i, in that all of the blocks below it have been formated for use by oracle.
You are correct, when rows are deleted from a tables, oracle does not release the free space for other tables, and you must explicitly lower the table high water mark. Enter your email address to subscribe to this blog and receive notifications of new posts by email. Table high water mark tips oracle consulting, oracle. Where can one find the high water mark for a table. Handson note about hadoop, cloudera, hortonworks, nosql, cassandra, neo4j, mongodb, oracle, sql server, linux, etc. It ignores blocks that were used but arent anymore eg. Just like after a flood you can never reduce the high water mark on a building, unless you rip the building down and build a new one. I expect this will consolidate each table and lower the high water mark. I would like to find the minimum possible size without getting ora3214 but my test do not validate yet what is documented in mos. This video tutorial is to understand the concept of a high water mark or hvm of a oracle table, also it states the various changes in the hvm when we perform a insert, delete and truncate. This is because the table high water mark is not reset after delete operations. Pdf self tuning of oracle database using sql scripts.
Show the hwm for a datafile and whether they can be resized oracle database. It ignores block chaining and row migration completely. What are the different ways that i can lower the table high water mark and release the disk space to be reused by another table. When you specify compact, oracle database defragments the segment space and compacts the table rows but postpones the resetting of the high water mark and the deallocation of the space until a future time. Therefore, we need to check them before we process them. What actually it means and how to interprate when it high or low. Since oracle knows that blocks beyond the high water mark dont have data, it only reads blocks up to the high water mark in a full table scan. When a datafile has no extents at all i generate a resize to 5mb. How to lower down high water mark of a data file oracle. In oracle 9i, 10g and 11g there is actually two hwm a lower high water mark lhwm and a higher high water mark hhwm.
1036 760 1037 1445 1488 689 1519 993 121 22 345 1416 897 1462 320 1092 157 440 493 161 810 1002 860 1431 1225 709 404 974 619 416 1457 1146 953 1028 1349 267 769 104 236 1219 624 206 1405