Creating a Physical Standby database using RMAN restore from service (Doc ID 2283978.1)

Last updated on AUGUST 21, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 to 12.2.0.1 [Release 12.1 to 12.2]
Information in this document applies to any platform.

Goal

Maximum Availability Architecture

The Maximum Availability Architecture (MAA) defines Oracle’s most comprehensive architecture for reducing downtime for scheduled outages as well as preventing, detecting and recovering from unscheduled outages. Real Application Clusters (RAC) and Oracle Data Guard are integral components of the Database MAA reference architectures and solutions.

More detailed information, such as a discussion of the purpose of MAA and the benefits it provides, can be found on the Oracle Technology Network (OTN) at http://www.oracle.com/technetwork/database/features/availability/maa-096107.html

Purpose of this Document

Starting in Oracle 12.1,  the RMAN “restore..from service” clause can be used to simplify the instantiation of  a standby database through an Oracle Net connection to the primary database.  The purpose of this document is to provide a step-by-step guide for creating a physical standby database utilizing the ‘from service’ clause.

 

NOTE:
  • This document applies to Oracle Database Server versions 12.1 or higher.
  • SECTION SIZE support is available. The section size clause used with multiple RMAN channels enables parallelization of the restore by breaking large files into smaller chunks.
  • Encryption is supported.
  • Compression is supported. It is not recommended to use compression on backups or data that has already been compressed (e.g. using OLTP, HCC compression) or encrypted since the compression benefits is very small and the overall impact (e.g. CPU resources and increased elapsed time) can be significant.


About RMAN Restore..from Service

The RMAN ‘restore..from service’ clause enables the restore and recover of primary database files to a standby database across the network. This functionality can be used to instantiate a standby database in lieu of the RMAN DUPLICATE DATABASE command and is more intuitive and less error prone thus saving time. Additionally, utilizing the SECTION SIZE clause with multiple RMAN channels enables parallelization of the restore, further improving the time required to instantiate.

NOTE: This ‘from service ‘ method can be used to recover an entire database, data files, control files, server parameter file, or tablespaces. This method becomes very handy when you need to synchronize the primary and standby database.

 

This paper assumes that the following conditions exist:

  1. A Primary database utilizing ASM for data file storage as well as Oracle Managed Files(OMF).
  2. The Primary database is in archive log mode.
  3. Password and Spfile are stored in ASM.
  4. The target Standby host has all the required Oracle software installed and configured.
  5. The Standby target database storage will utilize ASM storage and OMF.
  6. The Standby target resides on separate hardware.
  7. If role separation is used in your environment set the environment based on the roles with oracle or grid. In our example the oracle user owns both grid and oracle software installations.

All of the example names illustrated in this document use the following naming:

Hosts and Databases Used in this Example

 

Primary

Standby

Hosts

exa503, exa504

exa505, exa506

Database Unique Name

chicago

boston

Instance names

chicago1, chicago2

boston1, boston2

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms