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

System Catalog Table Maintenance

Do db2 system catalog table require maintenance (reorg/runstat) ?

Thanks,
Sam

Mar 7 '07 #1
5 5377
On Mar 7, 9:26 am, "Sam Durai" <reachsamdu...@gmail.comwrote:
Do db2 system catalog table require maintenance (reorg/runstat) ?

Thanks,
Sam
Yes.

Mar 7 '07 #2
On Mar 7, 11:51 am, "Mark A" <m00...@yahoo.comwrote:
On Mar 7, 9:26 am, "Sam Durai" <reachsamdu...@gmail.comwrote:
Do db2 system catalog table require maintenance (reorg/runstat) ?
Thanks,
Sam

Yes.
Thanks for the response. Is it required only if there is frequent
change in DDL or do we need to run it on stable systems(No change in
DDL only data gets added to table) as well ?

Please advice

Mar 7 '07 #3
Since change activity is not very high on the catalog tables in a stable
production environment, we use:
db2 reorgchk on table system, every quarter. The command runs with UPDATE
STATISTICS as a default. We'll then REORG whatever the output recommends if
we think it necessary. This may happen to three or four tables generally.
We then re-run stats on those.
You can polish this up also easily after that with: dr2rbind <dbname-l
rbindout.txt ALL command which will cause all packages in the
SYSCAT.pPACKAGES table to be rebound with their options already specified.
HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Sam Durai" <re***********@gmail.coma écrit dans le message de news:
11*********************@n33g2000cwc.googlegroups.c om...
Do db2 system catalog table require maintenance (reorg/runstat) ?

Thanks,
Sam
Mar 7 '07 #4
"Sam Durai" <re***********@gmail.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
Thanks for the response. Is it required only if there is frequent
change in DDL or do we need to run it on stable systems(No change in
DDL only data gets added to table) as well ?

Please advice
Reorgs are never "required." Once the schema is defined, and runstats has
been run, then you don't need to keep reorging the catalog. But after a big
schema change, you should probably run the reorgs/runstats twice, because
the first time you run runstats, additional rows may be added to the
catalog.

If you have a scheduled maintenance window, then an offline (classic)
catalog reorg is not a problem and costs little (very few DB2 LUW systems
use job accounting to chargeback the costs to a user). Some catalog tables
cannot be reorged online, and you will just get an error message when you
try it.

The real trick is to figure out what index to use when reorging the catalog
(or any table). For any reorg, you should usually select an index to use in
this order:

1. Clustering index

2. Primary Key index

3. Unique Index

4. First index on the table

5. No index clause (if you got this far down the list, then no index exists)
Mar 8 '07 #5
Sam,

the best time for a catalog table reorg is after you install a fipack.
In the maintenance window you can reorg all catalog tables. Only a few of
minutes.

Best regards,
Joachim Müller

"Sam Durai" <re***********@gmail.comschrieb im Newsbeitrag
news:11*********************@n33g2000cwc.googlegro ups.com...
Do db2 system catalog table require maintenance (reorg/runstat) ?

Thanks,
Sam
Mar 8 '07 #6

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

Similar topics

236
by: Andrew Rawnsley | last post by:
Anyone out there using beta 2 in production situations? Comments on stability? I am rolling out a project in the next 4 weeks, and really don't want to go though an upgrade soon after its released...
4
by: Uttam | last post by:
Hello, Could someone point me to the syntax required to detected whether a particular table (say tbl1) and a particular Query (Qry1) exists in the catalog? Thank you in advance. Cheers!
3
by: Luis Esteban Valencia | last post by:
A page let of work for me I commented almost all lines but nothing the code is this
1
by: Luis Esteban Valencia | last post by:
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source...
0
by: berandor | last post by:
I am attempting to use the "Catalog Library List" feature of the IBMDA400 oledb provider. My connection string is as follows: new OleDbConnection("Provider=IBMDA400.DataSource.1;Data...
3
by: reachsamdurai | last post by:
Is it possible to determine the list of child/parent tables for a particular table from any system catalog tables? Using the syscat.tables I'm able to retrieve the no of dependent parent/child...
0
by: woollymammoth | last post by:
I can't assign a MS SQL Server table record value to a simple VB variable, should be an easy thing. Sample SQL Server table has the data in the record as a char(30) string, the column for that record...
1
by: woollymammoth | last post by:
I can't assign a MS SQL Server table record value to a simple VB variable, should be a really easy thing. Sample SQL Server table has the data in the record as a char(30) string, the column for that...
4
by: Laurence Breeze | last post by:
I wonder if anyone can help ... Today I tried to create another non-clustered index on a table. This failed as I apparently already had 249 non-clustered indexex on the table. Looking at the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.