1 Chapter 15 Duplicating Databases and Transporting Data.

Slides:



Advertisements
Similar presentations
ITEC474 INTRODUCTION.
Advertisements

INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008.
ITEC474 Control File Maintenance
1 Getting The Most Out of RMAN By: Charles Pfeiffer CIO, Remote Control DBA (888)
CERN - IT Department CH-1211 Genève 23 Switzerland t Transportable Tablespaces for Scalable Re-Instantiation Eva Dafonte Pérez.
5 Copyright © 2006, Oracle. All rights reserved. Database Recovery.
Database Backup and Recovery
RMAN Restore and Recovery
Backup and Recovery Part 1.
Chapter 12 Performing Incomplete Recovery. Background Viewed as one of the more difficult chapters to write Thought it was important to put in material.
CHAPTER 16 User-Managed Backup and Recovery. Introduction to User Managed Backup and Recovery Backup and recover is one of the most critical skills a.
Configuring Recovery Manager
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
Chapter 5 Configuring the RMAN Environment. Objectives Show command to see existing settings Configure command to change settings Backing up the controlfile.
Backup & Recovery with RMAN
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
CHAPTER 17 Configuring RMAN. Introduction to RMAN RMAN was introduced in Oracle 8.0. RMAN is Oracle’s tool for backup and recovery. RMAN is much more.
CERN - IT Department CH-1211 Genève 23 Switzerland t Oracle Data Guard for RAC migrations WLCG Service Reliability Workshop CERN, November.
The Oracle Recovery Manager (RMAN)
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
CHAPTER 18 RMAN Backups and Reporting. Introduction to RMAN Backups and Reporting The focus of this chapter is backups of: Datafiles Control files Archived.
Agenda  Overview  Configuring the database for basic Backup and Recovery  Backing up your database  Restore and Recovery Operations  Managing your.
Introduction to Oracle Backup and Recovery
Using RMAN to Perform Recovery
CHAPTER 16 User-Managed Backup and Recovery. Introduction to User Managed Backup and Recovery Backup and recover is one of the most critical skills a.
20 Copyright © 2004, Oracle. All rights reserved. Database Recovery.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
Oracle Recovery Manager (RMAN) 10g : Reloaded
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
Recovery Manager Overview Target Database Recovery Catalog Database Enterprise Manager Recovery Manager (RMAN) Media Options Server Session.
SRUTHI NAGULAVANCHA CIS 764, FALL 2008 Department of Computing and Information Sciences (CIS) Kansas State University -1- Back up & Recovery Strategies.
5 Copyright © 2004, Oracle. All rights reserved. Using Recovery Manager.
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.
Backup and Recovery Protects From Data Loss. Backup and Recovery Protects From Data Loss Provides for Media Recovery.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
Chapter 9 Scripting RMAN. Background Authors felt that scripting was a topic not covered well Authors wanted to cover both Unix/Linux and Windows environments.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
11g(R1/R2) Data guard Enhancements Suresh Gandhi
RMAN: Your New Best Friend for Backup and Recovery Ruth Gramolini ORACLE DBA Vermont Department of Taxes.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
11 DISASTER RECOVERY Chapter 13. Chapter 13: DISASTER RECOVERY2 OVERVIEW  Back up server data using the Backup utility and the Ntbackup command  Restore.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
Backup and Recovery Part 2. Online backup Online backup requirements: Backup all data files (file system copy) Backup all redo information produced during.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
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.
10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements.
Control File Information The database name The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace.
Oracle Standby Implementation Tantra Invedy. Standby Database Introduction Fail over Solution Disaster Recovery Solution if remote Ease of implementation.
RMAN Maintenance.
RMAN Maintenance.
Recovery Catalog Creation and Maintenance
Is 221: Database Administration
Clonedb: The quick and easy cloning solution you never knew you had.
Performing Tablespace Point-in-Time Recovery
Performing Tablespace Point-in-Time Recovery
Duplicating a Database
Performing Database Recovery
Introduction.
Presentation transcript:

1 Chapter 15 Duplicating Databases and Transporting Data

