16.10.2015 Views

Getting Started with DB2 Express-C

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6<br />

Chapter 6 – <strong>DB2</strong> Architecture<br />

In this chapter we briefly discuss the <strong>DB2</strong> architecture. You will learn about:<br />

Note:<br />

• The <strong>DB2</strong> process model<br />

• The <strong>DB2</strong> memory model<br />

• The <strong>DB2</strong> storage model<br />

For more information about the <strong>DB2</strong> architecture, watch this video:<br />

http://www.channeldb2.com/video/video/show?id=807741:Video:4482<br />

6.1 <strong>DB2</strong> process model<br />

Figure 6.1 depicts the <strong>DB2</strong> Process Model. In this figure, rectangles represent processes<br />

while ellipses represent threads. The main <strong>DB2</strong> process is called db2sysc. Under this<br />

process there are several threads, the main one is also called the db2sysc. This is the<br />

main thread that spawns other threads. When a remote application tries to connect to the<br />

server using an SQL CONNECT statement, the remote listeners for the communication<br />

protocol will receive this request and contact a <strong>DB2</strong> coordinator agent (db2agent). A <strong>DB2</strong><br />

agent is like a little worker that performs operations on behalf of <strong>DB2</strong>. When the application<br />

is local, that is, running on the same server as <strong>DB2</strong>, the steps are very similar, only that a<br />

db2ipccm agent handles the request instead of the db2tcpcm thread. In some cases, such<br />

as when parallelism is enabled, a db2agent may spawn other agents which appear as<br />

db2agntp threads. Other agents shown in the figure such as db2pfchr, db2loggr, db2dlock<br />

may also be used for different purposes. Most common processes are described in Table<br />

6.1, and most common threads are described in Table 6.2.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!