0% found this document useful (0 votes)
115 views25 pages

DB2 Architecture

DB2 architecture consists of components at different levels - operating system, instance, and database. An instance manages databases and their behavior through configuration files and profile registries. Databases contain important components like buffer pools, log files, and tablespaces to store tables. Environment variables at the operating system level, like TEMP and DB2INSTANCE, define locations for temporary files and DB2 instances. Every instance has its own configuration file to tune settings at the instance and database levels.

Uploaded by

Stephen Efange
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views25 pages

DB2 Architecture

DB2 architecture consists of components at different levels - operating system, instance, and database. An instance manages databases and their behavior through configuration files and profile registries. Databases contain important components like buffer pools, log files, and tablespaces to store tables. Environment variables at the operating system level, like TEMP and DB2INSTANCE, define locations for temporary files and DB2 instances. Every instance has its own configuration file to tune settings at the instance and database levels.

Uploaded by

Stephen Efange
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

DB2 Architecture

Table of Contents
Overview ....................................................................................................................................................... 3
The Big Picture .............................................................................................................................................. 7
DB2 Instances.............................................................................................................................................. 10
Overview
The Big Picture

Let’s take a look at the DB2 environment and the components that make up the environment.
DB2 is made up of lots of different components at different levels and these components control the
behavior of the system. So when we say that these components are defined at different levels of you are
basically saying that certain components are there at the operating system level. Some components are
that at the instance level and some of them are there at the database level.

So you need to understand the DB2 environment and the concepts of DB2 instances and the concepts of
DB2 databases and their components to work effectively with DB2.

These components control the behavior of DB2 because there are some configurations that allows us to
control the DB2 environment and its behavior.

So you can use the environment variables at the operating system level to find certain things. Then you
can use the instance level profile registries, the global level profile registries, the dbm cfg files at the
instance level to fine tune this instance. That is myinst instance in this example.

Also, you can't change certain parameters to fine tune the databases falling under this instances control.

Now since we all know that the instance is the manager to the databases, we can definitely control
some of the behavior of the databases from the instance level itself.

A database is more than just a collection of tables. A database works fine when we have certain
important components in place and fine-tuned.

some of those components are buffer pools, log files, the database configuration file, the table-spaces
that contains the tables.

Discuss the environment variables the operating system level.


Environment variables are a part of the operating system and an operating system shares its resources

with applications that are installed on it.

So all of these applications or programs installed on an Operating System take resources from the
operating system.

Also these applications will require a space where they can store their temporary files. So they work
with temporary files and they need a space or a directory onto the operating system where they can
store these temporary files.

Now how do these applications know what is the location where they store the temporary files. That is
defined by an operating system Environment variable such as TEMP. Temp is the name of the
environment variable and there will be a value assigned to it and the value will be a directory on the OS
where the applications can store their temporary files.

Then there is a db2 environment variable that is automatically created when we install DB2. The
environment variable name is called DB2INSTANCE.

So where do we find these environment variables ?


DB2 Instances
There is a database manager configuration file that is associated with every instance and we use that file
to fine tune a lot of things on the instance level and the databases that fall under the control of that
instance.

Connectivity directories are used to store some connectivity information that you might require to
connect your local or to remote databases.
So you can create multiple databases inside one instance. This can be better understood by comparing it
with an example that can create multiple user accounts on our windows operating system.

So we can have administrate accounts for administrative users, non-administrate accounts for general
users and guest accounts for limited users. So these three different accounts provide different
environments for users to work in.

The same way Instances provide different environments for databases to work in. Instances act as
managers to the database is residing inside it. So when you create a database within an instance that
instance becomes a manager that database and an instance can manage multiple databases.
Every instance will have its own database manager configuration file.

Fine tune instance level and at the database level configuration in this file.
i = instance level while g= global level
For remote connection you need: IP address or the host name, the communication protocol, the port,
database name.

Local databases have a Directory entry type of Indirect while remote database will have a remote entry
type.
We are not connected to a remote directory.

Direct connect information is not present because we are not connect to a mainframe.

DB2 Databases
Table spaces define how data is stored.
DB2 Process

You might also like