944,041 Members | Top Members by Rank

Ad:
  • Oracle Discussion Thread
  • Unsolved
  • Views: 24251
  • Oracle RSS
Apr 7th, 2006
0

High Water Mark.

Expand Post »
could you please tell me what is high water mark in oracle terminology? Please explain with example.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shahnazurs is offline Offline
17 posts
since Mar 2006
Dec 4th, 2006
0

Re: High Water Mark.

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.
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
alit2002 is offline Offline
52 posts
since Dec 2006
Jun 18th, 2011
0
Re: High Water Mark.
after deleting rows high water mark remain same, what will happen if i insert new rows now.where this new rows will be stored? above the HWM or below?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sumon2b is offline Offline
1 posts
since Jun 2011
Jun 18th, 2011
0
Re: High Water Mark.
Yes, after deleting rows the high water mark is the same. New rows will use the space left by those that were deleted unless they don't fit into that space then new space is allocated and the high water mark increases. To reduce the highwater mark export / datapump the table, drop it and import it back in again.
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
alit2002 is offline Offline
52 posts
since Dec 2006
Aug 3rd, 2011
0
Re: High Water Mark.
If you have to remove the whole data,then in that case Truncate command will be better then Delete because it will release the memory and the High water mark will be resetted to the original value.Hence later on, fetching on that table will be faster.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Koolhemu is offline Offline
1 posts
since Aug 2011

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Oracle Forum Timeline: Connectivity problem from Windows7 to oracle 11g
Next Thread in Oracle Forum Timeline: Oracle SCM Certification





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC