0% found this document useful (0 votes)
51 views

Useful DB2 Commands: Command Description

This document provides a list of useful DB2 commands and their descriptions. It was created by JITHIN MOOLIYIL on July 12, 2013 and last modified on August 14, 2014. The document lists over 20 commands for starting and stopping the database, establishing connections, viewing configuration parameters, backup and restore, and more.

Uploaded by

Krishan Ranghar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views

Useful DB2 Commands: Command Description

This document provides a list of useful DB2 commands and their descriptions. It was created by JITHIN MOOLIYIL on July 12, 2013 and last modified on August 14, 2014. The document lists over 20 commands for starting and stopping the database, establishing connections, viewing configuration parameters, backup and restore, and more.

Uploaded by

Krishan Ranghar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

10/2/2015

UsefulDB2Commands|SCN

Version2

UsefulDB2Commands
createdbyJITHINMOOLIYILonJul12,20136:26AM,lastmodifiedbyJITHINMOOLIYILonAug14,20149:48AM

Share

Tweet

Command

Description

db2cmd

OpenDB2CommandlineTool

db2cc

OpenDB2ControlCentre

db2start

StartDatabaseNormaly

db2stop

StopDatabaseNormaly

db2stopforce

StopDatabaseforcely

db2forceapplicationall

CloseallapplicationsthatusesDB2Database.

db2level

DisplayDB2versionandfixpacklevel

db6level

DisplayDB2ClientVersion

db2terminate

Closethedatabaseconnection

db2_killall

Killahangedinstance

db2licml

Viewlicenseinformation

db2connectto<db2sid>

Establishconnectiontoaninstance

db2listtablespacesshowdetail

Displaystablespaceinformation

db2getdbmcfg

Displayconfigurationparameterofdatabasemanager.

db2getdbcfgfor<db2sid>

Displayconfigurationparameterofaninstance

db2updatedbmcfgusing<parameter_name><newvalue>

Changevalueofadatabasemanagerconfiguration
parameter.

db2updatedbcfgfor<db2sid>using<parameter_name>
<newvalue>

Changevalueofainstanceconfigurationparameter.

db2dropdatabase<targetdb2sid>

Deleteandinstance

db2activatedb<dbsid>

ActivateDatabase

db2deactivate<dbsid>

Deactivateanactivedatabase

db2rollforwarddb<SID>toendoflogs

Applyallpendinglogs

db2rollforwarddb<db2sid>querystatus

Displayrollforwardstatus

db2backupdatabase<sid>to"disk:\location"

Takeanofflinebackuptospecifiedlocation

db2listutilitiesshowdetail

DisplayDatabasebackupstatus

db2restoredb<sid>fromdisk:\pathreplacehistoryfile

Restoredatabasefromabackupimage

29333Views

data:text/htmlcharset=utf8,%3Cheader%20style%3D%22display%3A%20block%3B%20marginbottom%3A%2025px%3B%20lineheight%3A%202.2em%3B

1/1

You might also like