Академический Документы
Профессиональный Документы
Культура Документы
1 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
Business Continuity for Oracle E-Business Release 12 Using Oracle 11g (11gR1) Physical Standby Database
(Doc ID 1545920.1)
Oracle E-Business Suite Release 12 has numerous configuration options that can be chosen to suit particular business scenarios, hardware
capabilities, and availability requirements.
This document describes how to configure your Oracle E-Business Suite Release 12 environment to use Oracle Database 11gR1 as a physical
standby.
Note: This document applies to Oracle Database 11.1.0.7 only. For the equivalent information about Oracle Database version 11.2.0.1
or above, refer to My Oracle Support Knowledge Document 1070033.1.
The most current version of this document can be obtained in My Oracle Support Knowledge Document 1545920.1, Business Continuity for
Oracle E-Business Suite Release 12 Using Oracle 11g (11gR1) Physical Standby Database.
Note: While the general concepts in this paper apply to all operating systems and hardware architectures that Oracle supports, the
procedure has not been validated on the Windows platform.
There is a change log at the end of this document.
In This Document
This document is divided into the following sections:
Section
Section
Section
Section
Section
Section
Section
1:
2:
3:
4:
5:
6:
7:
Appendix
Appendix
Appendix
Appendix
Appendix
Appendix
Appendix
Appendix
Overview
Before You Start
Preparing the Primary Database for Standby Database Creation
Creating a Physical Standby Database
Configuration on Application Tiers After Standby Database is Enabled
Role Transitions
Oracle E-Business Suite Maintenance With Standby Database
Meaning
Application tier
Machines running forms, web, concurrent processing and other servers. Sometimes called middle tier.
Database tier
Primary system
Primary Oracle E-Business Suite system, which will be used to create a standby system.
Standby system
ORACLE
User account that owns the database file system (database ORACLE_HOME and files).
CONTEXT_NAME
The CONTEXT_NAME variable specifies the name of the applications context that is used by AutoConfig. The default
is <SID>_<hostname>.
STNDBY_CONTEXT
APPSpwd
Monospace text
Represents command line text; type such a command exactly as shown, excluding prompts such as '%'.
< >
Text enclosed in angle brackets represent a variable. Substitute a value for the variable text. Do not type the angle
brackets.
5/28/2015 12:31 AM
Document Display
2 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
On UNIX, the backslash character can be entered at the end of a command line to indicate continuation of the
command on the next line.
Primary database
alias
Note: This document covers both non-RAC and RAC configurations. "Note for Oracle RAC Configurations" denotes a step specific to
Oracle RAC.
Section 1: Overview
1.1 Standby Database
1.2 Oracle Data Guard
1.3 Oracle Data Guard Broker
5/28/2015 12:31 AM
Document Display
3 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
standby database is resynchronized with the primary database. If there is a need to failover before the standby database is
resynchronized, some data may be lost.
Maximum Performance
This mode offers slightly less data protection on the primary database, but higher performance than maximum availability mode. In
this mode, as the primary database processes transactions, redo data is asynchronously shipped to the standby database. The
commit operation on the primary database does not wait for the standby database to acknowledge receipt of redo data before
completing write operations on the primary database. If any standby destination becomes unavailable, processing continues on the
primary database, and there is little effect on primary database performance.
5/28/2015 12:31 AM
Document Display
4 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
Oracle Database Administrator's Guide 11g Release 1(11.1), Part No. B28310-04
Oracle Data Guard Concepts and Administration 11g Release 1 (11.1), Part No. B28294-03
In addition, you should be familiar with the following Oracle E-Business Suite Release 12 documentation:
My Oracle Support Knowledge Document 406982.1, Cloning Oracle Applications Release 12 with Rapid Clone
My Oracle Support Knowledge Document 559518.1, Cloning Oracle Applications Release 12 RAC-Enabled Systems with Rapid Clone
[Oracle RAC environments only]
My Oracle Support Knowledge Document 466649.1, Using Oracle 11g Release 1 (11.1.0.7) Real Application Clusters and Automatic
Storage Management with Oracle E-Business Suite Release 12 [Oracle RAC environments only]
Oracle
Database
11gR1
Minimum
Version
Additional Information
12.0.4 or
12.1.1
This document was developed using a fresh install database from an Oracle E-Business Suite Release
12.1.1 Rapid Install with the prerequisite patches listed in My Oracle Support Knowledge Document
406982.1, Cloning Oracle Applications Release 12 with Rapid Clone applied. For Oracle RAC enabled
systems, additional pre-requisite patches listed in My Oracle Support Knowledge Document 559518.1,
Cloning Oracle E-Business Suite Release 12 RAC-Enabled Systems with Rapid Clone were applied.
Database upgraded by following My Oracle Support Knowledge Document 735276.1, Interoperability Notes
E-Business Suite 12.0 with Oracle Database 11gR1 (11.1.0).
11.1.0.7
For Oracle RAC Configurations: Databases configured for Oracle RAC configurations should refer to My
Oracle Support Knowledge Document 466649.1, Using Oracle 11g Release 1 Real Application Clusters and
Automatic Storage Management with Oracle E-Business Suite Release 12.
Note: The standby system must use the same database and Oracle E-Business Suite versions.
This document refers to the following top-level directories:
Directory
Purpose
RDBMS_ORACLE_HOME
APPL_TOP
COMMON_TOP
Directory that contains directories and files used across application products
OracleAS 10.1.2 ORACLE_HOME ORACLE_HOME installed by Oracle E-Business Suite on application tier
INST_TOP
Note: If you want to ensure you have applied all the required application and database patches for cloning, refer to My Oracle Support
Knowledge Document 406982.1, Cloning Oracle Applications Release 12 with Rapid Clone for the latest patch information.
5/28/2015 12:31 AM
Document Display
5 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
Note: This statement may take a considerable amount of time to complete as it must wait for all unlogged direct write I/O operations to
finish.
Standby Listener
This listener only runs while the server is hosting a standby database. On switchover/failover, etc., the standard AutoConfig listener is used.
Use the same structure as the AutoConfig listener, substituting different values for port, host and listener name. See Appendix A: Oracle Net
Files for an example.
TNS Aliases
The aliases will be used by the fal_client.server init.ora parameters, allowing two-way communication between the primary and the
standby. The fal_client alias is a connect string to the standby; the fal_server alias is the reverse, a connect string to the primary. See
Appendix A: Oracle Net Files for an example.
Note for Oracle RAC Configurations: The TNS alias requirements are different. See A1 in Appendix A: Oracle Net Files for an
example.
To complete the implementation of the password file, you must add the parameter remote_login_passwordfile to your init.ora file as
described in the next step.
5/28/2015 12:31 AM
Document Display
6 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
On the primary database, define initialization parameters that control redo transport services while the database is in primary role.
Note: This document uses a static init.ora include file to record parameters. If you are using an spfile, disregard the ifile actions and
use the appropriate "alter system" command to make the necessary changes.
Define an archive log destination directory on the file system. Then, add these parameters to your database init.ora file via the ifile found
at <RDBMS ORACLE_HOME>/dbs/<CONTEXT_NAME>_ifile.ora.
Description
log_archive_dest_1
Archives redo data generated on primary database to the local file system.
Transmits redo data to the remote physical standby destination.
Options used:
log_archive_dest_2
SERVICE:
LGWR:
Redo Log information can be transmitted in one of two ways from primary to
physical standby either LGWR or ARCH process. LGWR is used in this
document.
ASYNC:
REOPEN:
The minimum number of seconds before the log writer process (LGWR)
should try again to access a previously failed destination.
MAX_FAILURE:
NET_TIMEOUT:
Specifies the number of seconds the log writer process on the primary system
waits for status from the network server (LNS n) process before terminating
the network connection.
log_archive_dest_state_2
When set to ENABLE, allows redo transport services to transmit redo data to the specified
destination. Set this value to ENABLE on primary site to send archive log files automatically to
standby.
log_archive_format
Used to specify the file name format when archiving redo log files. Will use system defaults if not
set.
log_archive_min_succeed_dest
Defines the minimum number of destinations that must succeed in order for the online log file to be
available for reuse.
log_archive_config
Enables or disables the sending of redo logs to remote destinations and the receipt of remote redo
logs, and specifies the unique database names (DB_UNIQUE_NAME) for each database in the Data
Guard configuration.
DB_UNIQUE_NAME
Unique Name to identify the primary and standby (For example 'dg12' for primary and 'dg12s' for
physical standby).
fal_server
Specifies the TNS network service name that the standby database should use to connect to the
FAL server process. FAL Server is Fetch Archive Log (FAL) Server which services requests for
archive redo logs from FAL clients running on multiple standby databases. Set this parameter to
primary database service name dg12 (for example) to request missing archived redo log files if
primary is unable to send the missing log files automatically.
fal_client
Specifies the TNS network service name that the primary database should use to connect to the
standby.
5/28/2015 12:31 AM
Document Display
7 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
standby_file_management
Set to AUTO. Whenever data files are added or dropped from primary database, corresponding
changes will be made automatically to the standby.
db_file_name_convert,
log_file_name_convert
Specify the path name and file name location of data files and redo log files. db_file_name_convert
parameter need not be set when the directory structures are same on primary and standby. But
log_file_name_convert should set to dummy values if you are using same directory structure to
enable redo log clearing.
Remote_login_passwordfile
This parameter checks specifies whether Oracle checks for a password file. Since we are using
password authentication this parameter should set.
For further explanation of the initialization parameters, refer to Oracle Data Guard Concepts and Administration 11g Release 1 (11.1).
The configuration examples use the names shown in the following table:
Primary Database Physical Standby Oracle RAC Primary Oracle RAC Standby
Oracle Net Service name dg12
dg12s
prod
stdby
SID
dg12
dg12
DB_UNIQUE_NAME
dg12
dg12s
prod
stdby
Note: The database SID is the same on both the primary and physical standby databases.
The following example shows the relevant initialization parameters of the primary database.
db_unique_name = dg12 ---- You need to change this to dg12s (Standby db_unique_name, for example) when you copy this file to
physical standby
log_archive_dest_1 = LOCATION=/arch1/dg12/ MANDATORY
log_archive_dest_2 = SERVICE=dg12s LGWR ASYNC=20480 DB_UNIQUE_NAME=dg12s OPTIONAL REOPEN=15 MAX_FAILURE=10 NET_TIMEOUT=30
log_archive_config='dg_config=(dg12,dg12s)'
# log_archive_dest_state_2 = defer
# log_archive_dest_state_2 = enable
log_archive_min_succeed_dest = 1
standby_file_management = AUTO
Remote_login_passwordfile = exclusive
log_archive_format = <name >%s_%t_%r. <ext > # Or can just leave as default.
Note for Oracle RAC Configurations: Configure <instance>_<node>_ifile.ora on all nodes in the primary Oracle RAC system. To
prevent overwriting of archive logs of different nodes on a shared file system, a specific format must be used for naming the archive
logs of each node. The following configuration assumes that prod and stdby are the service names/DB_UNIQUE_NAMES on the primary
and standby respectively.
db_unique_name=prod
log_archive_dest_1='LOCATION=<ORACLE_HOME>/dbs/arch/prod MANDATORY'
log_archive_dest_2='service=stdby \
valid_for=(online_logfiles,primary_role) \
db_unique_name=stdby LGWR ASYNC=20480 \
OPTIONAL REOPEN=15 NET_TIMEOUT=30'
log_archive_dest_state_1 = enable
log_archive_dest_state_2 = enable
fal_server=prod
fal_client=stdby
log_archive_format=prod1_%s_%t_%r.log
db_file_name_convert='<SHARED DATA LOCATION ON PRIMARY>','<SHARED DATA LOCATION STANDBY>'
log_file_name_convert='<Shared Log Files Location on Primary>','<Shared Log Files Location on STANDBY>'
standby_file_management=auto
5/28/2015 12:31 AM
Document Display
8 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
Save the output for use in a later step. For an example of the output, refer to Appendix C: Example Standby Database Commands.
3.9 Run the Application Tier and Database Tier for Pre-clone Scripts
1. As the ORACLE user, run the database pre-clone utility on the primary database server.
Note for Oracle RAC Configurations: Run pre-clone scripts on all database nodes and application tier nodes.
$ cd $RDBMS_ORACLE_HOME/appsutil/scripts/<context_name>
$ perl adpreclone.pl dbTier
3. OPTIONAL: Shut down all application tier services to copy the APPL_TOP. If your operating system returns errors when copying open
files, you may need to shut down application tier services to successfully copy the APPL_TOP and Oracle E-Business Suite technology
stack software.
5/28/2015 12:31 AM
Document Display
9 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
$ cd INST_TOP/admin/scripts/<context_name>
$ adstpall.sh apps/<apps password>
3.10 Copy APPL_TOP and Oracle E-Business Suite Technology Stacks to Application Tiers on the Standby Environment
For the list of directories to copy, refer to My Oracle Support Knowledge Document 406982.1, Cloning Oracle Applications Release 12 with
Rapid Clone. For details of cloning Oracle RAC systems, refer to My Oracle Support Knowledge Document 559518.1, Manually Cloning Oracle
Applications Release R12 with 10g or 11g RAC.
4.1 Copy the ORACLE_HOME and Database to the Standby Database Server
Copy the Oracle Home file system to the standby database server. If you natively compile your PL/SQL, be sure you include the file system
directories holding the compiled objects. The standard location for this is <RDBMS ORACLE_HOME>/plsql/nativelib.
There are three choices for backing up or copying the database to the standby site:
Manual Cold Backup - With the database shut down, copy all the database files and redo log files to the standby site
Manual Hot Backup - With the files open, put the tablespace in the backup mode, and copy the data files to the standby site.
RMAN - Use the 'duplicate database' command. See Appendix D: Using RMAN to Create Physical Standby Database and for RAC
Appendix E: RAC RMAN Cloning Example for examples of usage.
If you used RMAN to perform your backup, you do not need to place the tablespaces in 'hot backup' mode, or manually create your standby
control file. Refer to the RMAN documentation in the Oracle Database Backup and Recovery User's Guide for more details. RMAN restores a
backup control file, and copies all necessary database files and archived redo logs over the network to the standby host. However, while
RMAN recovers the standby database, it does not place it in manual or managed recovery mode.
4.2 Generate a Standby Control File and Copy it to Standby Database Server (optional)
Note: This is an optional step. If you used RMAN to copy the database, skip this step.
If the backup procedure required you to shut down the primary database, create the control file for the standby database.
You will need to recover past the time the control file is created, so switch logs and note the new log number.
SQL>alter database create standby controlfile as <directory >/<controlfile name>;
SQL>alter system switch logfile;
SQL>select thread#, sequence#-1 from v$log where status = CURRENT;
5/28/2015 12:31 AM
Document Display
10 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
Answer the questions when prompted. If you receive any errors registering the new ORACLE_HOME, follow the instructions given by the script
to correct them.
Note for Oracle RAC Configurations: In addition, perform the following steps.
1. Run adclonectx and adclone on all nodes.
2. Answer the questions when prompted: Enter 'Y" when prompted Current node is the first node in an N Node RAC Cluster
(y/n)[n]:y on every node, otherwise it will prompt for "Live RAC node", which will not be available at this time: refer to Appendix F:
Example Cloning Script.
3. Modify the init parameter files to point the correct diagnostic destination and utl_file_dir with standby context directory.
4. Run the following commands (shown split over a number of lines for readability).
$ perl <RDBMS_ORACLE_HOME>/appsutil/clone/bin/adclonectx.pl \ contextfile=<RDBMS_ORACLE_HOME>/appsutil
/<SID>_<Primary Application Host>.xml \ template=$Standby_ORACLE_HOME/appsutil/template/adxdbctx.tmp \ pairsfile=
<RDBMS_ORACLE_HOME>/appsutil/clone/pairsfile.txt
Your ORACLE user environment scripts are now ready to use. Source them for the next steps, using the appropriate OS command.
For example, in sh or ksh on UNIX:
$ cd <RDBMS ORACLE_HOME>
$ ./<STNDBY_CONTEXT>.env
If you have implemented native PL/SQL compilation, set up an rsync job from the primary database server to the standby database server
for the file system directories holding the compiled objects. The standard location for this is <RDBMS ORACLE_HOME>/plsql/nativelib.
4.5 Configure Oracle Net for Redo Transmission, Start the Listener
Note for Oracle RAC Configurations: Perform these steps on all nodes.
1. As the ORACLE user, copy the listener_ifile.ora and <CONTEXT_NAME>_ifile.ora from the primary server's <TNS_ADMIN>
directory to the standby server's <TNS_ADMIN> directory. As part of the copy, rename the primary <CONTEXT_NAME>_ifile.ora to the
standby's <STNDBY_CONTEXT>_ifile.ora matching the spelling and case in the file name in the last line of the standby server's
tns_names.ora file.
2. In the <STNDBY_CONTEXT>_ifile.ora, be sure the entry for the standby service's HOST parameter holds the standby database host
name and the FAL service's host name is the primary host name.
3. In the listener_ifile.ora file, ensure that the HOST for the standby service entry points to the standby database host.
4. As the ORACLE user, start the database listener for the standby:
$ lsnrctl start <standby service name>
5/28/2015 12:31 AM
Document Display
11 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
database:
$ cd <ORACLE_HOME>/dbs
$ cp <CONTEXT_NAME>_ifile.ora <STNDBY_CONTEXT>_ifile.ora
LOG_ARCHIVE_DEST_2 to point to the standby service. This is required when standby is switched to primary and ships redo to new
standby
e.g. LOG_ARCHIVE_DEST_2 for 'service=dg12s ASYNC REGISTER VALID_FOR=(online_logfile,primary_role)
DB_UNIQUE_NAME=dg12'
If you are using an spfile and therefore not using the AutoConfig generated init.ora, make the following additional changes:
diagnostic_dest to <RDBMS_ORACLE_HOME>/admin/ <STNDBY_CONTEXT>
utl_file_dir for context specific directories
Finally, add an entry for the standby control file you created on the primary and copied to this server:
control_files = (<control file directory>/<standby control file>, <control file directory>/<standby control file>)
Note for Oracle RAC Configurations: log_archive_dest_1 should be set to the same shared location on all standby instances. The
standby redo logs will be archived to this location and should be accessible by all other standby instances.
4.7 Mount the Physical Standby, Start Processing Redo on the Standby
Note: Ensure that the password file created in 3.3 Set Up Secure Connections exists under $ORACLE_HOME/dbs.
As the ORACLE user on the standby database server, do the following after the database copy is complete:
1. Mount the standby database. Connect to SQL*Plus as a sysdba and issue these commands:
Note: Skip this step if you used RMAN for standby creation.
4.8 Start Shipping Redo From the Primary to the Standby Database Server
As the ORACLE user on the primary database server, set log_archive_dest_state_2 to enable in the database initialization file.
# log_archive_dest_state_2 = defer
# log_archive_dest_state_2 = enable
Still on the primary, check for the status of the archive destinations to determine the most recently archived redo log file at each redo
transport destination. The most recently archived redo log file should be the same for each destination. If it is not, a status other than VALID
may identify and error encountered during the archival operation to that destination:
SQL>select * from v$archive_dest_status where status != 'INACTIVE';
On each database server, this query will show which logs have been sent/received and applied:
5/28/2015 12:31 AM
Document Display
12 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
SQL>select sequence#, applied, to_char(first_time, 'mm/dd/yy hh24:mi:ss') first from v$archived_log order by first_time;
On the standby database server, monitor the database alert log for recovery progress.
$ cd <COMMON_TOP>/clone/bin
$ perl adclonectx.pl <INST_TOP>/appl/admin/<PRIMARY CONTEXT>.xml
Note: Ignore database connection failures while running the above command.
Refer to My Oracle Support Knowledge Document 406982.1 Cloning Oracle Applications Release 12 with Rapid Clone for details.
2. When the script has finished and the context file is created, execute the following commands, again resolving he reference to
<APPL_TOP> manually:
Note: If the application tier is configured as a concurrent server only, then modify the context variable <s_isWeb> to YES. After
executing the commands below, change it back to NO. For further information, refer to Bug 14253714.
$ cd APPL_TOP/ad/12.0.0/bin
$ perl adconfig.pl contextfile=$INST_TOP/appl/admin/<STNDBY CONTEXT>.xml run=INSTE8
Answer the questions when prompted. This creates your environment files on the application tier. It tries to connect to the database,
so some portions will fail, but the environment scripts should be created successfully.
5/28/2015 12:31 AM
Document Display
13 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
Repeat this on the primary server, creating directories matching the standby context name, to be ready for a switchover operation.
For UNIX systems, on the primary application tier(s), set up an rsync job in cron, to run every few minutes. The following example
synchronizes the log directory:
$ rsync av <APPLCSF>/log <standby_host>: <APPLCSF from PRODUCTION >/log --rsync-path=/usr/local/bin/rsync
4. Check whether the primary is ready for switch. Query the switchover_status column of the v$database fixed view to determine
whether the database is ready to switch modes.
5/28/2015 12:31 AM
Document Display
14 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
If this query returns "TO STANDBY", then the environment is ready to switch. If it returns "ACTIVE SESSIONS", then the switch
command should be used with the 'session shutdown' option.
After this statement completes, the primary database is converted to a standby database. As part of the statement's execution, the current
control file is backed up to the current SQL session's trace file, making it possible to reconstruct the control file if necessary.
Change the value of LOG_ARCHIVE_DEST_STATE_2 to defer on primary.
This should return a value 'TO PRIMARY'. Any other value, such as SESSIONS ACTIVE, NOT ALLOWED, and so on, should be investigated
and corrected as in step 2 above.
5/28/2015 12:31 AM
Document Display
15 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
2. As the ORACLE user on the new primary database server, use AutoConfig to complete configuration for primary operations, providing
the APPS password when prompted:
$ cd <RDBMS ORACLE_HOME>/appsutil/scripts/<context>
$ ./adautocfg.sh
3. When this completes, stop and start the listener on the new primary database server:
$ lsnrctl stop
$ lsnrctl start <SID>
4. On the new standby server, stop and start the listener for standby services:
$ lsnrctl
$ lsnrctl start <Standby Service>
5. For application-specific configurations, follow the steps in 6.4 Configurating Application Tiers After Role Transition (switchover,
failover, switchback).
Note for Oracle RAC Configurations: Repeat above steps [2-4] for each instance. Rerun AutoConfig on all nodes after
completing steps [2-4] for each instance to update all configuration files with all nodes in the cluster.
6.2.1 Verify that standby database has the most recently archived redo log file for each primary database redo thread
Query the V$ARCHIVED_LOG view on the target standby database to obtain the highest log sequence number for each redo thread:
SQL>SELECT UNIQUE THREAD# AS THREAD, MAX(SEQUENCE#) OVER (PARTITION BY thread#) AS LAST from V$ARCHIVED_LOG;
If this query returns a row, it indicates at least one archived redo log is missing from the standby. If you still have access to your primary
database, you can determine the full name of the redo logs by querying v$archived_log, using the low_sequence# and high_sequence#
returned above:
SQL>select name from v$archived_log
5/28/2015 12:31 AM
Document Display
16 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
Locate the missing logs and copy them to the standby server's standby redo log destination, then register them:
SQL>alter database register physical logfile '<filespec/name on standby>';
Note only one gap at a time is reported in v$archive_gap. If you find a gap and resolve it, repeat this process until no more gaps are
reported.
6.2.4 Stop redo apply and finish applying all received redo data
Note for Oracle RAC Configurations: Shut down all other instances before you perform the following steps.
When all available logs are present and registered on the standby, stop redo apply:
SQL>alter database recover managed standby database cancel;
When that completes, convert the physical standby to a primary database role:
SQL>alter database commit to switchover to primary;
SQL>shutdown immediate;
SQL>startup pfile=?/dbs/init<SID>.ora
Note: You should back up this database without delay, as you cannot recover any changes made after the failover without a fresh
backup.
2. As the ORACLE user on the new primary database server, use AutoConfig to complete configuration for primary operations, providing
the APPS password when prompted:
$ cd <ORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME>
$ ./adautocfg.sh
3. When this completes, stop and start the listener on the new primary database server:
5/28/2015 12:31 AM
Document Display
17 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
SQL>lsnrctl stop
SQL>lsnrctl start <SID>
To complete application-specific configurations, follow the steps in 6.4 Application Tier Configuration After a Role Transition
(switchover/failover/switchback).
Note for Oracle RAC Configurations: Repeat above steps 2 and 3 for each instance.
Primary Site
Verify primary database at standby site is open and standby database at primary site is mounted.
Verify all the redo logs are transferred to standby and applied.
Check whether switchover_status from v$database is showing TO STANDBY.
On the primary database, issue the command:
SQL>alter database commit to switchover to physical standby
5.
6.
7.
8.
Adjust the LOG_ARCHIVE_DEST_STATE_2 defer at standby site(primary database) and enable at primary site (standby database).
Adjust the network configurations as mentioned in 6.1.5 Switch the selected standby database to the primary role.
Shut down and mount the database as standby at the standby site.
Start the recovery by issuing the following commands at the primary site:
SQL>alter database commit to switchover to physical primary
5/28/2015 12:31 AM
Document Display
18 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
If you do not synchronize your concurrent manager log and out directories, blank out the host name in the fnd_concurrent_requests
table to avoid network timeout errors:
SQL>update apps.fnd_concurrent_requests
set logfile_node_name = null,
outfile_node_name = null;
SQL>update apps.fnd_conc_req_outputs set file_node_name=' ';
If you run the latter update, you must execute it before starting the concurrent managers on the system. If you do not execute it before
starting the managers, you must add a where clause to limit the rows updated to those pointing to the old host names. This does not need
to complete before you run the next step. However, if you let users on to the system before it is committed, they will get errors if they try to
access a report's log or out file that was generated on the old primary system.
6.4.6 Re-point your CM log and out and native PL/SQL object directory rsync scripts (optional)
If you are keeping your concurrent manager log and out directories synchronized across the environments, set up your rsync scripts to move
the files from the new primary server to the new standby server.
5/28/2015 12:31 AM
Document Display
19 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
standby recovery before applying patches. This document uses the approach of stopping recovery.
If you have enough disk space, backup both the databases and Oracle E-Business Suite file system before patching.
5/28/2015 12:31 AM
Document Display
20 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
If the patch required updating the database ORACLE_HOME with a new set of Apps utilities (appsutil.zip), you should also reconfigure the
database server. As the ORACLE user, run the database pre-clone utility on the primary database server:
$ cd <RDBMS ORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME>
$ perl adpreclone.pl dbTier
This recreates your environment files on the application tier. It tries to connect to the database, so some portions fail, but the environment
scripts should be successfully created.
5/28/2015 12:31 AM
Document Display
21 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
Note for Oracle RAC Configurations: Perform the following steps on each instance.
If you had to synchronize the apps utilities on the database server in the previous step, you should also reconfigure the database server. As
the ORACLE user on the standby database server, first stop the listener if it is running, then use the cloning toolkit to define the database tier
topology at the standby site:
$ lsnrctl stop <SID>
$ cd <RDBMS ORACLE_HOME>/appsutil/clone/bin
$ perl adcfgclone.pl dbTechStack
dg12s
SID
dg12
dg12
5/28/2015 12:31 AM
Document Display
22 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
5/28/2015 12:31 AM
Document Display
23 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
In the above example, RMAN automatically copies the server parameter file to the standby host and then starts the auxiliary instance
using this file.
5/28/2015 12:31 AM
Document Display
24 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
3. Enable recovery on the node that is to be used for the recovery process.
5/28/2015 12:31 AM
Document Display
25 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
Answer the questions when prompted. If you receive any errors registering the new ORACLE_HOME, follow the instructions
given by the script to correct them.
For Target instance is a Real Application Cluster (RAC) instance (y/n) [y]: n
You need to enter 'n' as standby is non-RAC.
Note: If adlnkoh.sh fails, re-link Oracle using the rac_off option, and then run adcfgclone again.
Your ORACLE user environment scripts are now ready to use. Source them for the next steps, using the appropriate OS
command.
For example, in sh or ksh on UNIX:
$ cd <RDBMS ORACLE_HOME>
$ ./ <STNDBY_CONTEXT>.env
5/28/2015 12:31 AM
Document Display
26 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
If you have implemented native PL/SQL compilation, set up an rsync job from the primary database server to the standby
database server for the file system directories holding the compiled objects. The standard location for this is <RDBMS
ORACLE_HOME>/plsql/nativelib.
Modify the initialization parameter, as per 4.6 Modify the Database init.ora Parameters on the Standby Server.
4. Stop the standby listener and configure for net redo transmission.
Stop the listener and modify the <StandbySID>_ifile.ora to configure net redo transmission. Refer to Section 4 Creating a
Physical Standby Database.
5. Startup instance in nomount.
sqlplus / as sysdba
startup nomount
After the above the command execution the database will be in mount state running with the initialization parameter (PFILE).
Put the standby database in 'managed recover' mode.
SQL>alter database recover managed standby database disconnect from session;
For application tier configuration, follow the steps in Section 4: Creating a Physical Standby Database from 4.8 Start Shipping
Redo From the Primary to the Standby Database Server through 4.10 Add Your Temp Files to the Standby Database, and then
all the steps in Section 5: Configuration on Application Tiers After Standby Database is Enabled.
H1. Prerequisites:
Prior to using Oracle Data Guard Broker, the standby database should be configured.
You must be using a server parameter file (SPFILE).
The data guard broker starts database instances during switchover or failover using a statically registered service name. Therefore, it
is necessary to add a static descriptor to the custom listener.ora file [<TNS_ADMIN>/<CONTEXT_NAME>_ifile.ora]. If you choose
the DGMGRL default, then configure as per option 1 below; if you are using a different static descriptor, then set the DGMGRL
StaticConnectIdentifier property, as per option 2.
Option 1:
The default option is for the broker to assume the service "<DB_UNIQUE_NAME>_DGMGRL.<db_domain>" has been statically
registered with the listener of each instance. Add a SID_DESC entry as below :
(SID_DESC =
(GLOBAL_DBNAME=<DB_UNIQUE_NAME>_DGMGRL.us.oracle.com)
(ORACLE_HOME= <ORACLE_HOME>)
(SID_NAME = <SID>)
)
5/28/2015 12:31 AM
Document Display
27 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
Option 2:
Set the primary and standby databases StaticConnectIdentifier property, to a TNS alias that resolves to a statically registered
descriptor.
DGMGRL>edit database
alias to connect the
DGMGRL>edit database
alias to connect the
Add the two TNS aliases to ifile (<sid>_<node>_ifile.ora) under TNS_ADMIN on both standby and primary.
For Example:
dg_prim=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<primary host>(PORT=<port>))(CONNECT_DATA=(SID=<sid>)
(SERVER=DEDICATED)))
dg_stndby=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<standby host>(PORT=<port>))(CONNECT_DATA=(SID=<sid>)
(SERVER=DEDICATED)))
On Standby
5/28/2015 12:31 AM
Document Display
28 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
4. To complete the switchover, follow the steps in Section 6: Role Transitions starting from 6.1.6 Complete the Database Configurations.
3.2 Switchback
Follow the same steps from the above section , but change the database name to switch over.
For example
DGMGRL> switchover to dbbrok; --> where dbbrok is current standby after a switchover.
3.3 Failover
There are two types of failover using Oracle Data Guard Broker:
Manual failover
Automatic failover using FAST START FAILOVER option (not supported for Oracle E-Business Suite)
Manual Failover
1. Connect DGMGRL to the standby database.
dgmgrl sys/manager@<Standby Database alias>
DGMGRL> failover to <Standby Database>
Performing failover NOW, please wait...
Failover succeeded, new primary is "stndby"
2. To complete the failover, follow the steps in Section 6: Role Transitions starting from 6.2.6 Complete the database configuration.
Automatic Failover
Automatic failover is not supported in the Oracle E-Business Suite environment, since you need to run AutoConfig before bringing the
standby environment online. During this time, this section will be updated when post failover configurations are automated.
Change Log
Date
Description
03 Jun 2014
06 Apr 2014
26 Feb 2014
01 Aug 2013
16 Apr 2013
Initial publication.
My Oracle Support Knowledge Document 1545920.1, Business Continuity for Oracle E-Business Suite Release 12 Using Oracle 11g (11gR1)
Physical Standby Database, by Oracle E-Business Suite Development.
Documentation Notices
Copyright 2014, Oracle and/or its affiliates. All rights reserved.
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are
5/28/2015 12:31 AM
Document Display
29 of 29
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-stat...
protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy,
reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any
means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please
report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S.
Government, the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the
hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable
Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and
adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or
documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S.
Government.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended
for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or
hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures
to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware
in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are
trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks
or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information on content, products, and services from third parties.
Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party
content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to
your access to or use of third-party content, products, or services.
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic
/lookup?ctx=acc&id=docacc.
Access to Oracle Support
Oracle customers have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic
/lookup?ctx=acc&id=info or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs if you are hearing impaired.
Didn't find what you are looking for?
5/28/2015 12:31 AM