Documente Academic
Documente Profesional
Documente Cultură
Information Management
Abstract
A significant part of IBM Data Studio is the set of
administration functions that are used by application
and system DBAs. These functions include
query/workload tuning, automating routine data
maintenance, proactive monitoring, and mapping of
problem applications - all the way back to the line
number of the application that generated the database
request. Learn how the cost of database
administration can be significantly reduced by this tool
set that integrates the life cycle of the data. This
presentation will introduce current capabilities as well
as discuss future directions.
2
Information Management
Data Definitions
and Relationships
Stored Procedures
Database
Developer
Logical Data
Models
Synchronize &
Collaborate
Database
Servers
Data
Architect
Database
Administrator
Eclipse
Java
.NET
Application
Developer
Performance
Availability
Maintenance
Physical Change
Management
Object Models
and
Applications
Compliance
Security
Administrator
2008 IBM Corporation
Information Management
Information Management
Model
Relate
Refine
Develop
Design
Code
Debug
Test
Tune
Govern
Manage
Plan
Monitor
Maintain
Optimize
Deploy
Secure
Retain
Retire
Audit
Install
Configure
Alter
Change-control
Information Management
Data
Modeling
Application
Development
Database
Development
Database
Administration
Logical
Modeling
Data Access:
Stored Procedures
Configuration
Java objects
SQL
Physical
Modeling
Web services
XQuery
Performance
Management
Web 2.0
User Defined
Functions
Integration
Modeling
Enterprise
Architect
Change
Management
Availability
Management
Tivoli
Service
Management
Platform
Systems
Administrator
Network
Administrator
Compliance
Administrator
Application
Developer
Data
Architect
Database
Developer
Data
Governance
Data
Steward
Database
Administrator
Information Management
Today
Powerful Life Cycle Tools, Emerging Integration
Data
Modeling
Rational Data
Architect
Application
Development
Database
Development
Database
Administration
Data
Governance
Data Studio
Developer
Data Studio
Developer
Data Studio
(Console)
Data Studio
(Console)
DB2 Change
Management Expert
OMEGAMON Perf
Expert
Database
Encryption
Data
Architect
Application
Developer
Database
Developer
Database
Administrator
Data Steward
Design
Develop
Deploy
Manage
Govern
Information Management
now
IBM Data Studio V1.1.1 for Windows and Linux
Integrated Query Editor SQL + XQuery
SQLJ Editor
SQL Builder
XQuery Builder
SQL Routine Debugger
Java Routine Debugger
XML Editor
XML Schema Editor
Data Management
Visual Explain
Project Management
ER Diagramming
Data Distribution Viewer
Object Management
Browse & Update Statistics
Security Access Control
Connection Management integration with Kerberos and LDAP
Data Web Services
IDS Server Support
pureQuery for Java*
Administration Console (DSAC) V1.1.2 for DB2 for LUW 9.5
2008 IBM Corporation
Information Management
Information Management
10
Information Management
Information Management
Information Management
Information Management
Query Management
Query Builder
Quickly build and test SQL graphically using the SQL Builder
14
Information Management
Information Management
Information Management
Schema Management
Data Object Editors
Database Explorer
Buffer Pools
Groups
Partition
Groups
Remote
Servers
Roles
Schemas
Aliases
Dependencies
Federated SPs
MQTs
Nicknames
Packages
Sequences
Stored
Procedures
Tables
UDFs
UDTs
Views
XML Schemas
Table Spaces
Users
Object Editors
Object Properties
Information Management
Data Management
Edit, Load, Extract, Browse, Update Statistics
Edit Data
Browse Data
18
Information Management
Data Management
Data Distribution Editor
Information Management
Privileges
By User
Manage
Roles
Privileges
By Object
Information Management
XQuery
Stored procedures
Simplified creation of Web services
interfaces to your data server
Customizable data format
Assembles a ready-to-deploy solution
Integrated deploy and test tools
Support for SOAP and REST bindings
Support for all DB2 platforms and IDS
Information Management
Information Management
23
oad
l
n
ow
da
it to
y!
Information Management
Information Management
25
Information Management
All standard SQL supported including queries, updates, DDL, CALL statements
import com.acme.Customer;
Connection con = DriverManager.getConnection();
Data db = DataFactory.getData(con);
Customer c;
int region = 123;
public Customer {
public
Customer
{ custId;
@Id public
Integer
@Id
public
Integer
public String name; custId;
publicString
StringaddressL1;
name;
public
public
String
addressL1;
public String city;
public
String
city;
@Column(name="REGION")
@Column(name="REGION")
public Integer storeRegion;
... public Integer storeRegion;
} ...
}
Iterator<Customer> customers =
db.queryIterator("SELECT custId, name FROM Customer WHERE region=?1",
Customer.class, region);
while (customers.hasNext()){
c = customers.next();
System.out.println(c.custId+" "+c.name);
}
((ResultIterator) customers).close(); // best practice
26
Information Management
JPA API
pureQuery API
iBatis
Spring
SQLJ
JPA Runtime
pureQuery Runtime
High Speed API
JDBC w/pureQuery
27
SQL profiling
Ability to statically bind SQL
statements (with pureQuery
Runtime product)
2008 IBM Corporation
Information Management
Web
Server
Persistence Layer
Business Logic
28
DB2
Server
Application
Server
JDBC
Package
Information Management
29
DB
Server
DBA
DB Java Driver
Persistence Layer
System
Programmer
WebSphere
Connection
Pool
Business
Logic
1
Application
Server
JDBC
Package
Information Management
Typical Customer
Pain
Points
DBA has
no control
or visibility
into how the WebSphere
connection pool is configured
Application
Server
DB Java Driver
30
Persistence Layer
JPAQL
3
2
WebSphere
Connection
Pool
Business
Logic
1
SQL
DB
Server
JDBC
Connections
Information Management
Profiling
Database Administrator
pureQuery
Access path
Cost estimates
Tuning advice
DRDA
Extentions
31
Information Management
A6
A5
32
A2
Persistence Layer
A3
A4
A1
DB2 or IDS
App CPU
A1
2.1
A4
8.3
A5 22.0
A1
A4
Application
Meta data
A5
A1
A2
A3
A4
A5
A6
A2
A3
A4
A5
A6
Information Management
A performance manager
A query tuner
A high performance unload
A recovery manager
33
Information Management
34
Support for all IBM data servers IDS and DB2 on all platforms (DB2 for z/OS in June 2008)
The future home for commonly performed operational database management functions
Performance Management, Workload Analysis
Query Tuning, Utility Management
Configuration Management, Storage Management,
2008 IBM Corporation
Information Management
Administration Console
Health Monitoring
Problem
Determination
Dashboard Adhoc Investigation
35
Information Management
Administration Console
Health Monitoring
Overall Health Status
Locking
Database Storage
Recovery
System
Logging
Monitor Status
36
The Heat
Chart
Information Management
Administration Console
Health Monitoring
Adhoc Investigation
Locking
Transaction Activity
Transaction rate
Failed transaction rate
Number of in doubt transactions
I/O Activity
Data Volume
I/O Volume
Connections
Number of connections
High-water-mark of connection
System
CPU load %
Used / Free real memory
Used / Free virtual memory
Used / Free swap memory
Logging
Logging volume
Recovery
37
The Dashboard
Information Management
Administration Console
Health Monitoring
Historical
Analysis
Locking
Application
Database
Storage
Recovery
System
Logging
Monitor Status
Data Server
Status
38
The Alert
List
Information Management
Administration Console
Health Monitoring
Recommendations
39
Information Management
Administration Console
Q Replication Dashboard
Show a health summary for all important objects
40
Information Management
41
oad
l
n
ow
da
it to
y!
Information Management
Configuration management
Task-oriented management
Automated maintenance / integrated calendaring
Profile setting
Exception-based maintenance
42
Information Management
Web UI
Object and
Command
Centric
Administration
Schedule&
Plan
Utils&
Commands
Automation
Dev
DBA/DEV/Arch
Operations
Oriented
Administration
DBA/management
Monitoring
Health
Performance
Autonomic
Function
Automation Mgt
Workflow
Battle Plan
Schedule/
Calendar
43
Reporting
Information Management
A performance manager
Problem determination and analysis for all aspects of accessing database
Application Monitoring
Engine Monitoring
Integrated OS monitoring
Path to Tivoli System Monitoring Agent
SQL Heavy hitter identification
SQL tracing
End-to-end performance monitoring with WebSphere access to DB2 metrics
Top-n metrics to help DBA focus on the heavy-hitters
Web-based user interface, integrated with health and availability monitoring
(DSAC)
44
Information Management
45
Information Management
46
Information Management
A query tuner
Query Annotation and transformation
Access plan graph / Visual Explain
Query Reports
Visual plan hint and lockdown
Query Advisor
Index Advisor
Statistics Advisor
Access path Advisor
47
Information Management
Query Advisor
Re-write
advice and
details
48
Information Management
Query Annotation
Original /
Transformed
query
Formatted Query
49
Query Annotation
(Catalog stats, cost
estimation)
Information Management
Stats Advisor
Annotation showed
missing stats
Stats Advisor tells what
stats to collect
Run the commands or
Save them for later
50
Information Management
Index Advisor
Recommendations
DDL to create
the new index
statement
51
Information Management
Type of scan
52
Information Management
A query tuner
Query Annotation and transformation
Access plan graph / Visual Explain
Query Reports
Visual plan hint and lockdown
Query Advisor
Index Advisor
Statistics Advisor
Access path Advisor
53
Information Management
High
Performance
Unload
HPU will
access tables
directly
HPU (not the
DBMS) will
translate the SQL.
Database
Manager
54
DBMS
Tsps/backup
2008 IBM Corporation
Information Management
Analyzes all possible recovery paths for a version and attaches a relative cost to
each
Recommends the least cost recovery path while allowing other paths to be
chosen
Recovery paths include
Traditional restore and log apply (forward recovery)
Generating undo operations (backward recovery)
Manage recovery via policies: Recovery Policy Insure that I can recover an
application (set of DBMS objects) within twenty minutes to any point in time in the
last week. {Supersedes the need for a backup policy}
55
Information Management
A performance manager
OMEGAMON for DB2 (and DB2 PE for MP)
A query tuner
DB2 Optimization Expert for z/OS
A recovery manager
DB2 Recovery Expert
56
Information Management
57
Information Management
Downloads
IBM Data Studio
IBM Data Studio
Administration Console
Community
developerWorks
forums
zone and space
articles
tutorials
Documentation
Support
58
Information Management
59