The DB2 System Commands | Database Journal

The DB2 System Commands

Apr 11, 2003
3 minute read

Beside the standard Command Line Processor Commands (CLP), DB2 is
enhanced with full set of system commands. DB2 system commands are used to
access and maintain the DB2 database and can be entered from the OS command
line, or can be used in a shell script. Set of commands depends on the version
and packaging models (Standard, EE or EEE) installed on the machine. Every new
DB2 version extends the existing set of the commands; in version 7.2 DB2 UDB
EEE there is already 87 such commands. A DBA has a chance to be familiar with
some of these commands only if he has a problem and needs to use some of them.
More over, there is a slight difference in command sets between platforms.

In this article I will explain some of the special DB2 system
commands.

This article covers:

  • DB2
    System Commands Overview
  • db2ptree
    – Show DB2 Process Tree for Sun Solaris
  • db2empfa
    – Enable Multi-page File Allocation
  • db2gov
    – DB2 Governor
  • db2osconf
    – DB2 Operating System Configuration
  • Conclusion

DB2 System Commands
Overview

All DB2 system commands are installed in the sqllib/bin directory
by the installation procedure. Most commands have interactive help so simply
typing the command will generate a listing of all possible command switches.

Database version 7.1 with Fixpack 7 has 87 different db2
system commands including "db2_" system commands for control of
multipartitioned database.


>> db2level
DB21085I  Instance “db2udb1” uses DB2 code release “SQL07025” with level identifier “03060105” and
informational tokens “DB2 v7.1.0.68”, “s020616” and “U484483”
>> ls sqllib/bin/db2* | wc -l
      87

Here is standard set of the system commands for DB2
version 7:

NumberSystem CommandExplanation
1Db2adminDB2 Administration Server
2db2adutlWork with TSM Archived Images
3db2advisDB2 Index Advisor
4db2auditAudit Facility Administrator Tool
5db2atldAutoload
6db2batchBenchmark Tool
7db2bfdBind File Description Tool
8db2capCLI/ODBC Static Package Binding
Tool
9db2ccStart Control Center
10db2cdbcrCreate Control Database for Data
Warehouse
11db2cfexpConnectivity Configuration Export
Tool
12db2cfimpConnectivity Configuration Import
Tool
13db2cidmgRemote Database Migration Tool
14db2ckbkpCheck Backup
15db2ckmigDatabase Pre-migration Tool
16db2ckrstCheck Incremental Restore Image
Sequence
17db2cliDB2 Interactive CLI
18db2cmdOpen DB2 Command Window
19db2dclgnDeclaration Generator
20db2drdatDRDA Trace
21db2empfaEnable Multi-page File Allocation
22db2evaEvent Analyzer
23db2evmonEvent Monitor Productivity Tool
24db2exfmtExplain Table Format Tool
25db2explnDB2 SQL Explain Tool
26db2flsnFind Log Sequence Number
27db2fsFirst Steps
28db2gncolUpdate Generated Column Values
29db2govDB2 Governor
30db2govlgDB2 Governor Log Query
31db2icrtCreate Instance
32db2idropRemove Instance
33db2ilistList Instances
34db2imigrMigrate Instance
35db2inidbInitialize a Mirrored Database
36db2ipxadGet IPX/SPX Internetwork Address
37db2iupdtUpdate Instances
38db2ldcfgConfigure LDAP Environment
39db2licmLicense Management Tool
40db2lookDB2 Statistics and DDL Extraction
Tool
41db2moveDatabase Movement Tool
42db2mscsSet up Windows NT Failover Utility
43db2nchgChange Database Partition Server
Configuration
44db2ncrtAdd Database Partition Server to
an Instance
45db2ndropDrop Database Partition Server
from an Instance
46db2perfcReset Database Performance Values
47db2perfiPerformance Counters Registration
Utility
48db2perfrPerformance Monitor Registration
Tool
49db2profcDB2 SQLJ Profile Customizer
50db2profpDB2 SQLJ Profile Printer
51db2rbindRebind all Packages
52Db2relocatedbRelocate Database
53db2samplCreate Sample Database
54db2setDB2 Profile Registry Command
55db2sql92SQL92 Compliant SQL Statement
Processor
56db2startStart DB2
57db2stopStop DB2
58db2supportProblem Analysis and Environment
Collection Tool
59db2syncStart DB2 Synchronizer
60db2tbstGet Tablespace State
61db2trcTrace
62db2uiddlPrepare Unique Index Conversion to
V5 Semantics
63db2untagRelease Container Tag
Advertisement

Version 8.1 has more system commands and the DBA should
regularly check /sqllib/bin directory after installation for the new stuff.

MK

Marin was born June 27, 1968 in Zagreb, Croatia. He graduated in 1993 form The Faculty for Electrotechnology and Computer Sciences, University of Zagreb in Croatia. He started his professional career as a System specialist and DBA for the Croatian company Informatika System. His most important project was the development and implementation of the enterprise, distributed point of sales solution, based on the Oracle technology. In 1999, Marin became the company CTO, where he played an active role in company development and technical orientation. After Informatika System, Marin worked as an IT Manager Assistant for the Austrian international retail company "Segro," on location in Graz (Austria) and Zagreb (Croatia). He was responsible for the company's technical infrastructure and operational support. Segro used IBM technology, OS/400 operating system and DB2 database. In 1998, Marin joined the international telecommunication company VIPNet GSM that was a part of greater concern, Mobilkom Austria& Western Wireless Int. USA. After one year, Marin took over the IT System Manager position, where he managed many multi-platform, telecommunication projects and was leading the IT system department. In 2001, Marin started to work in Germany as a senior system architect. He is currently working for German banks on different banking projects.

Database Journal Logo

DatabaseJournal.com publishes relevant, up-to-date and pragmatic articles on the use of database hardware and management tools and serves as a forum for professional knowledge about proprietary, open source and cloud-based databases--foundational technology for all IT systems. We publish insightful articles about new products, best practices and trends; readers help each other out on various database questions and problems. Database management systems (DBMS) and database security processes are also key areas of focus at DatabaseJournal.com.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.