SlideShare a Scribd company logo
© 2003 IBM Corporation
Introduction to DB2
Utilities
Mmanish kumar
Rajarshi Das / S.N.
Moitra
Santosh Patel
28th June 2017
DB2 Command
© 2003 IBM Corporation
DB2 ZOS Commands are user to execute database administration functions. Db2
Supports several different types of commands –
• The DSN commands and its subcommands -
DSN is the DB2 command processor and executes as a
TSO command processor.
• DB2 Commands –
You can use DB2 commands to control most of the
operational environment.
• IMS Commands –
You can use IMS commands to control IMS connections
as well as to start and stop connections to DB2 and
display activity on the connections.
• CICS Attachment facility commands
You can use CICS commands to control CICS
connections as well as to start and stop connections to
DB2 and display activity on the connections.
The DSN command and its subcommands
© 2003 IBM Corporation
Environment: All of the DSN subcommands, except SPUFI, run under DSN in
either the foreground or background, and all, except END, also run under DB2
Interactive (DB2I). SPUFI runs only in the foreground under ISPF.
BIND PACKAGE (DSN) The DSN subcommand BIND PACKAGE builds an
application package. DB2 records the description of the
package in the catalog tables and saves the prepared
package in the directory.
BIND PLAN (DSN) The DSN subcommand BIND PLAN builds an application
plan. All DB2 programs require an application plan to
allocate DB2 resources and support SQL requests made at
run time.
DSN (TSO) The TSO command DSN starts a DSN session.
END (DSN) The DSN subcommand END is used to end the DSN
session and return to TSO.
DB2 commands
© 2003 IBM Corporation
Environment: The command START DB2 can be issued only from a z/OS
console.
All other DB2 commands can be issued from the following environments:
• A z/OS console or application program
• A DSN session
• A DB2I panel
• An IMS terminal
• A CICS terminal
• An application program, using the DB2 instrumentation facility interface
(IFI)
DB2 commands that are issued from a logged-on z/OS console or TSO
SDSF can
be checked by DB2 authorization using primary and secondary authorization
IDs.
DB2 command parsing
© 2003 IBM Corporation
All of the DB2 and related commands have a similar structure that is
necessary to execute valid commands.
The following figure illustrates the pattern of DB2 commands.
-DISPLAY DATABASE(J64DBASE),SPACENAM(PROJ32)
Recognition character - (-)
Command -- DISPLAY
Primary keyword-- DATABASE
Value - J64DBASE
Value -- PROJ32
Keyword - SPACENAM
Separators -- (,)
Scope of DB2 and related
commands
All commands have one of the following scopes:
Member or Local
Many commands used in a data sharing environment have member (or
local) scope because they affect only the DB2 subsystem for which they are
issued. For example, a CANCEL THREAD command cancels the specified
threads for the member that is identified by the command prefix.
Group
Other commands have group scope because they affect an object in such a
Way that affects all members of the group. For example, a STOP
DATABASE command issued from any member of the group stops that
database for all members of the group.
© 2003 IBM Corporation
Scope of DB2 Commands Cont..-
© 2003 IBM Corporation
The following commands have group scope:
ALTER GROUPBUFFERPOOL (DB2)
BIND PACKAGE (DSN)
BIND PLAN (DSN)
DCLGEN (DSN)
DISPLAY DATABASE (DB2)
DISPLAY GROUP (DB2)
DISPLAY GROUPBUFFERPOOL (DB2)
FREE PACKAGE (DSN)
FREE PLAN (DSN)
MODIFY irlmproc,DIAG (z/OS IRLM)
REBIND PACKAGE (DSN)
REBIND PLAN (DSN)
REBIND TRIGGER PACKAGE (DSN)
START DATABASE (DB2)
STOP DATABASE (DB2)
© 2003 IBM Corporation
The following commands have either group or member scope, depending on
which options you specify with them:
ARCHIVE LOG (DB2)
DISPLAY FUNCTION SPECIFIC (DB2)
DISPLAY PROCEDURE (DB2)
DISPLAY THREAD (DB2)
DISPLAY TRACE (DB2)
DISPLAY UTILITY (DB2)
MODIFY irlmproc,SET (z/OS IRLM)
MODIFY irlmproc,STATUS (z/OS IRLM)
START FUNCTION SPECIFIC (DB2)
START PROCEDURE (DB2)
START TRACE (DB2)
STOP FUNCTION SPECIFIC (DB2)
STOP PROCEDURE (DB2)
STOP TRACE (DB2)
TERM UTILITY (DB2)
Scope of DB2 Commands Cont …-
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
9
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
10
Login using IBMUSER and SYS1
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
11
How to check – DB2 up and running
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
12
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
13
Select DB9G
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
14
These Jobs shows that Db2 is up and running
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
15
How to execute Db2 Commands
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
16
Check for SSID
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
17
SSID should be DB9G
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
18
Change DB8G to DB9G, hit enter twice
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
19
Now SSID would be DB9G
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
20
DB2 Command Line
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
21
This is DB2 Command Line processor
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
22
Access Command
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
23
Normal Completion
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
24
Non group buffer pool dependent MODE(ngbpdep)
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
25
Alter Bufferpool Command
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
26
Successful Completion
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
27
Alter GBP
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
28
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
29
Archive Log
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
30
Archive Log offload
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
31
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
32
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
33
Display Archive
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
34
Display Archive Log
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
35
Display bufferpool
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
36
Display Bufferpool
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
37
Display * will show all inactive BP as well
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
38
Display GBPOOL
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
39
Only valid for Data sharing
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
40
Display Database
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
41
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
42
Display a particular database
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
43
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
44
Display Claimers Information
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
45
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
46
Display Claimers of a Tablespace
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
47
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
48
Display DDF ( Distributed Data Facilities )
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
49
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
50
Deisplay DDF detailed report
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
51
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
52
Display Function Specific
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
53
Display Group
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
54
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
55
Display Location
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
56
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
57
DISPLAY LOG
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
58
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
59
Display Proc
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
60
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
61
Display Thread
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
62
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
63
Display utility
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
64
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
65
Recover INDOUBT thread
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
66
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
67
Recover Postponed
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
68
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
69
Set Archive
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
70
Set Archive
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
71
Set Log
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
72
Set Log
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
73
Set Sysparm
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
74
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
75
Stop Database
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
76
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
77
Start Database
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
78
Start Database
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
79
Start Db2
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
80
Start Db2
Business Unit or Product Name
Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation
81
Stop Db2
Business Unit or Product Name
Confidential | Date | Other Information, if necessary © 2002 IBM Corporation
© 2003 IBM Corporation
Thank you

