If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Reorg and runstats of catalog tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-11, 23:40
Mikky Mikky is offline
Registered User
 
Join Date: Jan 2011
Posts: 8
Reorg and runstats of catalog tables

Can reorg and runstats of the catalog tables help with the performance when accessing application tables?


Mike
Reply With Quote
  #2 (permalink)  
Old 02-05-11, 01:05
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
The catalog tables are used to determine the access plan chosen by DB2 to process the SQL. For example, DB2 will look at the various indexes and their statistics as stored in the catalog to determine whether to use any of them instead of doing a table scan. However, keep in mind that if the same exact SQL is being executed more than once, the access plan "may" be cached in package cache, or if static SQL is used (such as found in most stored procedures) the access plan is already stored in with the package.

So yes, reorg and runstats of the catalog tables can help with performance.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On