IBM Data Studio Administrative Tooling (Cross-Platform)

29 downloads 7286 Views 5MB Size Report
Data Studio. Developer. Data Studio Change. Manager. Optim Test Data. Management. Optim Data Privacy. Solution. Data Studio. (Console). DB2 Change .
Information Management

IBM Data Studio

Bryan F. Smith [email protected] Information Management

© 2008 IBM Corporation

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

© 2008 IBM Corporation

Information Management

Data Lifecycle Management Database logic

Data Definitions and Relationships

Stored Procedures Database Developer

Logical Data Models

Synchronize & Collaborate Database Servers

Data Architect

Database Administrator

Eclipse Java .NET

Application Developer

3

Performance Availability Maintenance Physical Change Management

Object Models and Applications

Compliance

Security Administrator © 2008 IBM Corporation

Information Management

IBM Data Studio Vision An integrated, modular, data management framework designed to increase organizational productivity and effectiveness while improving the quality of service, cost of ownership, and governance of diverse data, databases, and data-driven applications

It enables organizations to more efficiently and effectively ƒ Respond to emergent, data-intensive business opportunities ƒ Meet business growth demands while driving down total cost of ownership ƒ Meet service level agreements for data-driven applications ƒ Comply with data privacy and data retention regulations ƒ Secure database access in alignment with corporate policies

4

© 2008 IBM Corporation

Information Management

Addressing the Data Lifespan … from Requirements to Retirement

Model Relate Refine

Develop

Design

Code Debug Test Tune

Govern Manage Plan Monitor Maintain Optimize

5

Deploy

Secure Retain Retire Audit

Install Configure Alter Change-control

© 2008 IBM Corporation

Information Management

Enabling Collaboration and Alignment Across Roles Rational Software Delivery Platform Business Analyst

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

6

Database Administrator

Security and Privacy Management Archive and Retention Management Auditing

© 2008 IBM Corporation

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)

Optim Test Data Management

Data Studio Change Manager

DB2 Change Management Expert

Optim Data Privacy Solution

Optim Data Privacy Solution

Optim Test Data Management

DB2 Perf Expert

Optim Data Growth Solution

OMEGAMON Perf Expert

Audit Mgmt Expert

Optim Data Privacy Solution

7

Database Encryption

Data Architect

Application Developer

Database Developer

Database Administrator

Data Steward

Design

Develop

Deploy

Manage

Govern

© 2008 IBM Corporation

Information Management

DB2 Developer Workbench vs. Data Studio Complimentary Base and Data Studio Developer before IBM DB2 Developer Workbench V9.1 ƒ SQL Query Editor ƒ SQLJ Editor ƒ SQL Builder ƒ XQuery Builder ƒ SQL Routine Debugger ƒ Java Routine Debugger ƒ XML Editor ƒ XML Schema Editor ƒ Data Management ƒ Visual Explain ƒ Project Management

Data Studio is a full replacement of DB2 Developer Workbench plus much more • DB2 for Linux, Unix, Windows v8.x, v9.1.x, v9.5 • DB2 for z/OS v7, v8, v9 • DB2 for i5/OS v5r2, v5r3, v5r4 • Informix Dynamic Server (IDS) v9.x, v10.x, v11

8

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

Data Studio: Data Modeling / Application Dev / Database Dev A Consistent and Productive work environment

9

© 2008 IBM Corporation

Information Management

IBM Data Studio Project Explorer

Teaming options to share projects

10

© 2008 IBM Corporation

Information Management

Data Modeling / Application Dev / Database Dev ER Diagramming

Easily create, view and share ER diagrams 11

© 2008 IBM Corporation

Information Management

Data Modeling / Application Dev / Database Dev Integrated Query Editor

ƒ Express yourself with optimal queries – Content assistance for database objects – Rapid interactive end-user feedback – Extensible templates – Multiple SQL statement testing – SQL assistance and XQuery assistance

SQL and XQuery together using an integrated editor 12

© 2008 IBM Corporation

Information Management

Data Modeling / Application Dev / Database Dev XML Editors

ƒ

Easily perform your XML tasks –

Create XML documents and schemas



Import and export XML documents and schemas



Insert XML documents into XML columns



Generate XML Schema registration scripts



Register XML Schema

Extensive XML support and capabilities 13

© 2008 IBM Corporation

Information Management

Query Management Query Builder