More Related Content

Similar to DB2 Commands.ppt

MDI Training DB2 Course
MDI Training DB2 CourseMDI Training DB2 Course
MDI Training DB2 Course
Marcus Davage
 
Ibm db2 10.5 for linux, unix, and windows db2 connect installing and config...
Ibm db2 10.5 for linux, unix, and windows   db2 connect installing and config...Ibm db2 10.5 for linux, unix, and windows   db2 connect installing and config...
Ibm db2 10.5 for linux, unix, and windows db2 connect installing and config...
bupbechanhgmail
 
Diagnose RIDPool Failures
Diagnose RIDPool FailuresDiagnose RIDPool Failures
Diagnose RIDPool Failures
Cuneyt Goksu
 
Icetool
IcetoolIcetool
Icetool
ballalsachin
 
Db2
Db2Db2
Db2
yboren
 
JCL ICETOOL
JCL ICETOOLJCL ICETOOL
JCL ICETOOL
Nirmal Pati
 
DB2UDB_the_Basics Day 7
DB2UDB_the_Basics Day 7DB2UDB_the_Basics Day 7
DB2UDB_the_Basics Day 7
Pranav Prakash
 
System z Technology Summit Streamlining Utilities
System z Technology Summit Streamlining UtilitiesSystem z Technology Summit Streamlining Utilities
System z Technology Summit Streamlining Utilities
Surekha Parekh
 
MAINVIEW for DB2.ppt
MAINVIEW for DB2.pptMAINVIEW for DB2.ppt
MAINVIEW for DB2.ppt
Sreedhar Ambatipudi
 
Gaining Insight into
Gaining Insight intoGaining Insight into
Gaining Insight into
Cuneyt Goksu
 
Stephan Hummel – IT-Tage 2015 – DB2 In-Memory - Eine Technologie nicht nur fü...
Stephan Hummel – IT-Tage 2015 – DB2 In-Memory - Eine Technologie nicht nur fü...Stephan Hummel – IT-Tage 2015 – DB2 In-Memory - Eine Technologie nicht nur fü...
Stephan Hummel – IT-Tage 2015 – DB2 In-Memory - Eine Technologie nicht nur fü...
Informatik Aktuell
 
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS  by  Namik Hrle ...Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS  by  Namik Hrle ...
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...
Surekha Parekh
 
