Unix Technical Forum

lowering high water mark on index tablespace?

This is a discussion on lowering high water mark on index tablespace? within the DB2 forums, part of the Database Server Software category; --> I'm trying to create a testdatabase from a productiondatabase. The steps I've gone through so far are: export data ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 12:12 PM
Lennart
 
Posts: n/a
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 12:14 PM
Lew
 
Posts: n/a
Default Re: lowering high water mark on index tablespace?

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.com> wrote:
> 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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:04 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com