Download presentation
Presentation is loading. Please wait.
Published byKerry Norris Modified over 8 years ago
1
10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements
2
Copyright © 2007, Oracle. All rights reserved. 10 - 2 Objectives After completing this lesson, you should be able to: Describe the new and enhanced RMAN features in Oracle Database 11g Configure archivelog deletion policies Duplicate active databases by using the Oracle network (without backups) Back up large files in multiple sections Create archival backups for long-term storage Manage the recovery catalog—for example, merge multiple catalog versions Describe the use of virtual private catalogs
3
Copyright © 2007, Oracle. All rights reserved. 10 - 3 RMAN: New Features Image copies Backup pieces Backup data Data files Flash Recovery Area Auxiliary database Change tracking file Recovery Manager (RMAN) Improved performance by: –Fast incremental backups on physical standby –Improved block media recovery Target database
4
Copyright © 2007, Oracle. All rights reserved. 10 - 4 Optimized Backups Increased speed of compression by using the ZLIB algorithm Improved protection by enhanced block corruption detection CONFIGURE COMPRESSION ALGORITHM TO ZLIB;
5
Copyright © 2007, Oracle. All rights reserved. 10 - 5 Optimized Backups Optimized undo backup for automatically reduced backup time and storage Flexibility to use VSS-enabled software –Allows the database to participate in snapshots coordinated by VSS-compliant backup management tools and storage products –Database automatically recovered upon snapshot restore via RMAN
6
Copyright © 2007, Oracle. All rights reserved. 10 - 6 Optimized Backups Simplified archive log management in a multiple- component environment Increased availability by failover of backup to optional destinations Image copies Backup pieces Backup data Data files Flash Recovery Area Target database Redundant archive log files Archive log files X
7
Copyright © 2007, Oracle. All rights reserved. 10 - 7 RMAN: New Features The following pages have more details about: Faster and optimized backup through intrafile parallel backup and restore Simplified active database duplication Simplified archival backups for long-term storage Simplified information infrastructure by merging catalogs Enhanced security by restricting DBA backup catalog access to owned databases “virtual private catalog”
8
Copyright © 2007, Oracle. All rights reserved. 10 - 8 RMAN Notes Only
9
Copyright © 2007, Oracle. All rights reserved. 10 - 9 Parallel Backup and Restore for Very Large Files Multisection backups of a single file: Are created by RMAN, with your specified size value Are processed independently (serially or in parallel) Produce multipiece backup sets Improve performance of the backup
10
Copyright © 2007, Oracle. All rights reserved. 10 - 10 Using RMAN Multisection Backups The BACKUP and VALIDATE DATAFILE commands option: SECTION SIZE [M | K | G] Section 1 Section 2 Section 3 Section 4 Channel 1 Channel 2 Channel 3 Channel 4 One large data file
11
Copyright © 2007, Oracle. All rights reserved. 10 - 11 Duplicating a Database With network (no backups required) Including customized SPFILE Via Enterprise Manager or RMAN command line Active source database Destination or AUXILIARY database TCP/IP
12
Copyright © 2007, Oracle. All rights reserved. 10 - 12 Active Database Duplication: Selecting the Source
13
Copyright © 2007, Oracle. All rights reserved. 10 - 13 Selecting the Destination
14
Copyright © 2007, Oracle. All rights reserved. 10 - 14 Customizing Destination Options
15
Copyright © 2007, Oracle. All rights reserved. 10 - 15 Choosing Database Configuration
16
Copyright © 2007, Oracle. All rights reserved. 10 - 16 Scheduling Job Execution
17
Copyright © 2007, Oracle. All rights reserved. 10 - 17 Reviewing the Job
18
Copyright © 2007, Oracle. All rights reserved. 10 - 18 Database Duplication: Job Run
19
Copyright © 2007, Oracle. All rights reserved. 10 - 19 The RMAN DUPLICATE Command DUPLICATE TARGET DATABASE TO dbtest FROM ACTIVE DATABASE SPFILE PARAMETER_VALUE_CONVERT '/u01', '/u02' SET SGA_MAX_SIZE = '200M' SET SGA_TARGET = '125M' SET LOG_FILE_NAME_CONVERT = '/u01','/u02' DB_FILE_NAME_CONVERT = '/u01','/u02';
20
Copyright © 2007, Oracle. All rights reserved. 10 - 20 Creating a Standby Database with the DUPLICATE Command DUPLICATE TARGET DATABASE FOR STANDBY FROM ACTIVE DATABASE SPFILE PARAMETER_VALUE_CONVERT '/u01', '/u02' SET "DB_UNIQUE_NAME"="FOO" SET SGA_MAX_SIZE = "200M" SET SGA_TARGET = "125M" SET LOG_FILE_NAME_CONVERT = '/u01','/u02' DB_FILE_NAME_CONVERT = '/u01','/u02';
21
Copyright © 2007, Oracle. All rights reserved. 10 - 21 Creating Archival Backups with EM
22
Copyright © 2007, Oracle. All rights reserved. 10 - 22 Creating Archival Backups with RMAN Specifying the KEEP clause, when the database is online includes both data file and archive log backup sets: List all restore points, known to the RMAN repository: Display a specific restore point: KEEP {FOREVER | UNTIL TIME [=] ' date_string '} NOKEEP [RESTORE POINT rsname] LIST RESTORE POINT ALL; LIST RESTORE POINT 'rsname';
23
Copyright © 2007, Oracle. All rights reserved. 10 - 23 Managing Archival Database Backups 1.Archiving a database backup: 2.Changing the status of a database copy: CHANGE COPY OF DATABASE CONTROLFILE NOKEEP; CONNECT TARGET / CONNECT CATALOG rman/rman@catdb CHANGE BACKUP TAG 'consistent_db_bkup' KEEP FOREVER;
24
Copyright © 2007, Oracle. All rights reserved. 10 - 24 Managing Recovery Catalogs Managing recovery catalogs: 1.Create the recovery catalog. 2.Register your target databases in the recovery catalog. 3.If desired, merge recovery catalogs. 4.If needed, catalog any older backups. 5.If needed, create virtual recovery catalogs for specific users. 6.Protect the recovery catalog.
25
Copyright © 2007, Oracle. All rights reserved. 10 - 25 Notes Only
26
Copyright © 2007, Oracle. All rights reserved. 10 - 26 Managing Catalogs: Using EM 3 2 1
27
Copyright © 2007, Oracle. All rights reserved. 10 - 27 The IMPORT CATALOG Command 1.Connecting to the destination recovery catalog: 2.Importing metadata for all registered databases: 3.Importing metadata for two registered databases: 4.Importing metadata from multiple catalogs: IMPORT CATALOG cat102/oracle@srcdb; IMPORT CATALOG cat102/rman@srcdb; IMPORT CATALOG cat101/rman@srcdb; IMPORT CATALOG cat92/rman@srcdb NO UNREGISTER; IMPORT CATALOG cat92/oracle@catdb DBID=1423241, 1423242; CONNECT CATALOG cat111/oracle@destdb;
28
Copyright © 2007, Oracle. All rights reserved. 10 - 28 The IMPORT CATALOG Command Notes Page
29
Copyright © 2007, Oracle. All rights reserved. 10 - 29 RMAN base catalog Virtual private catalogs (VPC) Enhancing security by restricting access to metadata Databases registered in RMAN catalog Creating and Using Virtual Private Catalogs
30
Copyright © 2007, Oracle. All rights reserved. 10 - 30 Using RMAN Virtual Private Catalogs 1.Create an RMAN base catalog: 2.Grant RECOVERY_CATALOG_OWNER to VPC owner: 3a.Grant REGISTER to the VPC owner, or: 3b.Grant CATALOG FOR DATABASE to the VPC owner: RMAN> CONNECT CATALOG catowner/oracle@catdb; RMAN> CREATE CATALOG; SQL> CONNECT SYS/oracle@catdb AS SYSDBA SQL> GRANT RECOVERY_CATALOG_OWNER to vpcowner RMAN> CONNECT CATALOG catowner/oracle@catdb; RMAN> GRANT REGISTER DATABASE TO vpcowner; RMAN>GRANT CATALOG FOR DATABASE db10g TO vpcowner
31
Copyright © 2007, Oracle. All rights reserved. 10 - 31 Using RMAN Virtual Private Catalogs 4a.Create a virtual catalog for 11g clients, or: 4b.Create a virtual catalog for pre-11g clients: 5.Register a new database in the catalog: 6.Use the virtual catalog: RMAN> CONNECT CATALOG vpcowner/oracle@catdb; RMAN> CREATE VIRTUAL CATALOG; SQL> CONNECT vpcowner/oracle@catdb SQL> exec catowner.dbms_rcvcat.create_virtual_catalog; RMAN> CONNECT TARGET / CATALOG vpcowner/oracle@catdb; RMAN> REGISTER DATABASE; RMAN> CONNECT TARGET / CATALOG vpcowner/oracle@catdb; RMAN> BACKUP DATABASE;
32
Copyright © 2007, Oracle. All rights reserved. 10 - 32 Summary In this lesson, you should have learned how to: Describe the new and enhanced RMAN features in Oracle Database 11g Configure archivelog deletion policies Duplicate active databases by using the Oracle network (without backups) Back up large files in multiple sections Create archival backups for long-term storage Manage recovery catalog—for example, merge multiple catalog versions Describe the use of virtual private catalogs
33
Copyright © 2007, Oracle. All rights reserved. 10 - 33 Practice 10: Overview Using RMAN Enhancements This practice covers the following topics: Duplicating an active database Merging catalogs
34
Copyright © 2007, Oracle. All rights reserved. 10 - 34
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.