Ibm db2 10.5 for linux, unix, and windows installing ibm data server clients
Ibm db2 10.5 for linux, unix, and windows   installing ibm data server clientsIbm db2 10.5 for linux, unix, and windows   installing ibm data server clients
Ibm db2 10.5 for linux, unix, and windows installing ibm data server clients
bupbechanhgmail
 
1) planning
1) planning1) planning
1) planning
guptavikki99
 
Introduction to z/OS
Introduction to z/OSIntroduction to z/OS
Introduction to z/OS
NicholasVanHaiVu
 
Track 2 session 4 db2 for z os optimizer- what’s new in db2 11 and exploiti...
Track 2 session 4   db2 for z os optimizer- what’s new in db2 11 and exploiti...Track 2 session 4   db2 for z os optimizer- what’s new in db2 11 and exploiti...
Track 2 session 4 db2 for z os optimizer- what’s new in db2 11 and exploiti...
IBMSystemzEvents
 
DB2 Real-Time Analytics Meeting Wayne, PA 2015 - IDAA & DB2 Tools Update
DB2 Real-Time Analytics Meeting Wayne, PA 2015 - IDAA & DB2 Tools UpdateDB2 Real-Time Analytics Meeting Wayne, PA 2015 - IDAA & DB2 Tools Update
DB2 Real-Time Analytics Meeting Wayne, PA 2015 - IDAA & DB2 Tools Update
Baha Majid
 
Jcl
JclJcl
Jcl
shivas
 
Ims13 ims tools ims v13 migration workshop - IMS UG May 2014 Sydney & Melbo...
Ims13   ims tools ims v13 migration workshop - IMS UG May 2014 Sydney & Melbo...Ims13   ims tools ims v13 migration workshop - IMS UG May 2014 Sydney & Melbo...
Ims13 ims tools ims v13 migration workshop - IMS UG May 2014 Sydney & Melbo...
Robert Hain
 

Similar to DB2 Commands.ppt (19)

MDI Training DB2 Course
MDI Training DB2 CourseMDI Training DB2 Course
MDI Training DB2 Course
 
Ibm db2 10.5 for linux, unix, and windows db2 connect installing and config...
Ibm db2 10.5 for linux, unix, and windows   db2 connect installing and config...Ibm db2 10.5 for linux, unix, and windows   db2 connect installing and config...
Ibm db2 10.5 for linux, unix, and windows db2 connect installing and config...
 
Diagnose RIDPool Failures
Diagnose RIDPool FailuresDiagnose RIDPool Failures
Diagnose RIDPool Failures
 
Icetool
IcetoolIcetool
Icetool
 
Db2
Db2Db2
Db2
 
JCL ICETOOL
JCL ICETOOLJCL ICETOOL
JCL ICETOOL
 
DB2UDB_the_Basics Day 7
DB2UDB_the_Basics Day 7DB2UDB_the_Basics Day 7
DB2UDB_the_Basics Day 7
 
System z Technology Summit Streamlining Utilities
System z Technology Summit Streamlining UtilitiesSystem z Technology Summit Streamlining Utilities
System z Technology Summit Streamlining Utilities
 
MAINVIEW for DB2.ppt
MAINVIEW for DB2.pptMAINVIEW for DB2.ppt
MAINVIEW for DB2.ppt
 
Gaining Insight into
Gaining Insight intoGaining Insight into
Gaining Insight into
 
Stephan Hummel – IT-Tage 2015 – DB2 In-Memory - Eine Technologie nicht nur fü...
Stephan Hummel – IT-Tage 2015 – DB2 In-Memory - Eine Technologie nicht nur fü...Stephan Hummel – IT-Tage 2015 – DB2 In-Memory - Eine Technologie nicht nur fü...
Stephan Hummel – IT-Tage 2015 – DB2 In-Memory - Eine Technologie nicht nur fü...
 
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS  by  Namik Hrle ...Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS  by  Namik Hrle ...
Efficient Monitoring & Tuning of Dynamic SQL in DB2 for z/OS by Namik Hrle ...
 
Ibm db2 10.5 for linux, unix, and windows installing ibm data server clients
Ibm db2 10.5 for linux, unix, and windows   installing ibm data server clientsIbm db2 10.5 for linux, unix, and windows   installing ibm data server clients
Ibm db2 10.5 for linux, unix, and windows installing ibm data server clients
 
1) planning
1) planning1) planning
1) planning
 
Introduction to z/OS
Introduction to z/OSIntroduction to z/OS
Introduction to z/OS
 
