DB2 Architecture
DB2 Environment has three layered Hierarchy
- Physical Server Machine
- Workstation on which database is installed forms the highest element in this hierarchy.It an physical machine.
- Virtual Server Machine
- An Virtual Server is created on the machine when we install the DB2 Setup. It is commonly know as DAS( DB2 Admin Server).
- It is collection of Instances.
- It runs as a Windows services which can be start or stop using services.msc console.
- It can also be start or stop using command prompt as
- db2admin stop or
- db2admin start commands
- It is required for
- Network database discovery
- Remote Administration
- Tools Catalog task scheduling
- DB2 Virtual Registry( DB2 Profile Registry)
- Similar to the Windows registry, which is used to save windows related info/path into variables, DB2 Profile registry also save Environment related information into variables.
- From the command prompt ""db2set" is used to view or change all the option
- Database Instance or Database Manager (DBM)
- Instance can be defined as collection of processes which are used by the user to access the database as well as collection of resources.(memory)
- In a single installation of DB2, we can generate multiple Instances from installation files.
- Instance acts as an manager for all the database residing within it.
- It can be started or stopped using command "db2start" or "db2stop" command ( Note:- this command needs to be executed from the db2 prompt unlike the command prompt)
- It consists of DB2 Database Manager Configuration File per instance.( DBM CFG)
- DBM CFG can be accessed using the command "get dbm cfg"( Note:- this command needs to be executed from the db2 prompt unlike the command prompt)
- Instance configuration file consists of
- security plan
- performance attributes
- communication
- There are four types of Instances
- ESE
- WSE
- Standalone
- Client
- Database
- Database can be defined as collection of tables and related objects.
- Each database include
- system catalog tables
- database configuration file
- recovery log
- Similar to the Instance configuration file, each database consists of its own configuration file.(DB CFG)
- DB CFG can be accessed using command "get db cfg".( Note:- this command needs to be executed from the db2 prompt unlike the command prompt)
No comments:
Post a Comment