niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » IBM DB2
Seeking some planning info for DB2 UDB LUW REORG
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
phu@cs.dal.ca
*nix forums beginner


Joined: 15 Feb 2005
Posts: 1

PostPosted: Tue Feb 15, 2005 5:58 am    Post subject: Re: Seeking some planning info for DB2 UDB LUW REORG Reply with quote

Mark A <nobody@nowhere.com> wrote:
[snip]
Quote:
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.
Back to top
Vincent M
*nix forums Guru


Joined: 22 Feb 2005
Posts: 1332

PostPosted: Sat Feb 12, 2005 6:44 pm    Post subject: Re: Seeking some planning info for DB2 UDB LUW REORG Reply with quote

"News" <jeff@remulaksolutions.com> wrote in message
news:i9OdnS01EsbvxJPfRVn-sQ@comcast.com...
Quote:
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.
Back to top
News
*nix forums beginner


Joined: 12 Feb 2005
Posts: 1

PostPosted: Sat Feb 12, 2005 6:30 pm    Post subject: Re: Seeking some planning info for DB2 UDB LUW REORG Reply with quote

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" <nobody@nowhere.com> wrote in message
news:Uu2dnWUEKeRkzZPfRVn-2g@comcast.com...
Quote:
"News" <jeff@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.


Back to top
Vincent M
*nix forums Guru


Joined: 22 Feb 2005
Posts: 1332

PostPosted: Sat Feb 12, 2005 5:56 pm    Post subject: Re: Seeking some planning info for DB2 UDB LUW REORG Reply with quote

"News" <jeff@remulaksolutions.com> wrote in message
news:qqWdnZhh1YJ6gZPfRVn-
Quote:

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.

Quote:
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.

Quote:
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.

Quote:
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.
Back to top
News
*nix forums beginner


Joined: 12 Feb 2005
Posts: 1

PostPosted: Sat Feb 12, 2005 2:12 pm    Post subject: Seeking some planning info for DB2 UDB LUW REORG Reply with quote

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: beldar20001@comcast.net
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 2:07 am | All times are GMT
navigation Forum index » Databases » IBM DB2
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Column info without executing query Dan Strömberg PostgreSQL 10 Thu Jul 20, 2006 6:21 pm
No new posts proxy landscape planning Albrecht Marcus Squid 0 Thu Jul 13, 2006 4:17 pm
No new posts finding perl info on google can be hard ilikesluts@gmail.com Perl 34 Wed Jul 12, 2006 1:18 am
No new posts Autovacuum Logging Info? Ron St-Pierre PostgreSQL 0 Mon Jul 10, 2006 3:43 am
No new posts How can I display pririority (Kernel.info or Auth.Info) i... GS networking 4 Sun Jul 09, 2006 3:50 pm

Loans | Secured Loans | Credit Cards | Debt Consolidation | Free Advertising
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2213s ][ Queries: 20 (0.1046s) ][ GZIP on - Debug on ]