Track 2 session 4 db2 for z os optimizer- what’s new in db2 11 and exploiti...
Track 2 session 4   db2 for z os optimizer- what’s new in db2 11 and exploiti...Track 2 session 4   db2 for z os optimizer- what’s new in db2 11 and exploiti...
Track 2 session 4 db2 for z os optimizer- what’s new in db2 11 and exploiti...
 
DB2 Real-Time Analytics Meeting Wayne, PA 2015 - IDAA & DB2 Tools Update
DB2 Real-Time Analytics Meeting Wayne, PA 2015 - IDAA & DB2 Tools UpdateDB2 Real-Time Analytics Meeting Wayne, PA 2015 - IDAA & DB2 Tools Update
DB2 Real-Time Analytics Meeting Wayne, PA 2015 - IDAA & DB2 Tools Update
 
Jcl
JclJcl
Jcl
 
Ims13 ims tools ims v13 migration workshop - IMS UG May 2014 Sydney & Melbo...
Ims13   ims tools ims v13 migration workshop - IMS UG May 2014 Sydney & Melbo...Ims13   ims tools ims v13 migration workshop - IMS UG May 2014 Sydney & Melbo...
Ims13 ims tools ims v13 migration workshop - IMS UG May 2014 Sydney & Melbo...
 

Recently uploaded

一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
AndrzejJarynowski
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
manishkhaire30
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Kiwi Creative
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
Lars Albertsson
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
bopyb
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
Sachin Paul
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
nuttdpt
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
Social Samosa
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
Walaa Eldin Moustafa
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
GetInData
 
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
v7oacc3l
 
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
74nqk8xf
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
slg6lamcq
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
nyfuhyz
 

Recently uploaded (20)

一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
 
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
 
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
 

