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 > Access Path changes for dynamic SQL after Migration to version 8 on mainframe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-07-08, 17:25
bigal21 bigal21 is offline
Registered User
 
Join Date: Mar 2006
Posts: 14
Access Path changes for dynamic SQL after Migration to version 8 on mainframe

Good afternoon,

We are in the process of migrating from DB2 version 7 to version 8 (mainframe). Unfortunately, some of our applications (which uses dynamic SQL) is getting a different (and apparently slow) access path on version 8. Some that were running in about 1 minutes are now running well over 10, and some as long as 30. Since this is dynamic SQL, we cannot avoid this by simply NOT rebinding after migration. We have tried the Statitistics Analyzer, and while that has improved response times for one or two queries, it has apparently hurt others.

(this is a TERRIBLE question but) has anyone come across a similar situation? If so, what did you do to resolve it?
Reply With Quote
  #2 (permalink)  
Old 02-07-08, 17:58
nidm nidm is offline
Registered User
 
Join Date: May 2003
Posts: 113
Quote:
Originally Posted by bigal21
Good afternoon,

We are in the process of migrating from DB2 version 7 to version 8 (mainframe). Unfortunately, some of our applications (which uses dynamic SQL) is getting a different (and apparently slow) access path on version 8. Some that were running in about 1 minutes are now running well over 10, and some as long as 30. Since this is dynamic SQL, we cannot avoid this by simply NOT rebinding after migration. We have tried the Statitistics Analyzer, and while that has improved response times for one or two queries, it has apparently hurt others.

(this is a TERRIBLE question but) has anyone come across a similar situation? If so, what did you do to resolve it?
DB2/zos v8 has quite a big change in optimization area. Usually, the feedback is positive. :-)

anyway, the first thing you can try is to make sure your statistics are up to date. If still can't resolve the issue, you should open PMR to IBM
Reply With Quote
  #3 (permalink)  
Old 02-07-08, 18:02
bigal21 bigal21 is offline
Registered User
 
Join Date: Mar 2006
Posts: 14
thanks for the quick response

thanks, we have done both. We have run statistics, opened a PMR, run the statistics specified by IBM technicians, and run the statistics run by the Visual Explain tool. They have been fruitless to date. The IBM technician is still working on it. She has been helpful but we have not yielded the positive results we need.
Reply With Quote
  #4 (permalink)  
Old 02-08-08, 02:49
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You can raise the severity of the PMR depending on how urgent this issue is for you and how much it impacts your business. With a higher severity, you will get more attention, of course.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #5 (permalink)  
Old 02-08-08, 03:00
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I hesitate to throw stones without seeing the details (not provided), but the DB2 optimizer is most likely to be fooled when your tables are over-indexed and/or your queries are horribly written. But there are exceptions.
__________________
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
  #6 (permalink)  
Old 02-08-08, 07:08
bigal21 bigal21 is offline
Registered User
 
Join Date: Mar 2006
Posts: 14
the reports are from a 3rd party vendor (PeopleSoft), and function just fine under version 7. They may be poorly written, but there is nothing we can do about that (at least not in the short term). As for raising the priority on the PMR, it has been a high priority PMR all along, and IBM has been responsive, but they have not yet been able to find a way around this.

I was hoping someone else would have experienced the same problem and could offer some hints on how to resolve this.
Reply With Quote
  #7 (permalink)  
Old 02-08-08, 10:59
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Hmmm. PeopleSoft is owned by Oracle now.
__________________
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