473,396 Members | 1,748 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,396 software developers and data experts.

Seeking some planning info for DB2 UDB LUW REORG

I have 18 years of mainframe DB2, and I just starting working with UDB LUW
V8.1 FixPack 6 on Sun Solaris last week.

I have been dismayed on the lack of detailed info available in the manuals
on tuning and monitoring REORGS on large tables. I am used to the wealth
of usage notes in mainframeland.

I am recommending the implementation of clustering indexes and wholesale
reorging of several large tables (up to 37GB)/ 200 mill plus rows.

I am familiar with the doc on the "Classic Reorg" and "In Place Reorg" and
I am planning on requesting an outage and using the "Classic Reorg" for
this process, while is going to include the dropping and recreating of
indexes to implement clustering prior to the reorg.
I could really use some work arounds or deeper detail on the following
issues:

1. There is no CREATE INDEX DEFER YES, so I am assuming that the
DROP/RECREATE of index as a clustering index will actually go through the
laborious process of building the index prior to the reorg, and hold a
catalog lock the whole time. True ?? I hope I'm missing something here.

2. There is no -DISPLAY UTILITY command. Familiar with the DB2 LIST
HISTORY command, but this doesnt seem to display anything till the job is
done. Somebody please tell me there's a way to monitor this thing while
its unloading,sorting,reloading,building indexes, waiting on locks, etc..

3. All tablespaces currently exist in one DB on the instance. Does this
mean that all my reorg jobs will be fighting for temp tablespace and sort
resources if I attempt to run concurrently ?

4. WHere are the calculations to figure out the projected temp tabelespace
and sort memory requirements based on the table size and number of
indexes ?

I dont mean to slam UDB, but where the heck is all that information for
doing this sort of thing ?

Thanks, Jeff Kluth
Email: be*********@comcast.net
Nov 12 '05 #1
4 4729
"News" <je**@remulaksolutions.com> wrote in message
news:qqWdnZhh1YJ6gZPfRVn-

1. There is no CREATE INDEX DEFER YES, so I am assuming that the
DROP/RECREATE of index as a clustering index will actually go through the
laborious process of building the index prior to the reorg, and hold a
catalog lock the whole time. True ?? I hope I'm missing something here.
Not sure that how long the catalog is locked in that situation, but I doubt
the lock on the catalog is going to be a problem (I could be wrong). I
assume it does row locking.
2. There is no -DISPLAY UTILITY command. Familiar with the DB2 LIST
HISTORY command, but this doesnt seem to display anything till the job is
done. Somebody please tell me there's a way to monitor this thing while
its unloading,sorting,reloading,building indexes, waiting on locks, etc..
You can get various snapshots that will tell you the locking situation (and
other information at any given time). There is a LOAD QUERY command. Don't
recall any others, besides using a snapshot of the application thread doing
the reorg.
3. All tablespaces currently exist in one DB on the instance. Does this
mean that all my reorg jobs will be fighting for temp tablespace and sort
resources if I attempt to run concurrently ?
Yes, but you can specify what tempspace to use for each reorg. If you use
SMS temp space (recommended) then it should not be a problem if you have
enough space on the mount point.
4. WHere are the calculations to figure out the projected temp tabelespace
and sort memory requirements based on the table size and number of
indexes ?

I dont mean to slam UDB, but where the heck is all that information for
doing this sort of thing ?

For some of the other utilities besides reorg, check out this manual: "Data
Movement Utilities Guide and
Reference." But overall, I agree that usage doc is not as good.

Nov 12 '05 #2
THanks Mark. The LOAD QUERY command looks interesting. I'm starting to think
I may be best off just unloading all this data, doing an external sort,
droping/recreating the objects w new clustering and LOADing them. I seem to
recall doing it that way before in the old mainframe days...

"Mark A" <no****@nowhere.com> wrote in message
news:Uu********************@comcast.com...
"News" <je**@remulaksolutions.com> wrote in message
news:qqWdnZhh1YJ6gZPfRVn-

1. There is no CREATE INDEX DEFER YES, so I am assuming that the
DROP/RECREATE of index as a clustering index will actually go through the
laborious process of building the index prior to the reorg, and hold a
catalog lock the whole time. True ?? I hope I'm missing something here.

Not sure that how long the catalog is locked in that situation, but I
doubt
the lock on the catalog is going to be a problem (I could be wrong). I
assume it does row locking.
2. There is no -DISPLAY UTILITY command. Familiar with the DB2 LIST
HISTORY command, but this doesnt seem to display anything till the job is
done. Somebody please tell me there's a way to monitor this thing while
its unloading,sorting,reloading,building indexes, waiting on locks, etc..