DB2 Commands.ppt

  • 1. © 2003 IBM Corporation Introduction to DB2 Utilities Mmanish kumar Rajarshi Das / S.N. Moitra Santosh Patel 28th June 2017
  • 2. DB2 Command © 2003 IBM Corporation DB2 ZOS Commands are user to execute database administration functions. Db2 Supports several different types of commands – • The DSN commands and its subcommands - DSN is the DB2 command processor and executes as a TSO command processor. • DB2 Commands – You can use DB2 commands to control most of the operational environment. • IMS Commands – You can use IMS commands to control IMS connections as well as to start and stop connections to DB2 and display activity on the connections. • CICS Attachment facility commands You can use CICS commands to control CICS connections as well as to start and stop connections to DB2 and display activity on the connections.
  • 3. The DSN command and its subcommands © 2003 IBM Corporation Environment: All of the DSN subcommands, except SPUFI, run under DSN in either the foreground or background, and all, except END, also run under DB2 Interactive (DB2I). SPUFI runs only in the foreground under ISPF. BIND PACKAGE (DSN) The DSN subcommand BIND PACKAGE builds an application package. DB2 records the description of the package in the catalog tables and saves the prepared package in the directory. BIND PLAN (DSN) The DSN subcommand BIND PLAN builds an application plan. All DB2 programs require an application plan to allocate DB2 resources and support SQL requests made at run time. DSN (TSO) The TSO command DSN starts a DSN session. END (DSN) The DSN subcommand END is used to end the DSN session and return to TSO.
  • 4. DB2 commands © 2003 IBM Corporation Environment: The command START DB2 can be issued only from a z/OS console. All other DB2 commands can be issued from the following environments: • A z/OS console or application program • A DSN session • A DB2I panel • An IMS terminal • A CICS terminal • An application program, using the DB2 instrumentation facility interface (IFI) DB2 commands that are issued from a logged-on z/OS console or TSO SDSF can be checked by DB2 authorization using primary and secondary authorization IDs.
  • 5. DB2 command parsing © 2003 IBM Corporation All of the DB2 and related commands have a similar structure that is necessary to execute valid commands. The following figure illustrates the pattern of DB2 commands. -DISPLAY DATABASE(J64DBASE),SPACENAM(PROJ32) Recognition character - (-) Command -- DISPLAY Primary keyword-- DATABASE Value - J64DBASE Value -- PROJ32 Keyword - SPACENAM Separators -- (,)
  • 6. Scope of DB2 and related commands All commands have one of the following scopes: Member or Local Many commands used in a data sharing environment have member (or local) scope because they affect only the DB2 subsystem for which they are issued. For example, a CANCEL THREAD command cancels the specified threads for the member that is identified by the command prefix. Group Other commands have group scope because they affect an object in such a Way that affects all members of the group. For example, a STOP DATABASE command issued from any member of the group stops that database for all members of the group. © 2003 IBM Corporation
  • 7. Scope of DB2 Commands Cont..- © 2003 IBM Corporation The following commands have group scope: ALTER GROUPBUFFERPOOL (DB2) BIND PACKAGE (DSN) BIND PLAN (DSN) DCLGEN (DSN) DISPLAY DATABASE (DB2) DISPLAY GROUP (DB2) DISPLAY GROUPBUFFERPOOL (DB2) FREE PACKAGE (DSN) FREE PLAN (DSN) MODIFY irlmproc,DIAG (z/OS IRLM) REBIND PACKAGE (DSN) REBIND PLAN (DSN) REBIND TRIGGER PACKAGE (DSN) START DATABASE (DB2) STOP DATABASE (DB2)
  • 8. © 2003 IBM Corporation The following commands have either group or member scope, depending on which options you specify with them: ARCHIVE LOG (DB2) DISPLAY FUNCTION SPECIFIC (DB2) DISPLAY PROCEDURE (DB2) DISPLAY THREAD (DB2) DISPLAY TRACE (DB2) DISPLAY UTILITY (DB2) MODIFY irlmproc,SET (z/OS IRLM) MODIFY irlmproc,STATUS (z/OS IRLM) START FUNCTION SPECIFIC (DB2) START PROCEDURE (DB2) START TRACE (DB2) STOP FUNCTION SPECIFIC (DB2) STOP PROCEDURE (DB2) STOP TRACE (DB2) TERM UTILITY (DB2) Scope of DB2 Commands Cont …-
  • 9. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 9
  • 10. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 10 Login using IBMUSER and SYS1
  • 11. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 11 How to check – DB2 up and running
  • 12. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 12
  • 13. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 13 Select DB9G
  • 14. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 14 These Jobs shows that Db2 is up and running
  • 15. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 15 How to execute Db2 Commands
  • 16. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 16 Check for SSID
  • 17. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 17 SSID should be DB9G
  • 18. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 18 Change DB8G to DB9G, hit enter twice
  • 19. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 19 Now SSID would be DB9G
  • 20. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 20 DB2 Command Line
  • 21. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 21 This is DB2 Command Line processor
  • 22. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 22 Access Command
  • 23. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 23 Normal Completion
  • 24. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 24 Non group buffer pool dependent MODE(ngbpdep)
  • 25. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 25 Alter Bufferpool Command
  • 26. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 26 Successful Completion
  • 27. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 27 Alter GBP
  • 28. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 28
  • 29. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 29 Archive Log
  • 30. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 30 Archive Log offload
  • 31. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 31
  • 32. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 32
  • 33. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 33 Display Archive
  • 34. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 34 Display Archive Log
  • 35. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 35 Display bufferpool
  • 36. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 36 Display Bufferpool
  • 37. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 37 Display * will show all inactive BP as well
  • 38. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 38 Display GBPOOL
  • 39. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 39 Only valid for Data sharing
  • 40. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 40 Display Database
  • 41. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 41
  • 42. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 42 Display a particular database
  • 43. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 43
  • 44. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 44 Display Claimers Information
  • 45. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 45
  • 46. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 46 Display Claimers of a Tablespace
  • 47. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 47
  • 48. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 48 Display DDF ( Distributed Data Facilities )
  • 49. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 49
  • 50. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 50 Deisplay DDF detailed report
  • 51. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 51
  • 52. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 52 Display Function Specific
  • 53. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 53 Display Group
  • 54. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 54
  • 55. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 55 Display Location
  • 56. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 56
  • 57. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 57 DISPLAY LOG
  • 58. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 58
  • 59. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 59 Display Proc
  • 60. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 60
  • 61. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 61 Display Thread
  • 62. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 62
  • 63. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 63 Display utility
  • 64. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 64
  • 65. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 65 Recover INDOUBT thread
  • 66. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 66
  • 67. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 67 Recover Postponed
  • 68. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 68
  • 69. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 69 Set Archive
  • 70. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 70 Set Archive
  • 71. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 71 Set Log
  • 72. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 72 Set Log
  • 73. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 73 Set Sysparm
  • 74. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 74
  • 75. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 75 Stop Database
  • 76. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 76
  • 77. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 77 Start Database
  • 78. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 78 Start Database
  • 79. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 79 Start Db2
  • 80. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 80 Start Db2
  • 81. Business Unit or Product Name Presentation Title | Presentation Subtitle | Confidential © 2002 IBM Corporation 81 Stop Db2
  • 82. Business Unit or Product Name Confidential | Date | Other Information, if necessary © 2002 IBM Corporation © 2003 IBM Corporation Thank you