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 > Query execution in detail

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-15-10, 12:59
DB Guide DB Guide is offline
Registered User
 
Join Date: Oct 2009
Posts: 14
Query execution in detail

Hi,

1) Can anybody tel me where i will get the material to read in detail about "query execution"(parsing, optimization, execution plan, .. etc) in db2 UDB LUW?

I googled it a lot.. but couldn't find it in detail (with diagrammatically).

2) I read for memory model and the process model (as in below link)

Memory model:
The DB2 UDB memory model

Process Model:
Everything You Wanted to Know About DB2 Universal Database Processes

But the complete process flow and step by step execution is not clear to me.

Can you provide me any useful links which can clear these concepts?


Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 01-15-10, 13:20
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What is it specifically that you want to know?

Andy
Reply With Quote
  #3 (permalink)  
Old 01-18-10, 06:42
DB Guide DB Guide is offline
Registered User
 
Join Date: Oct 2009
Posts: 14
Hi Andy,

I want to know:

1. How an sql query is executed. for example who parse it, where it get parsed (& involved processes), how Execution plan is prepared and chosen an optimal one, the memory & processes involved it this..etc
When precompiler comes into picture and the processes interacting with it.

2. working & functioning of all memory parts in exact sequence while executing a query or doing any other specific task. Also the coordination of processes involved in it and memory interaction of these processes.

3. What happens when we do COMMIT or ROLLBACK (which processed and memory part involved and the flow). i.e. equivalent of UNDO tablespace (or Rollback segment) of Oracle in DB2.

This stuff i would like to know.
Reply With Quote
  #4 (permalink)  
Old 01-18-10, 12:33
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
This is mostly stuff that you can find in any lecture about database system architecture/implementation.

Regarding the specific DB2 process model and memory management, you'll find some presentations via Google.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #5 (permalink)  
Old 01-21-10, 13:18
prashant44 prashant44 is offline
Registered User
 
Join Date: Feb 2008
Posts: 59
Hello dbguide,

i also searched for it but didn't get that much success. IBM should prepare some official docs on this.
We can find in detail working of Oracle memory & processes in Oracle press notes easily. This part is also included in Oracle's certification syllabus. But IBM haven't included memory and process related chapters in its db2 certification syllabus. Don't know why!!!
Reply With Quote
  #6 (permalink)  
Old 01-22-10, 08:22
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You were asking about absolute basics of "database system architecture". Whole books have been written about that. Publishing yet another book about that seems to be a bit pointless.

Now, your latest question is on the process model and memory model of DB2. In my perspective, that's a different question now (or at least a more precise question). The memory and process models of DB2 are documented and you can look into the manuals, various redbooks and also conference proceedings/presentations if you'd like a more colorful overview.
__________________
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