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 > SQL performance degraded after instance restart

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-08-07, 04:17
meehange meehange is online now
Registered User
 
Join Date: Jul 2004
Posts: 256
SQL performance degraded after instance restart

DB2 8.2 AIX 5.3

After an instance restart suddenly several application SQL's take over 100 times longer to execute, grinding the system to a halt.

I can't see anything particularly out of the ordinary and the only paramete that I believe was changed was the DB2_USE_ALTERNATE_PAGE_CLEANING registry parm.

I've removed that and restarted once more but the problem persists.

I've reorged and runstats on the tables/indexes involved.
A runstats with distribution and detailed indexes all returned the message that the index and table stats were not consistent....
So I dropped the index and recreated it and ran runstats once more....

The problem persists... any tips where I should be looking?

Cheers,
Reply With Quote
  #2 (permalink)  
Old 05-08-07, 10:09
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
You can look at an Execution plan for a SQL; see if the appropriate indexes are being used. Using NMON or TOPAS, look also at the OS Level parameters to make sure NO swapping is taking place. The default AIX settings are not suitable for the db2 database.
__________________
mota
Reply With Quote
  #3 (permalink)  
Old 05-08-07, 21:02
meehange meehange is online now
Registered User
 
Join Date: Jul 2004
Posts: 256
We looked at the execution plans on this DB and a test copy. They were using different plans (the production was doign a tablescan instead of using an index)...after some additional investigation is seems that the DB2_REDUCED_OPTIMIZATION registry setting had been changed from 4,UNIQUEINDEX,JOIN to 4,INDEX,JOIN by the SAP WORKLOAD parameter.

Thanks for the suggestions
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