2 RMAN Duplication Features You can duplicate a database without even making a backup of the source database first by using the new Oracle Database 11g technique of network-enabled duplication You can register in the same recovery catalog as the primary database, since the duplicate database will have its own unique DBID You can exclude certain tablespaces, such as the read-only tablespaces You can duplicate the database on the same server or on a remote host You can duplicate a database to a past point in time if you want

3 Filenames Might be Different from Source to Duplicate Datafiles Control files Online redo log files Temp files

4 Renaming Files in a Duplicate Database duplicate target database to dupdb from active database spfile parameter_value_convert '/a01', '/a20' set sga_max_size = 800m set sga_target = 700m set log_file_name_convert = '/a01','/a20', db_file_name_convert '/a01','/a20';

5 Creating a Duplicate Database on the Same Host These prerequisites apply to all database duplication jobs: You must connect to both the target (source) database and the auxiliary (destination) instance. You must start the auxiliary instance with the nomount option. You can’t use a standby database as the target database. You’ll need the password file for the auxiliary instance only if you’re using the RMAN client on a different host than the auxiliary host or if you duplicate from an active database (see recipe 15-3 and recipe 15-4) The target database can be open or closed Both the source and destination databases must be on the same operating system platform (32-bit and 64-bit versions of a platform are considered identical).

6 During the Database Duplication RMAN does the following: 1. Generates a unique DBID for the new duplicate database 2. Creates a new control file for the duplicate database 3. Restores the backups and performs an incomplete recovery using all backups and archived redo logs 4. Shuts down and starts up the auxiliary instance 5. Opens the duplicate database with the resetlogs option, thus clearing the online redo logs

7 Duplicating a Database Without Any RMAN Backups In Oracle Database 11g you duplicate a database without having a backup Use active database clause of duplicate database command Network enabled database duplication

8 Duplicating a Database to a Remote Host w/same Filestructure Nice feature for automating the replication of a database to another host Might need to replicate a production database to another box for testing purposes Troubleshooting production problems in a non-production environment

9 Steps for Replicating 1. Backup database 2. Verify the backup 3. Create directories and modify duplicate database initialization file 4. Startup auxiliary database in nomount mode 5. Check Oracle Net connections 6. Run duplicate database command

10 Duplicating a Database When Directories are Different Quite often source and duplicate make have different directory structures Use the db_file_name_convert parameter Creates a new locations for datafiles and online redo log files

11 Creating a Standby Database on Different Host from Primary Standby database (Data Guard) is Oracle’s disaster recovery tool Physical standby database is a block for block copy of primary database Use the syntax “backup current controlfile for standby format”

12 Duplicating a Database to a Point in Time in Past May want to rebuild production database to a point in time in the past for testing purposes May want to see a database as data existed for a point in time in the past Use duplicate...until clause

13 Skipping Tablespaces You may only need to duplicate part of a database May not need tablespaces like tools or users in your duplicated tablespace Use skip tablespace clause

14 Duplicating a Database with a Specific Backup Tag You want to force RMAN to use a specific backup to be used when duplicating RMAN> list backup of database; Change backupsets that you don’t want RMAN to use marked as unavailable RMAN> change backupset unavailable;

15 Resynchronizing a Duplicate Database You can periodically synchronize a duplicate database with the primary Rerun the duplicate database command Recopies the datafiles over

16 Transporting Tablespaces on the Same OS Platform Use RMAN transport tablespace command Tablespace must be self contained (no referential integrity to other objects in other tablespaces) RMAN creates an auxiliary tablespace which it uses to create transportable tablespaces

17 Transporting Tablespaces Across Different Operating System Platforms Big endian vis little endian format If two operating systems use the same endian format, then no differences from previous example If endian format different then you must convert the tablespaces being transported to match target operating system format

18 Transporting an Entire Database to a Different Platform Useful for moving database from one operating system to another Use convert database command Transport doesn’t include bfiles, controlfiles, redo logs, and temp files

19 Transporting a Database by Converting Datafiles on the Target Platform You may do this if you’re converting the source database to several different target platforms Make sure source database is eligible for conversion Use convert datafile command