® IBM Software Group © IBM Corporation QUY Thai Duy – ITFac DLU Lesson 7: Movement, backup and restore data.

Slides:



Advertisements
Similar presentations
18 Copyright © Oracle Corporation, All rights reserved. Transporting Data Between Databases.
Advertisements

INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
17 Copyright © 2005, Oracle. All rights reserved. Performing Flashback.
® IBM Software Group © IBM Corporation QUY Thai Duy – ITFac DLU Lesson 2: The DB2 Environment.
Moving Data Lesson 23. Skills Matrix Moving Data When populating tables by inserting data, you will discover that data can come from various sources.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
Backups, Archives, Exports l Backup - Used to make a duplicate of a database, table, or log as a safety measure. Use SQL Enterprise Manager l Archive -
Module 7: Restoring Databases. Overview SQL Server Recovery Process Preparing to Restore a Database Restoring Backups Restoring Databases from Different.
Database Backup and Recovery
Backup and Recovery (2) Oracle 10g CAP364 1 Hebah ElGibreen.
Backup and Recovery Part 1.
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Oracle backup and recovery strategy
Introduction to Oracle Backup and Recovery
Using RMAN to Perform Recovery
Backup & Recovery Concepts for Oracle Database
Backup & Recovery 1.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
Microsoft ® Official Course Module 13 Troubleshooting and Recovering Windows 8.
5 Copyright © 2008, Oracle. All rights reserved. Using RMAN to Create Backups.
Chapter 7 Making Backups with RMAN. Objectives Explain backup sets and image copies RMAN Backup modes’ Types of files backed up Backup destinations Specifying.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
18 Copyright © Oracle Corporation, All rights reserved. Workshop.
Backup and Recovery Overview Supinfo Oracle Lab. 6.
MS SQL by: Bryan Bankhead CIS 407. General Concepts  Backing up and Restoring databases and transaction logs is a way that SQL Server provides protection.
1 Week #10Business Continuity Backing Up Data Configuring Shadow Copies Providing Server and Service Availability.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
High Availability in DB2 Nishant Sinha
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Chapter 15: Reliability and Security in Database Servers Neyha Amar CS 157B May 6, 2008.
© 2006 Northgate Information Solutions plc and its associated companies. All rights reserved. Slide 1.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
19 Copyright © 2004, Oracle. All rights reserved. Database Backups.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
What is Flashback? Technology that allows you to revert the database to a point in time in the past Several versions of flashback available Different types.
23 Copyright © 2004, Oracle. All rights reserved. Preferring the Past: Flashback.
9 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Oracle Database High Availability
RMAN Maintenance.
Database recovery contd…
Database Administration
Backup and Recovery.
Incremental Recovery Ingres 9.2 Sarkaut Mohn December 2008
Backup and Recovery (1) Oracle 10g Hebah ElGibreen CAP364.
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Oracle Database High Availability
Chapter 11 Managing Databases with SQL Server 2000
Presentation transcript:

® IBM Software Group © IBM Corporation QUY Thai Duy – ITFac DLU Lesson 7: Movement, backup and restore data

IBM Software Group Agenda  Data movement overview  Export  Import  Backup  Restore

IBM Software Group Data Movement Tools

IBM Software Group Data Movement Tools  EXPORT, IMPORT, LOAD  IXF, DEL, ASC  db2move  Easily export/import/load/copy set of tables & data (IXF)  db2look  Extracts:  DDL  permissions  database statistics  Tablespace characteristics

IBM Software Group EXPORT  Export data based on SQL Statement

IBM Software Group Launching the EXPORT Table Dialog  Control Center > (expand) All Databases folder > (select) Tables Folder > (right-click) Table > Export

IBM Software Group IMPORT  High-speed SQL INSERT  Activates triggers  All Constraints enforced immediately  Uses BUFFERPOOL IMPORT FROM employee.ixf OF IXF REPLACE_CREATE INTO employee_copy

IBM Software Group Launching the IMPORT Dialog Control Center > (expand) All Databases folder > (select) Tables Folder > (right-click) Table > Import

IBM Software Group LOAD  Very High Speed, low level data loader  separate LOAD, BUILD, DELETE phases  Uses utility heap (UTIL_HEAP_SZ)  Does NOT use bufferpool and does NOT activate triggers  Constraints enforced as separate step, may define  EXCEPTION tables  online LOAD supported

IBM Software Group Launching the LOAD Wizard Control Center > (expand) All Databases folder > (select) Tables Folder > (right-click) Table > Load

IBM Software Group Database Backup  Point-in-time image of a database  Backup example (try it now!):  BACKUP DB sample TO C:\BACKUPS

IBM Software Group Example of Backup File Names

IBM Software Group Database Recovery  A database restore will recreate the database from a backup  The database will exist as it did at the time the backup completed  If archival logging were used before the database crash, it would then be possible to roll forward through the log files to reapply any changes since the backup was taken.  It is possible to roll forward either to the end of the logs or to a specific point in time.  The granularity available on the last transaction needs to be weighed against database performance.

IBM Software Group Recovery Types  Crash/Restart Recovery  Uses the RESTART DATABASE command or the automatic restart enable configuration parameter (autorestart) to protect a database from being left in an inconsistent, or unusable, state.  Version/Image Recovery  BACKUP & RESTORE commands to put the database in a state that was previously saved (data since last backup lost).  Rollforward Recovery  BACKUP & RESTORE and ROLLFORWARD commands to recover a database to a specified point in time (minimal data loss).

IBM Software Group Database Restore  Restore example: drop db sample RESTORE DB sample FROM TAKEN AT

IBM Software Group Also possible with BACKUP and RESTORE  Restore over existing database  Clone database from a backup image (redirected restore)   Backup by tablespace  Restore only tablespace from full backup image  Delta and Incremental Backups  Backup from flash copy  Recovery of dropped tables