Upload
phambao
View
309
Download
5
Embed Size (px)
Citation preview
© 2011 IBM Corporation
Information Management
Data Studio / Optim Development StudioOptim Database AdministratorData Studio 3.1
© 2011 IBM Corporation
Information Management
Agenda
Data Studio– Object Management – SQL and Routine Development – Unified Debugger
What you get with Optim Development Studio– Enterprise Deployment– pureQuery support
What’s new in Data Studio 3.1
© 2011 IBM Corporation3
Information Management
Current Packaging
Common FunctionsCatalog navigation
Object managementCompare and synch
Generate DDLImpact analysisUtilities (LUW)
Routine developmentQuery development
Visual explain
Statistics adviceQuery formatting
Environment capture (z/OS)
pureQuerySQL outline
Enterprise deployment
Administration perspective and object list Java developmentXML editor
Change script generationDependency management
Data preservation
Data Studio v2.2.1.1
© 2011 IBM Corporation4
Information Management
Current Packaging
Common FunctionsCatalog navigation
Object managementCompare and synch
Generate DDLImpact analysisUtilities (LUW)
Routine developmentQuery development
Visual explain
Statistics adviceQuery formatting
Environment capture (z/OS)
pureQuerySQL outline
Enterprise deployment
Administration perspective and object list
Optim Database Administrator
Java developmentXML editor
Change script generationDependency management
Data preservation
© 2011 IBM Corporation5
Information Management
Current Packaging
Common FunctionsCatalog navigation
Object managementCompare and synch
Generate DDLImpact analysisUtilities (LUW)
Routine developmentQuery development
Visual explain
Statistics adviceQuery formatting
Environment capture (z/OS)
pureQuerySQL outline
Enterprise deployment
Administration perspective and object list Java developmentXML editor
Change script generationDependency management
Data preservation
Optim Development Studio
© 2011 IBM Corporation6
Information Management
Upcoming Packaging for Data Studio v3.1
Common FunctionsCatalog navigation
Object managementCompare and synch
Generate DDLImpact analysisUtilities (LUW)
Routine developmentQuery development
Visual explain
Statistics adviceQuery formatting
Environment capture (z/OS)
pureQuerySQL outline
Enterprise deployment
Administration perspective and object list Java developmentXML editor
Change script generationDependency management
Data preservation
Data Studio v3.1
© 2011 IBM Corporation
Information Management
Fast Up and Running
Launch key tasks
Select lifecycle
Access tutorials and advice
© 2011 IBM Corporation
Information Management
More Flexible Navigation
True hierarchy
Fast filtering
Show menu
Save customizations
Better context menus
Add columns to object list (LUW)
Server -> Database
Name filtering
More filtering and customization
© 2011 IBM Corporation
Information Management
IBM Data StudioA Comprehensive and Productive Work Environment
Database Projects
DatabaseMetaDataView
Output View
Editor
Perspectives
© 2011 IBM Corporation
Information Management
Enhancements to Task AssistantsHelp Links in each Task Assistant
Improved error information for error conditions
© 2011 IBM Corporation
Information Management
Managing your database objects … create table
1. Select Tables Folder2. Enter Name
3. Define Columns
Add new columns
Add columns details
4. Run DDL
© 2011 IBM Corporation
Information Management
Table Data Browser and Editor
Edit data Filter
Add row conditions
Select ColumnsContext menu
options
© 2011 IBM Corporation
Information Management
Privilege Management
Simplifies managing privileges with a Manage Privileges
– Add users– Assign privileges – Action added to the
context menu for objects
New grid display
© 2011 IBM Corporation
Information Management
Viewing Entity Relationships Helps visualize an existing database structure
1. Add overview Diagram
2 . Select Tables to include
© 2011 IBM Corporation
Information Management
Analyze impact… Generate DDL Run or Save for later use
• Recreate a database object in a different database or different schema
• Use template for creating new table
• Save to file or edit file and create new objects
© 2011 IBM Corporation
Information Management
Managing your database environmentCreate Table Space…
ex SMS, DMS
1. Create Table Space
2. Select Type
3. Move tables stored in other table spaces
© 2011 IBM Corporation
Information Management
Database Management and Maintenance
Database configuration
HADR
Automatic maintenance
Backup
Recover / Restore/ Rollforward
Load/Unload
Reorg
© 2011 IBM Corporation
Information Management
Creating SQL and XQuery scripts
1. Select SQL Scripts
2. Select statement type
3. Use SQL Builder to create statements
© 2011 IBM Corporation
Information Management
Stored Procedure – SQL Integrated Query Editor – Edit / Customize
Context sensitive editor
Content assist for SQL statements
Formatted SQL
Optional validation
Visual Explain
© 2011 IBM Corporation
Information Management
Template-based Routine Creation
Faster
Easier
Compliant
Name procedure
Select Template
Preview template
http://www.ibm.com/developerworks/data/library/techarticle/dm-1010devstudioroutines/index.html
© 2011 IBM Corporation
Information Management
Customize Templates for Your Organization
Customize and select templates for
workspace
Specify master template library
Preview template
Specify template preferences
© 2011 IBM Corporation
Information Management
Stored Procedure – Deployment1. Select stored procedure for deployment
Specify target database
Specify how to handle duplicates
2. Customize deployment options
Specify target schema
Specify default path
© 2011 IBM Corporation
Information Management
Run the stored procedure
4. Customize Run settings
6. View Result set
Input parameters values
© 2011 IBM Corporation
Information Management
Preparing for Debugging
1. Deploy stored procedure with "Enable debugging"
2. Select stored procedure for Debug…
© 2011 IBM Corporation
Information Management
Debug Perspective
resume
terminate step intostep over
step return
variables
current value
right click to change value
break point
current location
© 2011 IBM Corporation
Information Management
What you get extra in Optim Development Studio
© 2011 IBM Corporation
Information Management
Enterprise Deployment SupportDeployment groups
– Specify and order artifacts to deploy together– Specify server profiles for artifact deployment– Record and view deployment history
Drag and Drop
© 2011 IBM Corporation
Information Management
Enterprise Deployment Support (cont.)Deployment Group editor
Specify deployment order
Select error handling
Add, remove, or edit server profiles
© 2011 IBM Corporation
Information Management
Report on Deployment Results
© 2011 IBM Corporation
Information Management
Optim Development Studio – pureQuery support
Problem determination and isolation
– In pureQuery outline go to the source of the problematic SQL
– Find the DB2 package for the SQL statement
– What DB objects are affected by this SQL or package
With performance metrics Identify the hot spots in your application
Source code correlation
Database object correlation
© 2011 IBM Corporation
Information Management
Enabling an existing JDBC application for pureQuery
Capture Configure Bind Execute
SQL
© 2011 IBM Corporation
Information Management
Correlate SQL with source code in OPM EE
© 2011 IBM Corporation
Information Management
What’s new in Data Studio 3.1
© 2011 IBM Corporation
Information Management
Data Studio 3.1 : Consolidated Offering
Health monitoringAlert notificationTask managementList utilities and applicationsBrowser dashboard
Data Studio Eclipse client
Administration or Full client
Data Studio Web console
DevelopmentQuery tuningObject managementScript generation and editingEmbedded browser
Optim Development Studio
Optim Database Administrator
+
Health Monitor
Job Manager(new)
+
© 2011 IBM Corporation
Information Management
Unified Object ManagementSignificant usability and quality improvement– Eliminate requirement for user to select an editor (Data Object Editor or Change
Management Script Editor)
Implicit change plan definition
Simple object management for all supported databases– Single object at a time– DB2 for LUW, DB2 for z/OS, Informix, Oracle
Complex change management for DB2 for LUW– Multiple objects at a time– Automatic dependency handling– Data and privilege migration– Undo scripts
* Limited functionality, please refer Release notes.
Drop 1*
© 2011 IBM Corporation
Information Management
© 2011 IBM Corporation
Information Management
Connection management
• Simplified User and Password management
Drop 1
© 2011 IBM Corporation
Information Management
Compare-Synch enhancements
Reporting enhancements– Impact Analysis– Differences report
Highlighting synchronized changes
Drop 1
© 2011 IBM Corporation
Information Management
Query Editor enhancements - Configuration
Execution control• Execution environment • Error control• Commit control
Drop 1
© 2011 IBM Corporation
Information Management
Query Editor enhancements – ValidationValidation
•Syntax highlighting•Platform and release specific •Object validation
Drop 1
© 2011 IBM Corporation
Information Management
Query Editor enhancements – Special RegistersSpecial Registers
•Current Schema•Current Path
Drop 1
© 2011 IBM Corporation
Information Management
Query Editor enhancements – Performance Metrics
Performance Metrics•integration point with OPM
Drop 1
© 2011 IBM Corporation
Information Management
Query Editor enhancements
Integration with • Job Manager• Visual Explain • Query Tuner• Performance Metrics
Drop 1
© 2011 IBM Corporation
Information Management
Query Tuning enhancementsSET PROFILE, UPDATE PROFILE (DB2 V10 z/OS)
Table Data sampling
Drop 2
© 2011 IBM Corporation
Information Management
Job Manager Server-based job management
– Scheduling• Immediate or scheduled execution• Multiple schedules can be associated with a job• A schedule can be associated with multiple databases
– Chaining• Based on success or failure of job
– Notification• On success or failure of job on single or multiple databases
– History• View job history and logs for each run• Purge job history
Integrated exploitation from Data Studio clients– SQL editor
Task Center migration– Command line script provides limited migration– Cannot migrate parallel execution, multiple levels of chained jobs
Drop 2
© 2011 IBM Corporation
Information Management
Manage Schedules for a Job
View schedules
Add schedules
Edit a schedule
Delete a schedule
Drop 2
© 2011 IBM Corporation
Information Management
Health Monitor for DB2 LUW and z/OSMonitor database health
– Health summary– Alert list– Current application connections– Data Sharing Members– Current utilities– z/OS system log– Current Table spaces
Drop 1
© 2011 IBM Corporation
Information Management
Health Monitor for DB2 LUW and z/OSNew pureScale alerts available in Health monitor
– pureScale Member Status– Cluster Caching Facility Status– Cluster Host Status
Drop 1
© 2011 IBM Corporation
Information Management
Launching the Web Console from Data Studio Client
• Configure connection to Data Studio web console
• Schedule tasks from- Query Editor
• Health Monitor integration with Administration Explorer
Drop 1
© 2011 IBM Corporation
Information Management
Temporal table support for z/OS
Data versioning mechanism
Support for Application, System and Bi-Temporal tables–Object management – Create, Alter–Syntax validation–Generate DDL –Analyze Impact
Drop 2
© 2011 IBM Corporation
Information Management
ResourcesOptim Solutions for Managing Performance demohttp://www.ibm.com/developerworks/data/library/techarticle/dm-1004optimperformance/index.html#tivoliintegration
Virtual Tech Briefings on Optim Solutions for Integrated Data Managementhttp://www.ibm.com/developerworks/data/events/idmbriefings.html
Developerworks Article on Optim Performance Managerhttp://www.ibm.com/developerworks/data/library/techarticle/dm-1004optimperformance/index.html#tivoliintegration
Optim pureQuery Runtimehttp://www-01.ibm.com/software/data/optim/purequery-runtime/
pureQuery for DB2 for z/OS video - Improving ROI for existing applicationshttp://www.ibm.com/developerworks/offers/lp/demos/summary/im-purequery4zos.html
IBM Optim Development Studiohttp://www-01.ibm.com/software/data/optim/development-studio/
Articles and tutorials covering the Optim portfoliohttp://www.ibm.com/developerworks/spaces/optim
© 2011 IBM Corporation
Information Management
Additional information
DB2 9 for z/OS Stored Procedures: Through the CALL and BeyondSample code included - Redbook SG24-7604http://www.redbooks.ibm.com/abstracts/sg247604.html?OpenData Studio and DB2 for z/OS stored procedures http://www.redbooks.ibm.com/redpieces/abstracts/redp4717.html?OpenDebugging Stored Procedures on DB2 z/OS Part 1http://www.ibm.com/developerworks/data/library/techarticle/dm-0811zhang/?S_TACT=105AGX01&S_CMP=LPDebugging Stored Procedures on DB2 z/OS Part 2http://www.ibm.com/developerworks/data/library/techarticle/dm-0903debugdatastudio/DB2 9 for z/OS Manuals:http://www-306.ibm.com/software/data/db2/zos/v9books.htmlIBM Optim Development Studio: Routine development simplified http://www.ibm.com/developerworks/data/library/techarticle/dm-1010devstudioroutines/index.htmlIBM Optim Development Studio: Test deployment simplifiedhttp://www.ibm.com/developerworks/data/library/techarticle/dm-1010testdeployment/index.html
© 2011 IBM Corporation
Information Management
THANK YOU
Marichu Scanlonmarichu @us.ibm.com
© 2011 IBM Corporation
Information Management
BACKUP SLIDES
© 2011 IBM Corporation
Information Management
Data Studio Java Data Access
© 2011 IBM Corporation
Information Management
Java data access development productivity features in Data StudioWork with database objects
Navigate the catalog (*)
Run SQL
Sample/browse data
© 2011 IBM Corporation
Information Management
Java data access development productivity features in Data StudioExploit SQL/database awareness in Java editor
Content assist
Error checking
© 2011 IBM Corporation
Information Management
Java data access development productivity features in Data StudioUse insights to …
Identify SQL to source code correlation
© 2011 IBM Corporation
Information Management
Java data access development productivity features in Data StudioUse insights to …
Perform impact analysis– Which database objects does an application module access/manipulate?– Does an application access/manipulate a specific database object?– Where is a database object accessed/manipulated?– Does the source code access sensitive information?
© 2011 IBM Corporation
Information Management
Gather High Cost Queries
DB2
Plan table
Statement table
Catalog plan or package
Statement cache
Optim Development Studio
QMF and QMF HPO
DB2 Query Monitor
OMEGAMON XE for DB2
File, text, or exported workload
User defined category
Define or select workload
© 2011 IBM Corporation
Information Management
Visualize Queries and Costs to Speed Analysis
Accelerate analysis, reduce downtime– Spot human errors – Identify where filtering should occur
Easily see tables, sections, join
predicates, etc.Examine table statistics
and additional information
© 2011 IBM Corporation
Information Management
Visualize access path– See flow of query processing– See indexes and operations– See optimizer rationale
Analyze Access Plans
Assess access path stability to reduce risk of performance regression
– Is the optimizer able to apply the filtering early?– Are there indexes that support an efficient path?– Do statistics allow distinction between the choices?
© 2011 IBM Corporation
Information Management
Improve Statistics Quality and Collection
Results – Accurate estimated costs – Better query performance– Less CPU consumption – Improved maintenance window
throughput
Conflicting statistics
explanation
Indicates conflicting and
missing statistics
Generates RUNSTATS
control statements
Provides advice on • Missing statistics• Conflicting statistics• Out-of-date statistics
“Half of access path PMRs could be resolved by statistics advisor before calling IBM support.” – IBM Support
© 2011 IBM Corporation
Information Management
Environment Capture Facilitates Collaboration
Enable environment reproduction
Speed up service process
© 2011 IBM Corporation
Information Management
Coming in 2012Improved Debugger Support
– Expanded coverage to Triggers– Eliminate Requirement of a Data Development Project
• Allow debugging and redeployment of stored procedures that did not originate in a project– Application driven debugging
• Debugger sessions that listen for debuggable objects
Routine Development Lifecycle Support– Generate JUnir test cases for calling routines– JUnit based for ease of customization for developers familiar with JUnits– Out of Box result compare function for developers unfamiliar with Java
Report Execution Coverage– Debug backend enhancements to report execution coverage – UI enhancements to graphically show coverage in routine editor
Stored Procedure Impact Analysis and Integration (from SQL Outline)– Show object dependencies (e.g. tables, views)– Correlate statements to store procedure source code– Run statements individually– Optim Query Tuner Integration
• Extract SQL statements from a stored procedure and send to OQT
New
© 2011 IBM Corporation
Information Management
BACKUP SLIDES
© 2011 IBM Corporation
Information Management
Basic Administration Tasks
Catalog navigation– Share connections, filter,create working sets, show
related or dependent objects
Object management– Create, alter, drop, rename, start, stop, quiesce,
grant, revoke
Privilege management– User, group, role,
Maintenance management– Automatic maintenance, utility execution
Availability management– Backup, recover, HADR configuration
Script and routine development– Generate DDL, SQL development, visual explain
stored procedure development, UDF development
Change management– Make a copy, change in place, compare and synch,
database migration
Administer