Quickly build and test SQL graphically using the SQL Builder 14

© 2008 IBM Corporation

Information Management

Stored Procedure Support SQL Debugger

Integrated editor and debugger for SQL PL 15

© 2008 IBM Corporation

Information Management

Stored Procedure Support Java Debugger

Integrated editor and debugger for JDBC and SQLJ 16

© 2008 IBM Corporation

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

Create, Alter, Drop, Browse and Filter database objects 17

© 2008 IBM Corporation

Information Management

Data Management Edit, Load, Extract, Browse, Update Statistics

Edit Data

Load and Extract Data Update Statistics

Browse Data

18

© 2008 IBM Corporation

Information Management

Data Management Data Distribution Editor

View data distribution skews with the Data Distribution Viewer 19

© 2008 IBM Corporation

Information Management

Security Access Controls Data Object Editors

Privileges By User Manage Roles

Privileges By Object

Manage Roles and Users – Grant and Revoke Privileges 20

© 2008 IBM Corporation

Information Management

Data Web Services ƒ

Web Services without programming – Generate Web services from • SQL statements – SELECT, INSERT, UPDATE, DELETE

• 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

An integrated set of web services and data access tools 21

© 2008 IBM Corporation

Information Management

Data Web Services 1. Create and Test Queries or Stored Procedures 2. Create Service 3. Drag ‘n Drop Resources 4. Deploy Service 5. Test and Deliver

Data Web Services without programming 22

© 2008 IBM Corporation

Information Management

Data Studio Complimentary Base and Data Studio Developer

D

23

oad l n ow

da it to

y!

© 2008 IBM Corporation

Information Management

IBM Data Studio Improved Java data access pureQuery is a high-performance Java data access platform focused on simplifying the tasks of developing and managing applications that access data Optimizing Java database development and deployment – Productive set of integrated tools, APIs, and runtime for Java applications – Unified programming interface to query databases and Java objects – Unleash the power of SQL within Java applications – Provides infrastructure to greatly improve monitoring and problem determination for Java applications that access DB2 24

© 2008 IBM Corporation

Information Management

Developing with pureQuery Flexible programming styles

pureQuery supports two programming styles 1. Inline style – SQL in application •

Simplified direct data access via SQL

2. Method Style – Encapsulate SQL in Java interfaces •

Annotated Method Style –



Named query style – extension of Annotated Method Style –

25

Define SQL as Java annotations Define SQL in XML files

© 2008 IBM Corporation

Information Management

pureQuery - “Inline Style” ƒ

SQL statements coded directly in application

ƒ

SQL can be fully declared and embedded, or constructed at execution time

ƒ

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 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

© 2008 IBM Corporation

Information Management

Java Persistence Technologies with pureQuery JDBC

JPA API

pureQuery API

iBatis

Spring

SQLJ JPA Runtime

JPA Runtime in future

pureQuery Runtime High Speed API

JDBC w/pureQuery

pureQuery runtime provides IBM Database pureQuery Metadata, Manageability

27

ƒSQL profiling ƒAbility to statically bind SQL statements (with pureQuery Runtime product) © 2008 IBM Corporation

Information Management

Toughest issue for Web applications – Problem diagnosis and resolution Web Browser Users

Web Server

DB2 Java Driver

Persistence Layer

Data Access Logic

EJB Query Language

Business Logic

28

DB2 Server

Application Server

JDBC Package

© 2008 IBM Corporation

Information Management

Customer Job Roles – A Barrier to a “Holistic View” Application Developer

29

DB Server DBA

DB Java Driver

5

Persistence Layer

4

Data Access Logic

2

System Programmer

EJB Query Language

3

WebSphere Connection Pool

Business Logic 1

Application Server

JDBC Package

© 2008 IBM Corporation

Information Management

Typical Customer Pain Points •DBA has no control or visibility into how the WebSphere connection pool is configured

Application Server

•DBA can’t see which app issued a given SQL query

DB Java Driver

30

Persistence Layer

5

Data Access Logic

4

JPA Query Language

JPAQL

3 2

WebSphere Connection Pool

Business Logic 1

•App developer and DBA can’t track SQL to JPA Query Language transitions

SQL

DB Server

JDBC Connections

© 2008 IBM Corporation

Information Management

Simplifying Problem Determination Scenario Java Application Developer

Profiling

