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 > Why explain plan not same?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-29-11, 03:46
automona automona is offline
Registered User
 
Join Date: Dec 2011
Posts: 10
Why explain plan not same?

Hi All

I clone db2 database from server1 to my vmware
and try to ran explain plan same query, same #rows, same index and primaky but not same explain plan
server1 use indexes but my vmware is table scan

what happen?


Thanks
Reply With Quote
  #2 (permalink)  
Old 12-29-11, 07:07
fengsun2 fengsun2 is offline
Registered User
 
Join Date: Nov 2011
Posts: 124
Could you plz put the two different explains here?
The db2exfmt output is prefered.
Reply With Quote
  #3 (permalink)  
Old 12-29-11, 07:49
stiruvee stiruvee is offline
Registered User
 
Join Date: May 2010
Location: India
Posts: 34
Server configuration (CPU, memory, hard disk speed) and other parameters (bufferpool size) impact access plan. See the attached link for details.

IBM DB2 9.7 for Linux, UNIX and Windows Information Center

Satya..
Reply With Quote
  #4 (permalink)  
Old 12-29-11, 09:27
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You are running on different hardware, possibly with a different number of (virtual) CPUs, more/less memory, ... So you'll usually expect the plans to be different as soon as the statements become reasonably more complex.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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