Revolutionize Your DB2 Recovery Process                     Information Management                                    © 20...
Information ManagementAgenda    Trends and Directions    Why are ‘storage-aware’ data management tools important?    Defin...
Information ManagementTrends and Directions    DB2 applications require high availability     – Fast and non-intrusive bac...
Information ManagementWhy are ‘storage-aware’ data management tools important?    Perform DB2 restores and clones instantl...
Information ManagementDefinitions    Restore     – Restoring database environment to a previous copy        • DB2 Table sp...
Information ManagementUnderstanding the Forms of Backup and Recovery    DB2 Table Spaces                                  ...
Information Management       Taking DB2 to the ‘Next level’       •System Level Backups for DB2       •Fast Replication im...
Information ManagementDB2 Recovery Expert- System Level Backup Overview. The “Next” level of backup.    A System Level Bac...
Information ManagementDB2 Recovery Expert- System Level Backup Overview. The ‘Next level’ of backup    Backup validation e...
Information Management DB2 Recovery Expert - System Level Backup for Disaster Recovery Overview     Simplifies disaster re...
Information Management Clone from a System Level Backup     Full system-level backup created using full     volume fast-re...
Information Management DB2 Fast Replication Image Copies     NEW in DB2 V10 – Optional FlashCopy image copy           Crea...
Information Management DB2 Fast Replication Image Copies     NEW in DB2 V10 – Optional FlashCopy image copy           Can ...
Information Management DB2 Fast Replication Image Copies     NEW in DB2 Recovery Expert           Supports DB2 V10 FlashCo...
Information Management DB2 Fast Replication Image Copies     NEW in DB2 Recovery Expert           Creates fast-replication...
Information Management When to use SLBs versus Fast-Replication Image Copies     System level backups recommended         ...
Information Management                     DB2 or IMS Recovery Expert                     Intelligent Recovery Manager17  ...
Information ManagementDB2 or IMS Intelligent Recovery Manager- Definition     Performs efficient local recoveries using av...
Information ManagementDB2 or IMS Intelligent Recovery Manager Overview- System Level Recovery     Analyzes system backup a...
Information ManagementDB2 or IMS Intelligent Recovery Manager Overview- Application Recovery From a System Level Backup   ...
Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Recovery from Fast-Replication Image Copy     Restore...
Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Dropped Object Recovery     Dropped object recovery t...
Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Recovery Versioning     Recovers an object or applica...
Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Log Analysis Services     Enables recovery of individ...
Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Dependency Analysis     All related objects that must...
Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Recovery Plans     GUI recovery tool that presents ma...
Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Recovery Plans     Supports DB2 Version 10 “BACKOUT” ...
Information Management              DB2 or IMS Recovery Expert        Intelligent Disaster Recovery Manager28             ...
Information ManagementDB2 or IMS Intelligent Disaster Recovery Manager- Definition     Performs:     –    Local site proce...
Information ManagementDB2 or IMS Intelligent Disaster Recovery Manager     DB2 Options to:                                ...
Upcoming SlideShare
Loading in …5
×

9b. V10 od środka, czyli jak zmienia się technologia

585 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
585
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

