Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
19 views16 pages

Small Introduction To IBM DB2 and DBA Details

The document outlines a training session on DB2 LUW (Linux, UNIX, Windows) architecture and administration, covering key topics such as instance and database concepts, storage, monitoring, security, and high availability. It highlights the features of DB2 LUW, including multi-platform support and advanced compression, while providing best practices for backup, recovery, and performance tuning. Additionally, it compares IBM Db2 with other database systems, emphasizing cost efficiency, performance, and security.

Uploaded by

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

Small Introduction To IBM DB2 and DBA Details

The document outlines a training session on DB2 LUW (Linux, UNIX, Windows) architecture and administration, covering key topics such as instance and database concepts, storage, monitoring, security, and high availability. It highlights the features of DB2 LUW, including multi-platform support and advanced compression, while providing best practices for backup, recovery, and performance tuning. Additionally, it compares IBM Db2 with other database systems, emphasizing cost efficiency, performance, and security.

Uploaded by

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

Title: DB2 DBA Training

Subtitle: Deep Dive into DB2 LUW


Architecture & Administration
Presented by: Ankush Matta

Date: July,2025
Introduction to DB2 LUW
DB2 LUW Architecture
Instance & Database Concepts
Storage & Tablespaces
Bufferpools & Memory Management
Agenda Logging & Recovery
Backup & Restore
Monitoring & Performance Tuning
Security & Access Control
High Availability & HADR
Maintenance & Housekeeping
Introduction to DB2
LUW
• DB2 LUW = DB2 for Linux, UNIX, and
Windows
• Developed by IBM, relational database
engine
• Supports OLTP and OLAP workloads
• Editions: Community, Standard, Advanced
• Key Features:
• Multi-platform support
• High availability (HADR)
• Advanced compression
• BLU Acceleration (columnar storage)
DB2 LUW Architecture
Overview

• Instance: Manages databases and memory


• Database: Logical container for data
• Bufferpools: Cache for data pages
• Tablespaces: Logical storage units
• Containers: Physical storage (files/devices)
• Logs: Track transactions
• Agents: Handle client requests
Instance & Database

•Instance:
•Created using db2icrt
•Managed via db2start, db2stop
•Database:
•Created using CREATE DATABASE
•Configured via db cfg
•Configuration:
•dbm cfg: Instance-level
•db cfg: Database-level
Storage &
Tablespaces
Tablespace Types:
•SMS (System Managed Space)
•DMS (Database Managed Space)
•Automatic Storage
Design Tips:
•Separate data, index, temp spaces
•Use large tablespaces for scalability
Monitoring:
•MON_GET_TABLESPACE
•SYSCAT.TABLESPACES
Bufferpools &
Memory
•Bufferpools:
•Cache table/index pages
•Configured via CREATE BUFFERPOOL
•Memory Heaps:
•Database heap, sort heap, locklist
•Monitoring:
•MON_GET_BUFFERPOOL
•db2pd -db <dbname> -mem
•db2pd -dbptnmem
Logging & Recovery

•Logging Types:
•Circular (default)
•Archive (for rollforward)
•Log Files:
•LOGFILSIZ, LOGPRIMARY,
LOGSECOND
•Recovery:
•Crash recovery
•Rollforward to PIT
Backup & Restore

•Backup Types:
•Offline (cold)
•Online (hot)
•Incremental / Delta
•Commands:
•BACKUP DATABASE
•RESTORE DATABASE
•ROLLFORWARD DATABASE
•Best Practices:
•Automate backups
•Store offsite copies
•Test restores regularly
Monitoring &
Performance Tuning
•Tools:
•db2pd, db2top, MON_GET_*
•Key Metrics:
•Bufferpool hit ratio
•Lock waits and deadlocks
•Sort overflows
•SQL Tuning:
•EXPLAIN, db2advis
•Index analysis
•Package cache monitoring
Security & Access
Control
•Authentication:
•OS, LDAP, Kerberos
•Authorization:
•Roles, groups, privileges
•Object-Level Security:
•GRANT/REVOKE
High Availability &
HADR
•HADR Overview:
•Primary and standby databases
•Log shipping and replay
•Sync Modes:
•SYNC, NEARSYNC, ASYNC
•Commands:
•START HADR, TAKEOVER HADR
•Automation:
•TSA or Pacemaker
Maintenance &
Housekeeping
•RUNSTATS: Updates optimizer stats
•REORG: Reclaims space, improves access
•db2look: Extracts DDL
•db2move: Moves data between databases
•Health Monitoring:
•db2diag.log, db2hc
Q&A

•Questions?
•Discussion and feedback
Why Choose IBM Db2?

Feature IBM Db2 Oracle MSSQL PostgreSQL

High licensing, Moderate, feature-based Free, but lacks


Cost Efficiency Lower TCO, features included
modular pricing tiers enterprise tools

Unified OLTP + OLAP, BLU High, but tuning- Strong OLTP, limited Good, but lacks in-
Performance
acceleration intensive OLAP memory engine

LBAC, row/column control built- Enterprise-only AD integration, limited


Security Relies on extensions
in features granularity

Oracle Cloud Fully portable, DIY


Cloud Flexibility Cloud-agnostic, hybrid-ready Azure-optimized
preferred management

Oracle
Native PL/SQL support Native
Compatibility

Tooling & Advanced CLI, GUI, self-tuning Basic, community-


Rich but complex GUI-focused (SSMS)
Automation memory driven
Links to learn DB2

• DB2 Introduction – for Beginners


• DB2 LUW: Foundation Course - TECH
CHAMPION – Foundation Course
• Db2 for Linux, UNIX and Windows - IBM
Documentation – Complete IBM
doumenation for DB2

You might also like