473,394 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

lowering high water mark on index tablespace?


I'm trying to create a testdatabase from a productiondatabase. The steps
I've gone through so far are:

export data with certain criteria from roughly 150 tables
drop f.k pointing to these tables
load replace into these tables
set integrity on these tables
recreate f.k
reorging and runstating tables
full offline backup

For the tablespace holding tables this worked great. The high water mark
is greatly reduced, and I can resize the containers.

Now, the higw water mark for the index tablespace is not reduced by
much. Running reorg indexes all for ..., does not help.

db2dart suggests that all indexes should be dropped and recreated for a
huge amount of tables, but this means that primary keys, and hence
foreign keys must also be dropped. Is there any other way to lower hw?

The difference in "Current highwater mark: ..." for table x and table
x+1 in output from db2dart, is almost equally distributed. That is no
single table will alone reduce tha hw greatly (I guess). Any hints
appreciated.

db2 v8.2 linux
/Lennart
Apr 22 '07 #1
1 4096
Lew
one thing you can try is this:

find the index holding the hwm. if that index will fit in the
freespace below the hwm, create an identical index on the same table
with a different name. see if it raised the hwm. if it didn't then
you can drop the original index and rename the new index. do this for
each index that hold the hwm until you get it to the size you want.
you may not see the hwm decrease right away. sometimes (maybe all the
time) db2 will not reclaim the pending free space until a new object
is created. for this we create a temp object and then drop it.

On Apr 22, 7:19 am, Lennart <erik.lennart.jons...@gmail.comwrote:
I'm trying to create a testdatabase from a productiondatabase. The steps
I've gone through so far are:

export data with certain criteria from roughly 150 tables
drop f.k pointing to these tables
load replace into these tables
set integrity on these tables
recreate f.k
reorging and runstating tables
full offline backup

For the tablespace holding tables this worked great. The high water mark
is greatly reduced, and I can resize the containers.

Now, the higw water mark for the index tablespace is not reduced by
much. Running reorg indexes all for ..., does not help.

db2dart suggests that all indexes should be dropped and recreated for a
huge amount of tables, but this means that primary keys, and hence
foreign keys must also be dropped. Is there any other way to lower hw?

The difference in "Current highwater mark: ..." for table x and table
x+1 in output from db2dart, is almost equally distributed. That is no
single table will alone reduce tha hw greatly (I guess). Any hints
appreciated.

db2 v8.2 linux

/Lennart

Apr 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Vincento Harris | last post by:
If you delete rows in a table and do a full table scan... Is that supposed to read up to the highest block/extent that the table ever attended.(like in some databases I use) If so what is the best...
3
by: sql-db2-dba | last post by:
When I did db2batch to benchmark a query, it performance details came back with this reading ... "High water mark for database heap = 4291373408" Does this mean it would have caused memory...
1
by: Erik Hendrix | last post by:
Hi, I have some questions related to stripe sets that I'm hoping someone here can answer. 1) What happens to stripe sets when doing a database restore? Do they stay as is? 2) What happens...
4
by: Patrick | last post by:
I have a tablespace that contains the LOB data for 3 tables which exist in other tablespaces. Even after reorging the LOB tablespace with the LONG option, the high water mark is still too high. I...
1
by: Asphalt Blazer | last post by:
How can you reduce high water mark of a DMS tablespace? I have tablespace quite huge, but I dont need it thatt size anymore. There is no way though to reduce the ts size as the highwater mark is...
3
by: alexhguerra | last post by:
hello folks anyone knows how to reset tablespace high watermarks counters? thanks alexandre
4
by: | last post by:
Hi: how to reduce the tablespace's High water mark? ths!
4
by: db2admin | last post by:
hello, I am working on bringing HWM down. what is the best way to do this ? i know db2dart but i am afraid if this locks database or tablespace etc. i am thinking of exporting all data, dropping...
1
by: deshaipet | last post by:
Hi friends - I created a automatic storage tablespace with a pagesize of 16 K and initial size of 64 MB. create large tablespace test_tbsp1 pagesize 16k managed by automatic storage autoresize...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.