If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > High water mark

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-27-04, 10:24
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Question High water mark

AIX 5.2 DB2 8.1.4

I have a problem with removing a surplus container from one
of my tablespaces - the application insists that I don't have
enough space in the rest of my containers to do this.
This rides on the high water mark variable which is well above
my current usage of the tablespace.
Is there any way to reset this variabe or to make it understand
that the new high water mark equals the current total population
in the tablespace?

Cheers
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
Reply With Quote
  #2 (permalink)  
Old 05-27-04, 14:48
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
I believe the only way to reclaim the space is to do a REORG on the tables.

I tried a quick test where I filled a table, deleted all rows, then tried to drop a container and it failed:
SQL20170N There is not enough space in the table space "MYTBSPACE" for the
specified action. SQLSTATE=57059

When I did the REORG on that table, the command succeeded.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 05-27-04, 16:28
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
use db2dart to find the high water mark.I forget , but you can check it db2dart also help you to decrease the high water mark only if there are drop objects at the end of high water mark.
deleting of records don't decrease the HWM, reorg is the option.

regards,

mujeeb
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On