SAP On DB2 Overview - Updated
SAP On DB2 Overview - Updated
SAP On DB2 Overview - Updated
DB2
By Varun Krishna S
Agenda for fundamentals of DB2
• Introduction
• User management
• Storage structures
• DB2 engine dispatchable engines
• DB2 environment
• DB2 Architecture
• DB2 database partitioning
• All about DB2 statement processing
• Log file management
• DB2 backup Architecture
• Types of backup
• Checking Backup
• Advantages of SAP with DB2
Introduction about RDBMS , SQL
Database 1
Database 1
Database 2 Database 2
DBMCFG DBMCFG
DBM Program
file
Different configuration files
List instances :
DB2 ILIST
How to get DBMconfiguration file :
DB2 GET DBMCFG
How to know in which instance we are in :
DB2 GET INSTANCE
How to move from one instance to other instance
$ su – “ intance name”
Windows :
Set db2instance= “ Instance name “
Instance creation
• Introduction
• User management
• Storage structures
• DB2 engine dispatchable engines
• DB2 environment
• DB2 Architecture
• All about DB2 statement processing
• Log file management
• DB2 backup Architecture
• Types of backup
• Checking Backup
• Advantages of SAP with DB2
Introduction
SAP supports below versions of DB2
Model view of SAP on DB2
Except for the above mentioned differences,the implementations of DB2 onUNIX and
Windows are very similar
Issue db2pd –edus to get a list of all threads of the DB2 instance..
DB2 engine Dispatchable units
DB2 environment
DB2 engine configuration files
DB2 environment
DB2 engine configuration files
DB2 environment
DB2 engine configuration files
DB2 environment
DB2 engine configuration files
Platform-specific environment variables
With db2start command which started by startsap the below edu’s will get started :
1.db2wdog – Monitor Edu
2.db2sync - EDU control
3.db2tcpcm – Acts on TCP request
4. db2ipccm – Acts on IPC request
DB2 Architecture - stopsap
When SAP software is shut down in a controlled process, the stopsap script is used to call the script stopdb,
which in turn executes the following DB2 commands:
1 db2 deactivate database <dbsid>
2 db2stop
During the deactivation of the database, the database buffers are copied back toDB2 containers and all files
DB2 Architecture - DB2 Memory Allocation
1. When the DB2 instance is started, the per-instance memory, also known as database-manager shared
memory, is allocated. The maximum size of the memory can be controlled by the DB2 DBM parameter
“instance_memory”.
2 When the DB2 database is activated or started, the per-database memory isallocated. The maximum size
of the per-database memory can be controlled by the DB2 DB parameter “database_memory”.
DB2 – database partitioning
Possible partitioning scenarios :
SQL requsts that are sent from SAP Application servers will be first processed by DBI ( Database interface ).
DBI sends request to DBSL for DB specific processing (DBSL - Data base support layer)
Via DBI and DBSL SQL requsts are transfrred to DB2 specific calls of the DB2 CLI ( Call level interface).
CLI operates typical commands ( Prepare , execute , fetch , close ) . To work on request
DB2 – Statement processing
DB2 TCP/IP Connection Setup
Log file management ( Logging over view)
Log file management ( Logging over view)
DB2 Backup architecture
Different Backups ( Offline )
Different Backups ( online )
Different Backups (incremental and delta)
Backup from DB13
Checking Backup(DB12)
Advantages of SAP with DB2 -
Partitioning Feature
•Start with small DB server and add CPU and memory resources as
needed
•„start with one DB server and add additional DB servers as needed
•„Better CPU utilization through parallel query execution
•„Reduction of time for maintenance operations
•„Parallel backup of all database partitions reduces backup time
•„Parallel index creation on all partitions where table is located
Thank You