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 > Agent,application,statement

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-08, 19:45
db2rocks db2rocks is offline
Registered User
 
Join Date: Jan 2008
Posts: 45
Agent,application,statement

Can anyone here please tell me the relationships that exist between an agent,application and statement


I know that any new connection will be allocated an agent and is it true that one agent can kick off multiple applications and each applications might have multiple statements

Please tell me if i I am correct r not

Thanks
Reply With Quote
  #2 (permalink)  
Old 03-04-08, 00:28
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Generally, one application connection has one agent, unless one of the following occur (in which case there may be multiple agents):
  • A parallel acess path is chosen by DB2 (intra-partition parallelism) for a given SQL statement.
  • A utility uses parallelism (such as backup, etc). See the Command Reference for details.
  • A few other unusual cases that I can't remember
.

A given agent can run multiple SQL statements.
__________________
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
  #3 (permalink)  
Old 03-04-08, 05:08
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
  • An application can have multiple connections.
  • A connection is the same as a session.
  • A SQL statement is always executed on a single connection.
  • Each connection has a single coordinator agent. As Mark said, each coordinator agent can use several additional subagents that do work in parallel.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #4 (permalink)  
Old 03-04-08, 09:02
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by stolze
  • An application can have multiple connections.
  • A connection is the same as a session.
  • A SQL statement is always executed on a single connection.
  • Each connection has a single coordinator agent. As Mark said, each coordinator agent can use several additional subagents that do work in parallel.
In DB2, an application and connection is sometimes used synonymously. When you issue the command "list applications" you see a list of connections.
__________________
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