Creating a Physical Standby database using RMAN restore database from service
(Doc ID 2283978.1)
Last updated on AUGUST 05, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 12.1.0.2 and later Oracle Cloud Infrastructure - Database Service - Version N/A and later Oracle Cloud at Customer - Version N/A and later Information in this document applies to any platform.
Goal
NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.
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.
Provide a step-by-step guide for instantiating a standby database using the RMAN “from service” clause to copy directly from the primary database through an Oracle Net connection.
NOTE:
This document applies to Oracle Database Server versions 12.1 to 19c and higher.
SECTION SIZE support is available. The section size clause used with multiple RMAN channels enables parallelization of individual files by dividing large files into smaller pieces. This improves the overall efficiency of parallelization across channels.
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 'FROM SERVICE' clause
The RMAN ‘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 improves the efficiency of parallelization of the restore, further improving instantiation times.
NOTE: This ‘FROM SERVICE‘ method can be used to restore or recover an entire database, individual data files, control files, server parameter file, or tablespaces. This method is useful in synchronizing the primary and standby database.
This paper assumes that the following conditions exist:
The network between the primary and standby sites is reliable and has been assessed and determined to support the peak redo generation rate of the primary. See note 2275154.1 for details on assessing the network.
A primary database utilizing ASM for data file storage as well as Oracle Managed Files(OMF).
The primary database is in archive log mode.
The primary database online redo logs:
are identical in size
are sized so they do not switch more than 6 times per hour at peak redo generation (this can significantly impact redo apply in Data Guard)
reside on the DATA disk group
are multiplexed on NORMAL redundancy disk groups (HIGH redundancy disk groups are not multiplexed)
have a minimum of 3 groups for each thread of a RAC database
Password and spfile are stored in ASM.
The target standby host has all the required Oracle software installed and configured.
The standby database database software matches the primary database software. Including PSU/RU/RUR and one off patches.
The standby target database storage will utilize ASM storage and OMF.
The standby target resides on separate hardware.
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 database 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
<primaryhost1>,<primaryhost2>
<standbyhost1>,<standbyhost2>
Database Unique Name
<primary unique name>
<standby unique name>
Instance names
<primary unique name>1, <primary unique name>2
<standby unique name>1, <standby unique name>2
Solution
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!