High Water Mark.

Reply

Join Date: Mar 2006
Posts: 17
Reputation: shahnazurs is an unknown quantity at this point 
Solved Threads: 0
shahnazurs shahnazurs is offline Offline
Newbie Poster

High Water Mark.

 
0
  #1
Apr 7th, 2006
could you please tell me what is high water mark in oracle terminology? Please explain with example.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 44
Reputation: alit2002 is an unknown quantity at this point 
Solved Threads: 1
alit2002 alit2002 is offline Offline
Light Poster

Re: High Water Mark.

 
0
  #2
Dec 4th, 2006
Hi

You have to understand Oracle storage.

Each table is made up of extents and each extent is made up of oracle blocks - a common block size is 8k. So you have a table with 10 extents (80K).

You populate your table with 2 million rows of data and you will have many hundreds of extents. Now lets assume that you delete over half of the records in the table. Oracle still has the same number of extents but many of the blocks are empty. When you run a query against the table Oracle will scan through all the blocks including empty ones looking for data. So you can think of the total number of extents / blocks used as the high water mark.

To fix you export the table, drop it and import it back in.

Alistair
Last edited by alit2002; Dec 4th, 2006 at 8:18 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC