Professional Documents
Culture Documents
Raul F. Chong
IBM Toronto Laboratory
Agenda
Introduction
Control Center
Command Editor
Command Window / CLP
Task Center
Journal
Health Center
Scripting
2
Agenda
Introduction
Control Center
Command Editor
Command Window / CLP
Task Center
Journal
Health Center
Scripting
3
DB2:
The big
Picture
SQL/XML, Xquery
Statements
create bufferpool
create tablespace
create table
alter bufferpool
alter tablespace
alter table
select
insert
update
delete
...
DB2 System Commands
db2set
db2start
db2stop
db2ilist
db2icrt
db2idrop
...
DB2 CLP Commands
db2 update dbm cfg
catalog db
list node directory
create database
list applications
list tablespaces
...
<sql statement>
xquery <
>
DB2 Tools
Command Line Tools
Command Editor
Command Line Processor
Command Window
Development Tools
DB2 Developer Workbench
Project Deployment Tool
General Administration Tools
Control Center
Journal
License Center
Replication Center
Task Center
DB2 Environment
Instance 'myinst'
Database Manager
Configuration
File (dbm cfg)
Database MYDB1
Database
Configuration
File (db cfg)
Information
Information Center
Check for DB2 Updates
Monitoring Tools
Event Analyzer
Health Center
Indoubt Transaction Manager
Memory Visualizer
Activity Monitor
Port
Setup Tools
Configuration Assistant
Configure DB2 .Net Data Provider
Default DB2 Selection Wizard
First Steps
Register Visual Studio Add-ins
4
DB2 Tools
Start Programs IBM DB2 ...
Agenda
Introduction
Control Center
Command Editor
Command Window / CLP
Task Center
Journal
Health Center
Scripting
6
Control Center
The main DB2 administration tool
The Control Center allows you to:
create, modify and manage databases
Manage database objects (tables, indexes, etc.)
Launch the other GUI tools
Control Center
Object Tree
Pane
Object Listing
Pane
Object Details
Pane
10
Note the
Additional
Database
Objects
12
Agenda
Introduction
Control Center
Command Editor
Command Window / CLP
Task Center
Journal
Health Center
Scripting
13
Command Editor
Using Command Editor, you can execute DB2 commands and SQL, analyze
the execution plan of an SQL statement, and view/update query result sets
You can launch Command Editor several ways:
As a standalone application
START -> PROGRAMS -> IBM DB2 -> COMMAND LINE TOOLS ->
COMMAND EDITOR
From the Control Center, click the Command Editor icon on the Control Center
Toolbar
14
Back to Control
Center view
Input area
Command Editor
view selected
Add a database
connection
Database currently
connected to
Output area
Character used to
delimit the end of a
SQL statement or
DB2 command
15
Select a database
configured on the system
Check this box to use
the ID and password
of user currently
logged in to the
operating system
16
Generates an access
plan without running the
command (more on this
later)
17
18
Sections of the
SQL Query.
The query
constructed so far.
19
20
21
To be continued
Please see Part 2 of 2 of
this lesson
22