9b. V10 od środka, czyli jak zmienia się technologia

  1. 1. Revolutionize Your DB2 Recovery Process Information Management © 2011 IBM Corporation © 2011 Rocket Software
  2. 2. Information ManagementAgenda Trends and Directions Why are ‘storage-aware’ data management tools important? Definitions Understanding Forms of Backup and Recovery Taking DB2 to the ‘Next level’ – System Level Backups – Fast Replication image copies – Use cases Intelligent Recovery Manager – System level backup Recovery – Application recovery from a system level backup – Dropped object recovery; Recovery versioning; Log Analysis services; Dependency analysis; Recovery plans Intelligent Disaster Recovery Manager – Image copy method – System level backup method2 © 2011 IBM Corporation © 2011 Rocket Software
  3. 3. Information ManagementTrends and Directions DB2 applications require high availability – Fast and non-intrusive backup and cloning facilities are required – Storage-based fast replication capabilities are required to minimize backup and recovery down time – Most backup and recovery operations do not leverage storage-based fast-replication facilities Storage-based fast-replication facilities are under-utilized – Tend to be used by storage staff – Tend not to be used by database administrators (DBAs) Storage aware database products – Integrate fast-replication facilities with DB2 backup, recovery, and cloning to provide high availability solutions – Allow DBAs to use fast-replication in a safe and transparent manner These new storage-aware’ database products include: – DB2 Recovery Expert - DB2 Cloning Tool – (IMS Recovery Expert - IMS Cloning Tool)3 © 2011 IBM Corporation © 2011 Rocket Software
  4. 4. Information ManagementWhy are ‘storage-aware’ data management tools important? Perform DB2 restores and clones instantly with no downtime Reduce recovery time by performing parallel recovery Offload CPU and I/O resource utilization to the storage processor Simplify disaster recovery operations and procedures Leverage storage processors and fast-replication investments Support for all storage vendors: IBM, EMC, HDS, and STK Provide a sophisticated infrastructure and metadata to manage the DBMS and storage processor coordination Provide insurance that you will have a backup and be able to recover4 © 2011 IBM Corporation © 2011 Rocket Software
  5. 5. Information ManagementDefinitions Restore – Restoring database environment to a previous copy • DB2 Table space, index space, application, system • (IMS database, index, application, system) Recover – Explicit application of database logs to a point of consistency • DB2 Table space, index space, application, system • (IMS database, index, application, system) Restart – Implicit application of database logs that happens during the normal database initialization process • DB2 (or IMS) system SLB – System Level Backup5 © 2011 IBM Corporation © 2011 Rocket Software
  6. 6. Information ManagementUnderstanding the Forms of Backup and Recovery DB2 Table Spaces IMS Databases – Image copies – Recovery from Image copy utilities DB2 Systems and application libraries IMS Systems and Application libraries – Volume dumps – Volume dumps – DFSMSdss data set copies – DFSMSdss data set copies – DFSMShsm BACKUP and RECOVER SYSTEM IMS Systems and data • FlashCopy – Volume dumps DB2 Systems and data – Remote Mirroring/Replication – Volume dumps • XRC, PPRC, SRDF – DFSMShsm BACKUP and RECOVER SYSTEM • FlashCopy New with IMS Recovery Expert V2.1! – Remote Mirroring/Replication – Recovery from system level backup • XRC, PPRC, SRDF • Full system, data only, application, database and disaster recovery DB2 Recovery Expert for z/OS – System level backup • Full system, data only, application, table space, and disaster recovery – Dropped object recovery – Version recovery – Redo / undo SQL – New! Fast-replication object level backup / recovery • DB2 V10 IBM FlashCopy Image Copy • DB2 V8, V9, V10 - FlashCopy and EMC TimeFinder/Snap Image Copy6 © 2011 IBM Corporation © 2011 Rocket Software
  7. 7. Information Management Taking DB2 to the ‘Next level’ •System Level Backups for DB2 •Fast Replication image copies for DB2 •Use cases7 © 2011 IBM Corporation © 2011 Rocket Software
  8. 8. Information ManagementDB2 Recovery Expert- System Level Backup Overview. The “Next” level of backup. A System Level Backup is a backup of the entire DB2 environment at a point in time – Does not require DB2 BACKUP SYSTEM or HSM DB2 and IMS – Recorded in Recovery Expert ‘s Meta data repository Leverages storage-based fast replication from all DB2 and IMS RE vendors to drive the volume backup – Instantaneous backup Storage Processor APIs – Offloading data copy process to the storage processor saves CPU and I/O resources – Faster than data set copies Backup DB2 or IMS without affecting applications – Backup windows reduced by replacing image copies Source DB2 where desired or IMS – Extends processing windows Target Volumes Volumes Data consistency ensures data is dependent-write DB2 or consistent IMS – DB2 Log Suspend / IMS Log Suspend System – Storage-based consistency functions Backup • FCCGFREEZE to perform a FlashCopy consistency group (transparent to the user)8 – Equivalent to a power failure © 2011 IBM Corporation © 2011 Rocket Software
  9. 9. Information ManagementDB2 Recovery Expert- System Level Backup Overview. The ‘Next level’ of backup Backup validation each time ensures successful recoveries DB2 and IMS – Insurance that a backup is available Storage-Aware – Validates that entire DB2 or IMS was backed up Backup and – Validates storage layout Recovery – Checks that objects are in “OK” state to copy Storage Processor APIs Automated backup offload (archive/recall) – Copies system backup from fast replication disk to tape for use at either local or disaster site (or both) – Tape can be local or remote Source – Encryption Database SLB Volumes Backup used for multiple purposes – System, data only, application, DB2 table space, Offload IMS database System Can be used in combination with other Backup backups (image copies) – (For DB2 RE only) Image Copies can be taken from Tape SLB and registered in SYSCOPY Processing9 © 2011 IBM Corporation © 2011 Rocket Software
  10. 10. Information Management DB2 Recovery Expert - System Level Backup for Disaster Recovery Overview Simplifies disaster recovery operations – System level backup for restart – System level backup and roll forward Already using remote replication/mirroring? A system level backup can provide a tape based tertiary solution in the event of a regional disaster Taking full volume dumps for disaster recovery? System level backups add automation and a meta-data repository Can now use the backup for multiple purposes Basis for DB2 and IMS coordinated recovery DB2 and IMS Recovery Expert support a federated ‘restore’ to bring IMS and DB2 systems back to a transactional consistent point which is the backup time10 © 2011 IBM Corporation © 2011 Rocket Software
  11. 11. Information Management Clone from a System Level Backup Full system-level backup created using full volume fast-replication DB2 and IMS Database clone operations performed using SLB volumes as source Database System Storage-aware database tools provides and Storage Cloned infrastructure and metadata to manage database Coordination Database Systems and storage processor coordination Storage Processor APIs Use DB2 or IMS SLB Source Database Volumes System Level Backup System Clone11 © 2011 IBM Corporation © 2011 Rocket Software
  12. 12. Information Management DB2 Fast Replication Image Copies NEW in DB2 V10 – Optional FlashCopy image copy Creates an image copy on disk ONLY to: Reduce source unavailability Enable fast restore Copy offloaded to the storage processor to significantly reduce CPU and I/O All datasets of each TS/IX copied using data set FlashCopy The image copy is a VSAM cluster Size of data set does not matter Backup of each data set takes 1-2 seconds each FlashCopy does not mean you will obtain better performance than sequential image copies with small DB2 objects as there is an allocation cost ! ! ! Can provide share level change or share level reference image copy Share level change has an option to create a consistent image copy Uses backout processing on image copy to make it consistent Uses more system resources because backing out uncommitted work requires reading the logs and updating the image copy12 © 2011 IBM Corporation © 2011 Rocket Software
  13. 13. Information Management DB2 Fast Replication Image Copies NEW in DB2 V10 – Optional FlashCopy image copy Can create traditional image copies using the fast replication copy as input A sequential image copy can be created from the VSAM image copy: Or at a later time using the COPYTOCOPY utility Can be created on disk or tape Use cases: In case of media failure Shipped offsite for disaster recovery To archive copy from fast rep disk to slower disk or tape Both types of images copies are registered in SYSIBM.SYSCOPY Requirements: DB2 10 NFM FlashCopy Version 2 All data sets have to be on SMS managed volumes Source and target pairing rules http://www.redbooks.ibm.com/redbooks/pdfs/sg247892.pdf13 © 2011 IBM Corporation © 2011 Rocket Software
  14. 14. Information Management DB2 Fast Replication Image Copies NEW in DB2 Recovery Expert Supports DB2 V10 FlashCopy image copy Does not require data to be SMS managed Expands support to include DB2 V8, V8 CM and V9 Supports IBM FlashCopy V2 and EMC TimeFinder/Snap support14 © 2011 IBM Corporation © 2011 Rocket Software
  15. 15. Information Management DB2 Fast Replication Image Copies NEW in DB2 Recovery Expert Creates fast-replication image copy on disk like in DB2 VSAM copy is registered in Recovery Experts own internal database Managed like a GDG automatically by Recovery Expert Can setup daily, weekly Performs cleanup VSAM copy used for fast restore with parallel recovery (apply logs) Sequential copy can be created from VSAM copy and registered in SYSIBM.SYSCOPY VSAM copy can be deleted if desired Created with NOCOPY to reduce performance - won’t get copied twice Have limited fast replication disk so target high availability target spaces15 © 2011 IBM Corporation © 2011 Rocket Software
  16. 16. Information Management When to use SLBs versus Fast-Replication Image Copies System level backups recommended Instantaneous backup Instantaneous restore Parallel recovery One backup multiple uses Fast replication image copies – when to use it Some image copies are still required or desired Dependent on SLB implementation and frequency May take a SLB once a day May want fast replication image copies of high availability objects May want fast replication image copies of objects with high update activity Reorganizations Comfort level with image copies16 © 2011 IBM Corporation © 2011 Rocket Software
  17. 17. Information Management DB2 or IMS Recovery Expert Intelligent Recovery Manager17 © 2011 IBM Corporation © 2011 Rocket Software
  18. 18. Information ManagementDB2 or IMS Intelligent Recovery Manager- Definition Performs efficient local recoveries using available recovery resources and tools Backup and recovery utilities look like a single product from the end-users perspective – Centralizes backups – Only one product is needed for either all IMS or all DB2 recovery processes (local recovery, disaster recovery, rebuilding damaged index, database, etc.) – Sophisticated ISPF interface Simplifies and automates recovery processes: – Related databases and table spaces (application) can be grouped and saved (in advance) – Recovery JCL can be built (in advance) – Run-time analysis to determine recovery resources available • Combination of SLB and other IMS or DB2 recovery assets • Can be directed to use IMS or DB2 recovery assets only – Run-time analysis of what recovery utility to invoke and in what order – Recovery Expert products spawns jobs to perform recovery tasks – Takes the technical knowledge out of having to create complex recovery JCL18 © 2011 IBM Corporation © 2011 Rocket Software
  19. 19. Information ManagementDB2 or IMS Intelligent Recovery Manager Overview- System Level Recovery Analyzes system backup and DB2 or IMS system to generate JCL that will restore/recover the system in quickest way possible Automates volume restore process from either fast replication disk or from tape copy Full IMS or DB2 Restore – Restore entire DB2 or IMS system • Includes DB2 active and archive logs, BSDS, ICF catalogs and z/OS control datasets • Includes IMS Recons, active and archive logs, ICF catalogs and z/OS control datasets – Can be used for disaster restart or local restart of an entire DB2 or IMS system – Can be used at disaster site to replace traditional image copy recovery methods • SLB volumes are restored at DR site from a system backup on tape Data Only Recover – Restore volumes that contain DB2 tablespaces and Indexspaces or IMS Databases – Perform roll forward recovery with one pass of the log – Recovery of all objects is performed to a specified point in time after the SLB – For DB2, detects objects that had a LOG NO event occur in recovered log range • Automatically generates recovery using Image Copies and rebuild indexes for those objects19 © 2011 IBM Corporation © 2011 Rocket Software
  20. 20. Information ManagementDB2 or IMS Intelligent Recovery Manager Overview- Application Recovery From a System Level Backup Enables recovery of an application or individual table or index spaces to a point-in-time – Recover to current (DB2 or IMS) – Recover to a timestamp (DB2 or IMS) • For DB2 timestamp utility converts to RBA – Recover to an RBA/LRSN (DB2 only) Object profile created in advance – Single or group of objects – Supports wildcards to select multiple objects – Object profiles in DB2 Database Relationship Analyzer and Automation Tool can be used – Supports IMS DBRC groups – Saves recovery time because related applications are defined ahead of time and used when application needs recovery Analyzes all objects in the profile and generates the most appropriate recovery method for each object – DB2 or IMS related objects (DB2 RI) can automatically be included – Generates JCL to restore objects from either IC or SLB – Indexes that cannot be restored are rebuilt – Log apply occurs in single step eliminating multiple passes of the log – Access to objects is automatically stopped and restarted at end of recovery Storage-based fast-replication is used to perform restore (if available) – Performs an instantaneous data set restore process – Fast replication from SLB is available even if data set has moved or was deleted or an Online Reorg occurred after SLB – Recovery (log apply) is performed in parallel with volume restore process if fast replication is used20 © 2011 IBM Corporation © 2011 Rocket Software
  21. 21. Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Recovery from Fast-Replication Image Copy Restore from the NEW DB2 image copy technology is almost instantaneous Size of dataset does not matter Restore of each data set takes 1-2 seconds each Log apply performed simultaneously as data set is restored in the background inside the storage system21 © 2011 IBM Corporation © 2011 Rocket Software
  22. 22. Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Dropped Object Recovery Dropped object recovery to any version of the table – Reduces downtime by eliminating the cumbersome process of figuring out what needs to be created and how to restore the data – Fills gap in standard DB2 recovery tools of not being able to recover dropped objects Utility to save the DB2 object attributes in a DB2 Recovery Expert Schema Level Repository – Run on a scheduled basis to capture schema changes – Log Based Dropped object recovery in next release Recovery point: – Current, RBA/LRSN, to Copy (last full, last incremental, specific copy) Overview: – Display shows objects that no longer exist in DB2 catalog (dropped) • Users can visually see dropped objects – Create the DDL from the version selected • All related objects that have been dropped are automatically included – Load data from available Image Copy • Image copy entries are tracked in SLR – Apply logs to specified recovery point • Log apply is accomplished via building SQL statements from the log22 © 2011 IBM Corporation © 2011 Rocket Software
  23. 23. Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Recovery Versioning Recovers an object or application set of objects back to a prior version – Reduces downtime by eliminating the cumbersome process of figuring out what needs to be created and how to restore the data – If a DDL change was made that was incorrect, this allows you to recover to a prior version of the DDL Utility to save the DB2 object attributes in a DB2 Recovery Expert Schema Level Repository – Compares information stored in the system catalog tables against the information stored in the Schema Level Repository (SLR) repository to identify version differences Overview: – Drops the object definitions – Creates the DDL from the version specified • Automatically includes related objects that have changed as well – Loads data from available Image Copy – Apply the logs to specified timestamp or RBA/LRSN23 © 2011 IBM Corporation © 2011 Rocket Software
  24. 24. Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Log Analysis Services Enables recovery of individual tables or groups of objects to a point-in-time to provide the most efficient recovery – Recover to current – Recover to a timestamp (converts to RBA) – Recover to an RBA/LRSN – Reduces recovery complexity and speeds up the recovery process Quiet Time Advisor – Reads and analyzes the DB2 log to find quiet times or points of consistency for single or groups of objects – These points are saved in a DB2 table and can be selected (or generated) when a recovery is performed. Undo / Redo SQL plans – Undo SQL based recoveries can be generated to quickly “backout” transactions • This type of recovery is not supported by standard DB2 recovery tools – Redo SQL recoveries to quickly “roll-forward” changes – Generated SQL can be analyzed to identify and change errant transaction that caused issues – Can be used to recover just one table of a segmented tablespace – Includes recovering objects that contain XML or LOB columns – Provides recovery support not supported by standard DB2 recovery tools24 © 2011 IBM Corporation © 2011 Rocket Software
  25. 25. Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Dependency Analysis All related objects that must be recovered together will automatically be included – DB2 catalog referential integrity (RI) – User RI through an interface to Optim Database Relationship Analyzer (DRA) – Related objects (RI) can automatically be included25 © 2011 IBM Corporation © 2011 Rocket Software
  26. 26. Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Recovery Plans GUI recovery tool that presents many different plans (or methods) of recovery – Analyzes all recovery assets and methods and presents them in a list with most efficient plans presented first – Each plan uses a different primary recovery resource or different recovery method – Users can chose which method they want for a certain reason or use the recommended plan • SQL based recovery plans may not be the least expensive, but may be desired to view the SQL to find a bad transaction Recovery plans are assigned a relative cost to indicate how quickly they will run in comparison to the other plans – Users can easily identify which recovery method will get their data back the fastest – Cost calculation is an estimate based on the size of the data sets and the method of recovery Provides intelligent assistance for performing many types of DB2 recoveries – Faster, simpler recovery • You dont need an expert DBA • Provides recovery expertise to reduce downtime Builds restore/recover jobs – User chooses the selected plan and can review the generated JCL Executes the recovery plan – Can generate and execute the JCL in multiple jobs that run in parallel to execute recovery faster26 © 2011 IBM Corporation © 2011 Rocket Software
  27. 27. Information ManagementDB2 Intelligent Recovery Manager Overview- DB2 Recovery Plans Supports DB2 Version 10 “BACKOUT” feature – Generates recovery JCL using the RECOVER with BACKOUT keyword to recover an object by backing out transactions to the specified time or log point from the current object definition. – If restoring to a recent time, will most likely be the least expensive and quickest recovery plan. Supports index image copies – If an index is defined as COPY YES, and an image copy of the index is available, the index will be recovered from the image copy – If COPY NO, the index is rebuilt Improves recovery performance by executing utilities in parallel where appropriate – Includes restore and recover Option to generate an image copy after recovery Supports all DB2 version 10 features – DDL generation for dropped object recovery supports V10 features27 © 2011 IBM Corporation © 2011 Rocket Software
  28. 28. Information Management DB2 or IMS Recovery Expert Intelligent Disaster Recovery Manager28 © 2011 IBM Corporation © 2011 Rocket Software
  29. 29. Information ManagementDB2 or IMS Intelligent Disaster Recovery Manager- Definition Performs: – Local site procedures to prepare for offsite disaster recovery or disaster restart • Image copy method • System level backup method – Remote site restore operations and appropriate recovery or restart procedures – Simplifies and automates disaster recovery processes Disaster recovery or disaster restart creation of jobs to: – Perform traditional disaster recovery process – Restore system level backup and restart IMS or DB2 – Restore system level backup, restore conditioned RECONs, run recoveries to point in time, and restart IMS – Restore system level backup, update BSDS, restart DB2 apply logs to point in time – Restore system level backup, restart DB2, apply image copies that were sent offsite29 © 2011 IBM Corporation © 2011 Rocket Software
  30. 30. Information ManagementDB2 or IMS Intelligent Disaster Recovery Manager DB2 Options to: IMS Options to: Specify which archive logs are to be used at the disaster Specify which image copies, change accumulations, site and archive logs and what copy for transport to disaster Copy archive logs recovery site Option to force a checkpoint before archiving – Dump the Recovery Expert repository to the PDS and DBR for DB2 issues a SET LOG create recovery JCL LOGLOAD(0) command Copy archive logs to disk at the recovery site to reduce Option to force the active log to archive or eliminate contention on the archive log tape during recovery Build JCL to restore the DB2 catalog and directory from Image Copies Tape pick list Builds recovery procedures in the right order to Copy of RECON is created and conditioned with any match DB2 release requirements logs, change accums and image copies being sent to DR site Find appropriate DR image copies and store information about them in the PDS which will be shipped to the DR Removes the requirement to modify the site RECON at the DR site Dump the Recovery Expert repository to the PDS and If logs and change accums aren’t required, they are create recovery JCL marked in error in the conditioned recon so they wont be pulled in Copy archive logs to disk at the recovery site to reduce or eliminate contention on the archive log tape during Recovery JCL is created, backed up, and sent offsite recovery Catalog disaster recovery image copies in ICF catalog at DR site Build the bootstrap data set(s) (BSDS) For both: Recovery JCL created each time intelligent Disaster Recovery Manager is executed at local site Jobs are pre-built and placed in a PDS to be shipped to the disaster recovery site30 © 2011 IBM Corporation © 2011 Rocket Software

×