0% found this document useful (0 votes)
19 views30 pages

Less10 RMAN

Uploaded by

Ahlam Hana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views30 pages

Less10 RMAN

Uploaded by

Ahlam Hana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 30

10

Using RMAN Enhancements

Copyright © 2007, Oracle. All rights reserved.


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

10 - 2 Copyright © 2007, Oracle. All rights reserved.


RMAN: New Features

• Improved performance by:


– Fast incremental backups on physical standby
– Improved block media recovery

Target
Data files database Image copies

Backup pieces
Change
Backup data
tracking
file
Flash Recovery Area

Auxiliary Recovery Manager (RMAN)


database

10 - 3 Copyright © 2007, Oracle. All rights reserved.


Optimized Backups

• Increased speed of compression by using the ZLIB


algorithm
CONFIGURE COMPRESSION ALGORITHM TO ZLIB;
• Improved protection by enhanced block corruption
detection

10 - 4 Copyright © 2007, Oracle. All rights reserved.


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

10 - 5 Copyright © 2007, Oracle. All rights reserved.


Optimized Backups

• Simplified archive log management in a multiple-


component environment
• Increased availability by failover of backup to optional
destinations

Target
Data files database Image copies

Backup pieces
Archive X
log files
Redundant Backup data
archive log
files Flash Recovery Area

10 - 6 Copyright © 2007, Oracle. All rights reserved.


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”

10 - 7 Copyright © 2007, Oracle. All rights reserved.


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 - 9 Copyright © 2007, Oracle. All rights reserved.


Using RMAN Multisection Backups

The BACKUP and VALIDATE DATAFILE commands option:

SECTION SIZE <integer> [M | K | G]

Channel 1
Section 1

Channel 2
Section 2

Channel 3
Section 3

Channel 4
Section 4
One large data file

10 - 10 Copyright © 2007, Oracle. All rights reserved.


Duplicating a Database

• With network (no backups required)


• Including customized SPFILE
• Via Enterprise Manager or RMAN command line

Destination or
AUXILIARY database
TCP/IP

Active source database

10 - 11 Copyright © 2007, Oracle. All rights reserved.


Active Database Duplication:
Selecting the Source

10 - 12 Copyright © 2007, Oracle. All rights reserved.


Selecting the Destination

10 - 13 Copyright © 2007, Oracle. All rights reserved.


Customizing Destination Options

10 - 14 Copyright © 2007, Oracle. All rights reserved.


Choosing Database Configuration

10 - 15 Copyright © 2007, Oracle. All rights reserved.


Scheduling Job Execution

10 - 16 Copyright © 2007, Oracle. All rights reserved.


Reviewing the Job

10 - 17 Copyright © 2007, Oracle. All rights reserved.


Database Duplication: Job Run

10 - 18 Copyright © 2007, Oracle. All rights reserved.


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';

10 - 19 Copyright © 2007, Oracle. All rights reserved.


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';

10 - 20 Copyright © 2007, Oracle. All rights reserved.


Creating Archival Backups with EM

10 - 21 Copyright © 2007, Oracle. All rights reserved.


Creating Archival Backups with RMAN

• Specifying the KEEP clause, when the database is


online includes both data file and archive log backup
sets:
KEEP {FOREVER | UNTIL TIME [=] ' date_string '}
NOKEEP
[RESTORE POINT rsname]

• List all restore points, known to the RMAN repository:


LIST RESTORE POINT ALL;
• Display a specific restore point:
LIST RESTORE POINT 'rsname';

10 - 22 Copyright © 2007, Oracle. All rights reserved.


Managing Archival Database Backups

1. Archiving a database backup:


CONNECT TARGET /
CONNECT CATALOG rman/rman@catdb
CHANGE BACKUP TAG 'consistent_db_bkup'
KEEP FOREVER;

2. Changing the status of a database copy:


CHANGE COPY OF DATABASE CONTROLFILE NOKEEP;

10 - 23 Copyright © 2007, Oracle. All rights reserved.


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.

10 - 24 Copyright © 2007, Oracle. All rights reserved.


Managing Catalogs: Using EM

2 3

10 - 26 Copyright © 2007, Oracle. All rights reserved.


The IMPORT CATALOG Command

1. Connecting to the destination recovery catalog:


CONNECT CATALOG cat111/oracle@destdb;
2. Importing metadata for all registered databases:
IMPORT CATALOG cat102/oracle@srcdb;
3. Importing metadata for two registered databases:
IMPORT CATALOG cat92/oracle@catdb DBID=1423241, 1423242;
4. Importing metadata from multiple catalogs:
IMPORT CATALOG cat102/rman@srcdb;
IMPORT CATALOG cat101/rman@srcdb;
IMPORT CATALOG cat92/rman@srcdb NO UNREGISTER;

10 - 27 Copyright © 2007, Oracle. All rights reserved.


Creating and Using Virtual Private Catalogs

Databases registered in RMAN catalog

RMAN Enhancing security


base by restricting access
catalog to metadata

Virtual private catalogs (VPC)

10 - 29 Copyright © 2007, Oracle. All rights reserved.


Using RMAN Virtual Private Catalogs

1. Create an RMAN base catalog:


RMAN> CONNECT CATALOG catowner/oracle@catdb;
RMAN> CREATE CATALOG;

2. Grant RECOVERY_CATALOG_OWNER to VPC owner:


SQL> CONNECT SYS/oracle@catdb AS SYSDBA
SQL> GRANT RECOVERY_CATALOG_OWNER to vpcowner

3a. Grant REGISTER to the VPC owner, or:


RMAN> CONNECT CATALOG catowner/oracle@catdb;
RMAN> GRANT REGISTER DATABASE TO vpcowner;

3b. Grant CATALOG FOR DATABASE to the VPC owner:


RMAN>GRANT CATALOG FOR DATABASE db10g TO vpcowner

10 - 30 Copyright © 2007, Oracle. All rights reserved.


Using RMAN Virtual Private Catalogs

4a. Create a virtual catalog for 11g clients, or:


RMAN> CONNECT CATALOG vpcowner/oracle@catdb;
RMAN> CREATE VIRTUAL CATALOG;

4b. Create a virtual catalog for pre-11g clients:


SQL> CONNECT vpcowner/oracle@catdb
SQL> exec catowner.dbms_rcvcat.create_virtual_catalog;

5. Register a new database in the catalog:


RMAN> CONNECT TARGET / CATALOG vpcowner/oracle@catdb;
RMAN> REGISTER DATABASE;

6. Use the virtual catalog:


RMAN> CONNECT TARGET / CATALOG vpcowner/oracle@catdb;
RMAN> BACKUP DATABASE;

10 - 31 Copyright © 2007, Oracle. All rights reserved.


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

10 - 32 Copyright © 2007, Oracle. All rights reserved.


Practice 10: Overview
Using RMAN Enhancements

This practice covers the following topics:


• Duplicating an active database
• Merging catalogs

10 - 33 Copyright © 2007, Oracle. All rights reserved.

You might also like