You can get various snapshots that will tell you the locking situation
(and
other information at any given time). There is a LOAD QUERY command. Don't
recall any others, besides using a snapshot of the application thread
doing
the reorg.
3. All tablespaces currently exist in one DB on the instance. Does this
mean that all my reorg jobs will be fighting for temp tablespace and sort
resources if I attempt to run concurrently ?

Yes, but you can specify what tempspace to use for each reorg. If you use
SMS temp space (recommended) then it should not be a problem if you have
enough space on the mount point.
4. WHere are the calculations to figure out the projected temp
tabelespace
and sort memory requirements based on the table size and number of
indexes ?

I dont mean to slam UDB, but where the heck is all that information for
doing this sort of thing ?

For some of the other utilities besides reorg, check out this manual:
"Data
Movement Utilities Guide and
Reference." But overall, I agree that usage doc is not as good.

Nov 12 '05 #3
"News" <je**@remulaksolutions.com> wrote in message
news:i9********************@comcast.com...
THanks Mark. The LOAD QUERY command looks interesting. I'm starting to think I may be best off just unloading all this data, doing an external sort,
droping/recreating the objects w new clustering and LOADing them. I seem to recall doing it that way before in the old mainframe days...

That would certainly work if you are concerned about the progress of a
reorg. Also comes in handy if you need to remove some old data from the
table (just select the data you do want loaded back). Not sure if you can
use an ORDER BY with the export utility, but that would make it even easier.
Nov 12 '05 #4
phu
Mark A <no****@nowhere.com> wrote:
[snip]
3. All tablespaces currently exist in one DB on the instance. Does this
mean that all my reorg jobs will be fighting for temp tablespace and sort
resources if I attempt to run concurrently ?

Yes, but you can specify what tempspace to use for each reorg. If you use
SMS temp space (recommended) then it should not be a problem if you have
enough space on the mount point.


I think that you can specify the temp tablespace for the DAT and INX
objects, but when you issue a REORG with LONGLOBDATA, the specified
tempspace doesn't really mean anything. I think what happens when
you do not specify a temp tablespace is that one is chosen in a round-
robin fashion, amongst those that can satisfy the requirements (e.g.
pagesize). So, in the case for the original poster, if you have
multiple concurrent CLASSIC REORGs, and multiple temporary tablespaces,
then there is less likelyhood of collision/competition for the same
tempspace.

Nov 12 '05 #5

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

Similar topics

27
by: Raquel | last post by:
This question if for UDB on LUW. Suppose I take regular database backups of my database Monday: database backup <ts1> Tuesday: Tablespace reorged and imagecopied <ts2> Friday: database...
1
by: Anna Hutter | last post by:
Hello, this question is about DB2 UDB V8 and its inplace reorganisation. It seems that in small tables, an inplace reorg doesn´t start. Is there a limit in size of a table when a reorg starts?...
9
by: Lara | last post by:
Hello freaks, we have many problems with our online reorg and no idea how to resolve it. We had to do an online reorg beacause of 24 h online business. We start the reorg-statements (table by...
2
by: TomHorner | last post by:
I have several quick questions about reorg's, and a request (favor). 1. The documentation says that reorg "Reorganizes an index or a table" I cannot see how one would reorg ONE particular index...
1
by: hikums | last post by:
1. I did a reorgchk, and found that F2 on table and F4 on index indicates a reorg is necessary. 2. Did a reorg. 3. Again I do a reorgchk, the report is the same as in Step 1 4. I do a...
16
by: andy.standley | last post by:
Hi, we are running DB2 V8.2 (8.1.0.80) on redhat linux and I am trying to set the reorg to be online. I use the control center on the box - db2cc and then configure automatic maintenance wizard -...
13
by: Yuri | last post by:
We have an update sql that was running OK for several months completing in under 2 minutes . Yesterday something changed and we had to kill this update after it ran more than 6 hours. Update input...
9
by: mike_dba | last post by:
I am using DMS raw. I have a tablespace which is defined with 5 containers each allocated at 1.5 GB for a total of about 7.5 GB. I did a major deletion followed by a reorg and a runstats. I am...
0
by: bwmiller16 | last post by:
Hi All - OSName: AIX NodeName: dr_aixdb01 Version: 5 Release: 3 dr_aixdb01$db2level DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL08027"
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.