ƒ Available for each SQL – Application name

ƒ Available for each db access – SQL text generated

Database Administrator

pureQuery

– Java class name – Java method name

– Access path

– Java object name

– Cost estimates

– Source code line number

– Estimated response time

– Source code context

– Elapsed & CPU time

– J-LinQ transaction name

– Data transfer (getpages)

– Last compile timestamp

– Tuning advice

DRDA Extentions

31

© 2008 IBM Corporation

Information Management

pureQuery with IBM Runtime/Tooling Application Server

A6

A5

Compile-time application details: - Java class/line number for SQL - Original query syntax - Final SQL query syntax Performance data by application: - CPU and elapsed time - Getpages, locks, etc.

32

DB2 Java Driver

A2

Persistence Layer

A3

Data Access Logic

A4

EJB Query Language

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

Catalog data for SQL statements A1

A2

A3

A4

A5

A6

© 2008 IBM Corporation

Information Management

Data Studio Administrative Tooling ƒ Web-based Administration Console (DSAC), part of the complimentary base that products will plug into ƒ Data Studio Administrator – For DB2 LUW (announced today, July 8th, 2008)

ƒ A performance manager ƒ A query tuner ƒ A high performance unload ƒ A recovery manager

33

© 2008 IBM Corporation

Information Management

Web-based Administration Console (DSAC), part of the complimentary base that products will plug into ƒ What is it? – – – –

An integral set of features and functions within Data Studio A web based interface to perform operational database management tasks Immediate access to critical data server information and functions from anywhere, anytime Quick analysis and resolution capabilities to identified data server conditions and scenarios

ƒ What’s available today? – –



V1.1.2 for DB2 for LUW Health and availability monitoring • DB2 for LUW V9.5 Fixpack 1 – Problem determination and recommendations – 72 hours of history – Ability to monitor up to 100 databases Replication -- monitor Q replication and event publishing, generate replication health reports, and perform basic replication operations

ƒ What will be available in the future? – –

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

Heatchart – Overall Health Status

Where are the most important hotspots that need my attention?

Something doesn‘t seem quite right. I wonder what‘s happening? Administrator

Recommendations – Root Cause Analysis

Alert List – Historical Investigation

„What happened when I was out for lunch? ... Away for weekend?

35

Guide me to the root cause and help me fix it properly; I need to know all the revelant info to make the best decision. © 2008 IBM Corporation

Information Management

Administration Console Health Monitoring Overall Health Status Locking

ƒ Application causing lock escalation ƒ Table space inaccessible due to quiesced state ƒ Application waiting indefinitely for lock held by indoubt transaction

Database Storage

ƒ Table space inaccessible because it is offline ƒ Running out of database storage ƒ Storage I/O problem

Recovery

ƒ Database inaccessible because recovery is incomplete or failed ƒ Table space cannot be updated because it is in backup pending state ƒ Table space inaccessible because it is in drop pending state

System

ƒ Bad response times due to high CPU usage ƒ Bad response times due to high memory usage

Logging

ƒ Long running app is using too much log space ƒ Transaction log access problems ƒ Full log held by indoubt transaction ƒ Reduced application performance due to logging problems

Monitor Status

ƒ Monitor agent offline ƒ Monitoring turned off by user

Data Server Status

ƒ Data server not responding

36

The Heat Chart

© 2008 IBM Corporation

Information Management

Administration Console Health Monitoring Adhoc Investigation Locking

ƒ Number of locks held ƒ Deadlock rate ƒ Lock escalation rate ƒ Number of lock waits

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

ƒ Days since last backup

37

The Dashboard

© 2008 IBM Corporation

Information Management

Administration Console Health Monitoring

Historical Analysis

Locking

ƒ Application

causing lock escalation ƒ Table space inaccessible because its in a quiesced state ƒ Application waiting indefinitely for lock held by indoubt transaction

Database Storage

ƒ Table space inaccessible because it is offline ƒ Running out of database storage ƒ Storage I/O problem

Recovery

ƒ Database inaccessible because recovery is incomplete or has failed ƒ Table space cannot be updated because it is in backup pending state ƒ Table space inaccessible because it is in drop pending state

System

ƒ Bad response times due to high CPU usage ƒ Bad response times due to high memory usage

Logging

ƒ Long running app is using too much log space ƒ Transaction log access problems ƒ Full log held by indoubt transaction ƒ Reduced application performance due to logging problems

