472,958 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 4712
"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"
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.