Home » SQL & PL/SQL » SQL & PL/SQL » High water mark
High water mark [message #20517] Fri, 31 May 2002 07:26 Go to next message
tairun
Messages: 1
Registered: May 2002
Junior Member
What is high water Mark. Can someone please explain
Re: High water mark [message #20521 is a reply to message #20517] Fri, 31 May 2002 10:33 Go to previous message
Sanjay Bajracharya
Messages: 279
Registered: October 2001
Location: Florida
Senior Member
You create a table with some initial extent. As the table grows, it adds another extent defined by 'next' extent. In the long run, a table will have an 'initial' extent and multiple 'next' extents.

High Water Mark is the end of the last extent. As table grows, another extent will be added and the HWM will also be updated to the new level.

Oracle knows the HWM and during a FULL table scan, knows how much to read.

When you delete records from a table, the HWM is NOT affected. I said NOT. ONLY when you truncate the table, the HWM is set to a lower/new level. Due to this, if you are emptying the table, you better truncate the table than do 'delete * from table_name'.

Hope this helps.
Previous Topic: trigger
Next Topic: sqlplus for HP-UX 10.20
Goto Forum:
  


Current Time: Thu Apr 25 10:06:06 CDT 2024