Professional Documents
Culture Documents
Chapter 1.introduction: DB2 Is Universal Database
Chapter 1.introduction: DB2 Is Universal Database
Chapter 1.introduction: DB2 Is Universal Database
Introduction
DB2 Architecture:
In this chapter we briefly discuss the DB2 architecture.
The DB2 process model
The DB2 memory model
The DB2 storage model
DB2 process model
Figure depicts the DB2 Process Model. In this figure, rectangles
represent processes while ellipses represent threads. The main DB2 process
is called db2sysc. Under this process there are several threads, the main one
is also called the db2sysc. This is the main thread that spawns other threads.
When a remote application tries to connect to the server using an SQL
CONNECT statement, the remote listeners for the communication protocol
will receive this request and contact a DB2 coordinator agent (db2agent). A
DB2 agent is like a little worker that performs operations on behalf of DB2.
When the application is local, that is, running on the same server as DB2,
the steps are very similar, only that a db2ipccm agent handles the request
instead of the db2tcpcm thread. In some cases, such as when parallelism is
enabled, a db2agent may spawn other agents which appear as db2agntp
threads. Other agents shown in the figure such as db2pfchr, db2loggr,
db2dlock may also be used for different purposes.
Buffer pools
A buffer pool is a real memory cache for table and index data. It
improves performance by reducing direct sequential I/O and it promotes
asynchronous reading (pre-fetching) and writing. That is to say, DB2
anticipates what pages will be needed and pre-fetches them from the disk to
the buffer pool so they are ready to use. Buffer pools are allocated in
memory units of 4K, 8K, 16K, and 32K pages. There should be at least one
buffer pool per database, and at least one matching buffer pool for a table
space of a given page size.
Control Center:
The control center is DB2 central GUI-based administration tool and
it can be used to administer DB2 databases from pervasive devices such as
Palm Pilots and cellular phones, to clusters of symmetric multiprocessing
(SMP) workstations, to massively parallel processing (MPP) systems like
the IBM z-series servers. The Control center has a setup communications
function that allows you to display the protocols and configuration
parameters that a server’s instance is configured to use. It also allows you
to modify any parameter values of a configured protocol, as well as add or
delete supported protocols.
Characteristics of DB2:
Integrated: DB2 software has built-in support for both Microsoft and Java
development environments. It is also integrated into WebSphere, Tivoli,
Lotus, and Rational products. In addition, the DB2 family has cross-platform
capabilities and can be integrated natively with Web services and message-
queuing technologies. It also provides support for heterogeneous data
sources for both structured and unstructured information, including
pureXML support.
Open: DB2 software allows for different technologies to connect and
integrate by following standards. Thus, it provides strong support for the
Linux operating system and for Java, XML, Web services, grid computing,
and other major industry applications.
Virtualized: Grid computing technology, a type of distributed computing,
collects and shares resources in a large network to simulate one large, virtual
computer. DB2 software products support grid computing technology
through federation and integration technologies. Both of these are discussed
in more detail later in this chapter.
Autonomic: An autonomic computing system manages, repairs, and
protects itself. As systems become more complex, autonomic computing
systems will become essential. DB2 provides self-tuning capabilities,
dynamic adjustment and tuning, simple and silent installation processes, and
integration with Tivoli for system security and management.