473,471 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

lowering HWM

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 tables, recreating
tables and loading data back in. is there anyone who has worked with
similar situation ? what is the best way to do this ?
regards,
db2admin
Sep 11 '08 #1
4 3745
On Sep 11, 3:47*pm, db2admin <jag...@gmail.comwrote:
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 tables, recreating
tables and loading data back in. is there anyone who has worked with
similar situation ? what is the best way to do this ?

regards,
db2admin
Try an offline REORG first.

Sep 11 '08 #2
db2admin wrote:
hello,

I am working on bringing HWM down. what is the best way to do this ?
Let DB2 try to reduce the container allocations for the tablespace(s):
Alter tablespace TS_XXXX reduce (ALL nnnn)
As Sanjuro suggests, best to REORG first... then the freespace is
contiguous and the HWM can reduced further.
Eric
Sep 12 '08 #3
Hi,

the only way I can think of reliably reducing the HWM is to use
db2dart or drop the tablespace after all tables are dropped... The
latter is not better than the former.

What I did (in a test environment) is to reorg, then use

db2dart prestodb /rhwm /tsi <tbspaceid>,

then stop DB2 from requiring an offline backup:

db2dart prestodb /chst /what dbbp off

then backup the tablespace

db2 backup db prestodb tablespace <tbspacenameto /dev/null

After that, the DB is reusable. However, I'm not sure now if an online
backup is enough of the tablespace to bring it out of check pending
mode, I did an offline backup.

db2admin wrote:
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 tables, recreating
tables and loading data back in. is there anyone who has worked with
similar situation ? what is the best way to do this ?
regards,
db2admin
Sep 12 '08 #4
db2dart prestodb /rhwm /tsi <tbspaceid>,

I forgot to mention that you're not only concerned about the high
water mark, but also about the highest control page, which won't
automatically be removed by reorg'ing the tablespace. That's why I
used db2dart, to remove the control pages.
Sep 12 '08 #5

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

Similar topics

2
by: Mike | last post by:
I want to allow my students to upload small text files (perhaps just a few bytes in size) just to show them how to upload using a PHP form. For security reasons -- I don't want them uploading MP3...
0
by: Brian van den Broek | last post by:
Mark Devine said unto the world upon 2004-12-16 10:49: > Hi I'm brand new to python and I was wondering if anybody knew of a > easy way to change every character in a list into its lower case >...
0
by: DvDmanDT | last post by:
------=_NextPart_000_005C_01C35A2A.ECB5CE90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi everyone, I was wondering if there's any way I can...
17
by: BenOne© | last post by:
Hi all, For divs, do all browsers treat these the same? I've been assuming that width and height are inclusive of margin and padding, but the different appearance of my page in various...
55
by: Alex | last post by:
Hello people, The following is not a troll but a serious request. I found myself in a position where I have to present a Pro/Con list to management and architects in our company with regard to...
64
by: Dave | last post by:
A friend of mine pointed out the other day that certain elements on my web site are too small. But in most of what I publish, fonts are at default size or smaller, and my images are easy to see. I...
6
by: nekiv90 | last post by:
Greetings, Could someone confirm if the following reasoning is correct (64-bit DB2 on 64-bit AIX v5.3): ================================================================== For each connection...
1
by: Divvy Bollocks | last post by:
// A big 7 and three-quarters size "Hello" to all C++ programmers out there. This here is the second program what I've // ever wrote, the first being a "Fuck off world you cunt" program. It's a...
1
by: Lennart | last post by:
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.