Monitor Status

ƒ Monitor agent offline ƒ Monitoring turned off by user

Data Server Status

ƒ Data server not responding

38

The Alert List

© 2008 IBM Corporation

Information Management

Administration Console Health Monitoring

Recommendations

Root Cause Analysis

39

© 2008 IBM Corporation

Information Management

Administration Console Q Replication Dashboard Show a health summary for all important objects

40

© 2008 IBM Corporation

Information Management

Data Studio Complimentary Base includes health and availability monitoring on the Administration Console

D

41

oad l n ow

da it to

y!

© 2008 IBM Corporation

Information Management

Data Studio Administrator ƒ

Object management functions

ƒ

Configuration management

ƒ

Change management functions – – – – – – – – –

ƒ

Compare, Sync and Alter DDL roundtrip support (undo changes made) Extended Alter Impact Analysis Change model Physical modeling, Unified Change Project Advanced Data Movement (HPU) Scheduling & Enhanced Advanced Deployment

Task-oriented management – Automated maintenance / integrated calendaring – Profile setting – Exception-based maintenance

42

© 2008 IBM Corporation

Information Management

Data Studio Administrator Eclipse UI Config Change Mgt Object Mgt

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

© 2008 IBM Corporation

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

© 2008 IBM Corporation

Information Management

45

© 2008 IBM Corporation

Information Management

46

© 2008 IBM Corporation

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

© 2008 IBM Corporation

Information Management

Query Advisor

Predicate that should be considered for re-write to get better performance

Re-write advice and details

48

© 2008 IBM Corporation

Information Management

Query Annotation Original / Transformed query

Transformed shows how the query has been rewritten by the optimizer’s query transformation component

Formatted Query

49

Query Annotation (Catalog stats, cost estimation)

© 2008 IBM Corporation

Information Management

Stats Advisor

Annotation showed missing stats Stats Advisor tells what stats to collect Run the commands or Save them for later 50

© 2008 IBM Corporation

Information Management

Index Advisor

Recommendations

DDL to create the new index statement

51

© 2008 IBM Corporation

Information Management

Access Plan Graph

Type of scan

52

© 2008 IBM Corporation

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

© 2008 IBM Corporation

Information Management

A high performance unload ƒ High speed extract of data SELECT * FROM table_name1

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

Data Studio Recovery Manager ƒ Wizard driven – Object selection (Database, Table space, Table,…… Multiple objects supported) – Point in time selection (Time, Quiesce point, Backup point, Log point) – Recovery Paths / alternate recovery resources

ƒ 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)

ƒ Recommend set of objects to recover – Prompts the user to show related objects (next slide) – Assists in including these objects in the recovery process

ƒ 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

© 2008 IBM Corporation

Information Management

Data Studio Administrative Tooling -- What’s avail now? ƒ Web-based Administration Console (DSAC), part of the complimentary base that products will plug into – DSAC 1.1.2 for DB2 for LUW (DSAC 1.2 for DB2 for z/OS in June 2008)

ƒ Data Studio Administrator – Data Studio Administrator for DB2 LUW – DB2 Administration Tool and DB2 Object Comparison Tool

ƒ A performance manager – OMEGAMON for DB2 (and DB2 PE for MP)

ƒ A query tuner – DB2 Optimization Expert for z/OS

ƒ A high performance unload – DB2 High Performance Unload

ƒ A recovery manager – DB2 Recovery Expert

56

© 2008 IBM Corporation

Information Management

IBM Data Studio Vision An integrated, modular, data management framework designed to increase organizational productivity and effectiveness while improving the quality of service, cost of ownership, and governance of diverse data, databases, and data-driven applications

It enables organizations to more efficiently and effectively ƒ Respond to emergent, data-intensive business opportunities ƒ Meet business growth demands while driving down total cost of ownership ƒ Meet service level agreements for data-driven applications ƒ Comply with data privacy and data retention regulations ƒ Secure database access in alignment with corporate policies

57

© 2008 IBM Corporation

Information Management

IBM Data Studio ƒ Getting started

– Downloads • IBM Data Studio • IBM Data Studio Administration Console

– Community • developerWorks – – – –

forums zone and space articles tutorials

– Documentation – Support

58

© 2008 IBM Corporation

Information Management

59

© 2008 IBM Corporation

Suggest Documents