what’s new in db2 administration tool 10.1 for...
TRANSCRIPT
© 2011 IBM Corporation
Information Management
What’s new in DB2 Administration Tool 10.1 for z/OS
Joseph Reynolds, Architect and Development Lead, [email protected]
Calene Janacek, DB2 Tools Product Marketing Manager, [email protected]
© 2011 IBM Corporation
Information Management
Topics
Trends in Database Management
IBM’s Investment in Database Management
– New Products
– New Features
– Day 1 support for new releases of DB2 for z/OS
– Combined technology of products
How-to Examples
– ALT Command
– DB2 10 Examples
• Adding non-key column in index
• Inline LOBs
• Online Schema Evolution Enhancements
• Temporal Tables
• And more…
– Further product enhancements
• Calling stored procedures, more masking options, RUN SQL from EDIT
Summary and Questions
2
© 2011 IBM Corporation
Information Management
Trends in Database Management Data growth puts pressure on IT infrastructure, SLAs, staff, and performance
According to IDC, the amount of data is exploding. Structured data is growing 32% per year, unstructured data is growing 63% and replicated data is growing 49%. Companies are compelled to take the right steps to protect
their valuable data and maintain high database availability
• Average data growth per year is approximately 30%• Large critical application data growth rate is > 50%
In the last 10 years the number of objects needing performance
management has increased:
• The number of objects that need management has increased 3X• the number of objects per DBA has increased 4X
Focus on reducing CPU and elapsed time
Running multiple databases on a server has become the norm
90% of customers have more than one DBMS Resource/skill issues, consistent administration efforts, increased cost in administration, greater need to automate routine operations
3
© 2011 IBM Corporation
Information Management
IBM Investment Areas for Database Management
Data Growth & Availability– Managing large volumes of data while ensuring
high degrees of availability and performance
– Supporting the changing needs of applications
and data
Productivity and Efficiency– Doing more with less personnel
– Fewer skilled personnel required to perform
complex tasks
– Reducing the learning curve with more intuitive
features and products
Automation & Standardization– Reducing repeated tasks, manual effort and error
– Ensuring consistency at company level
Continuity & Resiliency– Ensuring data integrity
– Ensuring Day-1 support of new versions of DB2
for z/OS
Continuity & Resiliency
Productivity & Efficiency
Data Growth & Complexity
Automation & Standardization
4
© 2011 IBM Corporation
Information Management
How is the investment realized by IBM in the Database Management space?
New features in existing products that address pain points for customers– Ex: ALT command in DB2 Administration Tool– Ex: Autonomic operations
Day 1 support for new releases of DB2 for z/OS– Ex: DB2 10 for z/OS
Combining strengths of existing products to take advantage of new features– Ex: Support for DB2 10 utilities in DB2 Administration Tool – Ex: DB2 Administration Tool is integrated with other DB2 tools creating additional
functionality with product-specific line commands for table editing, SQL cost analysis and path check analysis. Through its DB2 tools launch pad, DB2 Administration Tool is the central access point for any tool with an ISPF interface. SQL Performance Analyzer and the DB2 Table Editor can seamlessly be invoked for advanced SQL tuning and row editing
New Products that take advantage of existing investment to provide options for those customers with special needs
– Ex: DB2 Sort for z/OS
5
© 2011 IBM Corporation
Information Management
Product Enhancements (not related to DB2 10)
In this section….
–ALT command
–Autonomic Operations
6
© 2011 IBM Corporation
Information Management
ALT line command available to modify
– A table
– A table space
– A database
– An index
– A view
– A foreign key
Replaces ALC, RDEF TS, RDEF IX, RenDB
A single master dialog (hub) for changing objects
One process for all objects and object types
Common processes with Object Compare and Change Management
ALT - The new change dialog
7
© 2011 IBM Corporation
Information Management
ALT - The new change dialog - Example
ALT line command is
common to all object types
Dedicated dialog for each
object type
Analysis to determine
change implementation
Optional utilities
AL line command :
– ALTER statements only
– No utilities
– One object at a time
8
© 2011 IBM Corporation
Information Management
ALT - The new change dialog - Example
ALT against a table
Make changes to the table
Manage primary key
definition
Manage partitioning
ADD or REL to alter
additional objects
9
© 2011 IBM Corporation
Information Management
ALT - The new change dialog - Example
The “hub” of change
Add additional tables
Alter related objects
ALTER primary command
proceeds to build batch jobs
OPTIONS include
– Running online or in
batch
– Building a recover
process
10
© 2011 IBM Corporation
Information Management
ALT - The new change dialog - Example
Full control of options for the
jobs produced
Single panel & process for
all objects and types
Build as a batch job or a
work statement list (WSL)
Choose optional utilities
11
© 2011 IBM Corporation
Information Management
ALT – Change for the power user
One common interface and process
– Be more productive, sooner (shorter learning curve)
– Common terminology and behavior to OC and CM
NOPAD - Unload utility option to unload data without “white space”
– Reduced DASD usage and CPU processing
– Product disables NOPAD if it cannot be used
– Set it and forget it
Exploit parallel job or work statement list processing
– Multiple unload jobs
– Single DDL jobs
– Multiple LOAD jobs
Exploitation of DB2 Sort for z/OS v1.1 using the DB2 utilities
12
© 2011 IBM Corporation
Information Management
Autonomic Operations
Product performs operations automatically in response to conditions
Improve availability and lessen DBA work
Online alters:
– Respond to the event (SQLCODE610)
– Prompt to run the appropriate utility
13
© 2011 IBM Corporation
Information Management
Autonomic Operations
Batch alters (ADBTEP2):
– AUTOCHECK
– Run CHECK against dependent objects
– AUTOREORG and AUTOREBUILD
– Respond to the event (SQLCODE610)
– STOGROUP VCAT changes or BUFFERPOOL changes
– Optionally implement DB2 pending changes (DB2 10)
– AUTOREBIND
– Packages/Plans become invalid when referential integrity is added
– Affected packages and plans are identified and rebound
14
© 2011 IBM Corporation
Information Management
DB2 10 Support in DB2 Administration Tool
In this section….
– Inline LOBs
–Online Schema Evolution
–Temporal Tables
–Security Enhancements
–And more…
15
© 2011 IBM Corporation
Information Management
Additional non-key column in an index
DB2 10 enhancement
– Application needs an index to enforce uniqueness
– Another index exists with same columns plus additional columns
– Additional DASD space, CPU, I/O, … to maintain and use additional index
ALTER INDEX … ADD INCLUDE COLUMN (column)
– Eliminates the need for the additional index
– Original (non-include) columns maintain uniqueness
– Index has the included column values to improve query performance
– Warning: Index is put in REBUILD pending and unavailable for updates
Autonomic operations will help remedy this
16
© 2011 IBM Corporation
Information Management
Additional non-key column in an index - Example
AL the index
Add a column
Choose to add as an include
column
ALTER statement will be
built and performed
17
© 2011 IBM Corporation
Information Management
Additional non-key column in an index - Example
Index is in REBUILD-pending
Integrated autonomic
operations help to resolve
the state
DB2 Object Comparison Tool
– Included columns can be
added from source to
target
– Included columns can be
removed from the target
– Included column
differences can be
ignored
18
© 2011 IBM Corporation
Information Management
Inline LOBs
DB2 10 Enhancement
– Prior: A LOB value is housed in a separate table and table space
– DB2 10: A portion of the LOB value can be stored with the base table data
– LOBs of “smallish” size may fit entirely
– Performance improvement
– Inline portion can be used in an index on expression
19
© 2011 IBM Corporation
Information Management
Inline LOBs - Example
Alter the table to convert to
or add a LOB column
DB2 Object Comparison Tool
– Inline LOB column
length can be changed
– UDT with inline length
can be compared
– Inline length can be
ignored
20
© 2011 IBM Corporation
Information Management
Online Schema Evolution
DB2 10 Enhancement
– Use ALTER to make changes to :
– BUFFERPOOL size
– DSSIZE
– SEGSIZE
– MAXPARTITIONS
– Changes are pending until a REORG or REBUILD is performed
– Advisory-REORG or Advisory-REBUILD
– DB2 Pending Changes can be dropped
– Benefits:
– Attribute changes done via ALTER rather than DROP/CREATE
– Can make changes prior to the batch window
21
© 2011 IBM Corporation
Information Management
Online Schema Evolution - Example
Alter the table space or index
Change an attribute
22
© 2011 IBM Corporation
Information Management
Online Schema Evolution - Example
Online - Index is in Advisory
Reorg pending state
Integrated autonomic
operations
– Identifies the condition
– Offers options to resolve
the state
ALT
– Pre-existing pending
changes will be retained
or implemented
23
© 2011 IBM Corporation
Information Management
Online Schema Evolution - Example
New Pending Changes
dialog
Can view all or be selective
24
© 2011 IBM Corporation
Information Management
Online Schema Evolution - Example
New Pending Changes
dialog
Many commands available to
interrogate and manipulate
the pending changes
– DROP to remove all
– UTIL to implement all
DB2 Object Comparison Tool
– Pending changes from
source and target are
logically implemented
prior to source-to-target
compare
– Pending changes can be
ignored (won‟t be
logically implemented
25
© 2011 IBM Corporation
Information Management
Temporal tables
DB2 10 Enhancement
– Retain historical copies of a row – SYSTEM_TIME
– When updated, created and deleted
– Maintain rows based upon business-determined periods - BUSINESS_TIME
– Can query data “as of” a point in time
26
© 2011 IBM Corporation
Information Management
Temporal tables - Example
27
© 2011 IBM Corporation
Information Management
Temporal tables - Example
The base table has columns
with temporal attributes
Q – AS ROW BEGIN
R – AS ROW END
X – AS TRANSACTION
START ID
28
© 2011 IBM Corporation
Information Management
Temporal tables - Example
The history table has the
same columns but without
temporal attributes
29
© 2011 IBM Corporation
Information Management
Temporal tables - Example
Alter the table
ADD PERIOD
– Add the SYSTEM_TIME
period attribute
ADD VERSIONING
– Begins versioning the
data on DML
DROP VERSIONING
– Removes versioning of
data
30
© 2011 IBM Corporation
Information Management
Temporal tables - Example
Alter the table
ADD PERIOD to add the
SYSTEM_TIME or
BUSINESS_TIME period
31
© 2011 IBM Corporation
Information Management
Temporal tables - Example
Alter the table
ADD VERSIONING
Choose the table to become
the history table
32
© 2011 IBM Corporation
Information Management
Security Enhancements
DB2 10 Enhancement
– Provide row-level security by predicate usage - who can view this row
– Provide column-level value security - mask sensitive information
– More granular levels of privileges
– Eliminate object-access requirements for certain functions (Eg. EXPLAIN)
– Separate object security and object administration roles
– Comply with security policies, regulatory compliance, reduce business risk
33
© 2011 IBM Corporation
Information Management
Row Permissions and Column Masks - Example
34
© 2011 IBM Corporation
Information Management
Row Permissions and Column Masks - Example
Row Permissions
– Many line commands to
manage a row permision
35
© 2011 IBM Corporation
Information Management
Row Permissions and Column Masks - Example
Column Masks
– Many line commands to
manage a column mask
36
© 2011 IBM Corporation
Information Management
New Privileges
From the GRANT panel
(ADB2G)
– Option GZ to GRANT the
new privileges
– Option RZ to REVOKE
the new privileges
37
© 2011 IBM Corporation
Information Management
Additional DB2 10 Support in DB2 Administration Tool
Hash access support
UTS support for MEMBER CLUSTER
Flashcopy enhancements
XML Modifiers
UNLOAD XML in binary
TIMESTAMP WITH TIME ZONE
And more…
38
© 2011 IBM Corporation
Information Management
Additional NEW Feature Support (Non-DB2 10)
In this section….
–Calling a stored procedure from within Admin Tool
–More masking options
• Including single character masking
–Executing SQL from EDIT
–Backup DDL prior to WSL Run
–SQL Only generated of WSL or JCL
39
© 2011 IBM Corporation
Information Management
Call a stored procedure from Admin
Develop and testing stored procedures prior to writing an application
The product issues SELECT SYSPARMS to get the input parameters for the SP
Enter each input parameter, up to 32760 bytes long
Input parameter is validated against its data type
Call primary command to call the stored procedure
Result are displayed - output parameters and multiple result sets
40
© 2011 IBM Corporation
Information Management
Call a stored procedure from Admin - Example
41
© 2011 IBM Corporation
Information Management
Call a stored procedure from Admin - Example
Provide values for the input parameters
42
© 2011 IBM Corporation
Information Management
Call a stored procedure from Admin - Example
Upon return, view output parameters
Result sets can be shown
43
© 2011 IBM Corporation
Information Management
Call a stored procedure from Admin - Example
Showing a result set from a stored procedure call
44
© 2011 IBM Corporation
Information Management
Masking enhancements
Can mask new and more granular names:
– row permission, column mask, constraint, sequence, synonym, alias, view
Can mask new and more granular schemas:
– row permission, column mask, SET PATH, trigger, UDT, sequence, stored procedure,
UDF, alias, view
New additional mask items: registered XML schema name, WLM environment, location,
New overwrites:
– hash space, inline LOB length for tables, inline LOB length for distinct types, AUDIT,
CLOSE
Single character masking
45
© 2011 IBM Corporation
Information Management
Single character masking
A complement to the existing multi-character masking feature
A new entry in mask data set to indicate single character masking
Optional escape character to treat mask character as a literal
46
© 2011 IBM Corporation
Information Management
Single character masking - Example
SINGLECH:_,+
NAME:ADMIN+__*,ADMIN+_FL*
Original object: ADMIN_TASKS
47
© 2011 IBM Corporation
Information Management
Run SQL from EDIT
ISPF Editor is now used for
– Option 1 from panel
ADB22
– When using the „+‟
primary command
EXEC command runs the SQL
Error information is presented
within the EDIT session
Fix and retry while staying
within EDIT
48
© 2011 IBM Corporation
Information Management
Backup DDL prior to WSL Run
Option to generate DDL for
dropped objects and their
dependents
GEN function is run as first
step in the process
Ease of use – other run
options now reside on single
panel
49
© 2011 IBM Corporation
Information Management
SQL Only generated of WSL or JCL
Option to build all processes
or just DDL (no utilities)
Available in change
processes – ALT, CM and OC
Ideal for test-only or other
environments where
retaining data is not
necessary
50
© 2011 IBM Corporation
Information Management
Summary
DB2 Administration Tool v10.1 provides:
Continuous delivery of enhancements and features that deliver value
Day 1 GA support for core DB2 function
Reduction in complexity and improve automation
51
© 2011 IBM Corporation
Information Management
Thank You for Joining Us today!
If you would take a moment to fill out the feedback form which will display on the
next slide, it would be greatly appreciated. Your comments are very important to
us.
Go to www.ibm.com/software/systemz and click on events to:
Replay this webcast
View previously broadcast webcasts
Register for upcoming webcasts
System z Events on Twitter: http://www.twitter.com/systemzevents
52
© 2011 IBM Corporation
Information Management
Questions?
53
© 2011 IBM Corporation
Information Management
Manage DB2 10 Performance Savings
http://www.redbooks.ibm.com/abstracts/sg247916.html
Managing DB2 10 with
DB2 Administration Tool 10
Bi-Temporal Data
Online Schema Changes
Include only columns in Indexes
Inline LOBS
New Security Authorities
Fine Grain Access Control
Native SQL Procedures
Plan Management
Partition by Growth Tables
XML
Learn how to use new DB2 features
with step by step instructions
© 2011 IBM Corporation
Information Management
• Website http://www.ibm.com/software/data/db2/zos/db2-10/
• Case Studies, Customer statements
• Demos: DB2 10 for z/OS, QMF 10
• Brochures: DB2 10 for z/OS Highlights, QMF 10 What’s New
• Presentations
• DB2 10’s new functions – ftp://public.dhe.ibm.com/software/data/db2/zos/presentations/v10-new-function/
• Overviews - ftp://public.dhe.ibm.com/software/data/db2/zos/presentations/overview
• Migration - ftp://public.dhe.ibm.com/software/data/db2/zos/presentations/migration
• Books
• Managing DB2 10 with DB2 Administration Tool ttp://www.redbooks.ibm.com/abstracts/sg247916.html
• DB2 10 for z/OS Technical Overview http://www.redbooks.ibm.com/abstracts/sg247892.html
• DB2 10 for z/OS Performance Topics – coming soon http://www.redbooks.ibm.com/abstracts/sg247942.html
• Extremely pureXML in DB2 10 for z/OS http://www.redbooks.ibm.com/abstracts/sg247915.html
• DB2 10 for z/OS Book ftp://public.dhe.ibm.com/common/ssi/ecm/en/imm14075usen/IMM14075USEN.PDF
• Whitepapers
• The Value of IBM‟s DB2 Utilities and Tools in 2011 by Phil Grainger
http://public.dhe.ibm.com/software/data/sw-library/db2tools/value-of-IBM-DB2-Tools-Utilities.pdf
• OMEGAMON Extended Insight Analysis: Where is your application spending its time?
ftp://public.dhe.ibm.com/software/data/sw-library/db2imstools/extended_insight.pdf
• Business Value Whitepaper – Julian Stuhler, Triton Consulting: “DB2 10 for z/OS: A Smarter Database for a
Smarter Planet” http://public.dhe.ibm.com/software/data/sw-library/db2/analystreports/tritonconsulting-
db210forzos-smarterdatabase.pdf
• A Matter of Time: Temporal Data Management http://public.dhe.ibm.com/software/data/sw-
library/db2/papers/A_Matter_of_Time_-_DB2_zOS_Temporal_Tables_-_White_Paper_v1.4.1.pdf
DB2 10 Resources