Oracle Application Server 10g Administrator's Guide 10g (9.0.4) Part Number B10376-01 |
|
This chapter describes Oracle Application Server recovery strategies and procedures for different types of failures and outages.
It contains the following topics:
This section describes Oracle Application Server recovery strategies for different types of failures and outages. It contains the following topics:
This section describes recovery strategies for outages that involve actual data loss or corruption, host failure, or media failure where the host or disk cannot be restarted and are permanently lost. This type of failure requires some type of data restoration before the Oracle Application Server environment (middle tier, Infrastructure, or both) can be restarted and continue with normal processing.
The strategies in this section use point-in-time recovery of the middle tier and Infrastructure. This means that, no matter where the loss occurred, the middle tier and Infrastructure are always restored together so they are in sync as they were at the time of the last backup.
The following assumptions apply to the recovery strategies in this section:
ARCHIVELOG
mode was enabled for all Metadata Repository backups.
Appendix G, "Examples of Administrative Changes" to learn more about administrative changes
See Also:
Recovery strategies are listed in the following tables:
Use this table if you experience data loss, host failure, or media failure in an Infrastructure installation. Find the type of loss and follow the recommended procedure. The procedures apply to Infrastructure that are installed into a single Oracle home, as well as Infrastructures with Identity Management in one Oracle home and a Metadata Repository in another Oracle home or host.
Use this table if you experience data loss, host failure, or media failure in a middle-tier installation. Find the type of loss and follow the recommended procedure.
If the loss occurred in both the Infrastructure and middle tier, follow the Infrastructure recovery strategy first, then the middle tier.
Type of Loss | Recovery Strategies |
---|---|
Loss of host |
You can restore to a new host that has the same hostname and IP address. Follow the procedure in Section 14.2.2, "Restoring an Infrastructure to a New Host". |
Oracle software/binary loss or corruption |
If any Oracle binaries have been lost or corrupted, you must recover the entire Infrastructure. Follow the procedure in Section 14.2.1, "Restoring an Infrastructure to the Same Host". |
Database or data failure of the Metadata Repository (datafile loss, control file loss, media failure, disk corruption) |
If the Metadata Repository is corrupted due to data loss or media failure, you can restore and recover it. Follow the procedure in Section 14.2.3, "Restoring and Recovering the Metadata Repository". |
Deletion or corruption of configuration files |
If you lose any configuration files in the Infrastructure Oracle home, you can restore them. Follow the procedure in Section 14.2.4, "Restoring Infrastructure Configuration Files". |
Deletion or corruption of configuration files and data failure of the Metadata Repository |
If you lose configuration files and the Metadata Repository is corrupted, you can restore and recover both. Follow these procedures: |
Table 14-2 Recovery Strategies for Data Loss, Host Failure, and Media Failure in Middle-tier Instances
Type of Loss | Recovery Strategies |
---|---|
Loss of host |
If the host has been lost, you have two options:
In either case, follow the procedure in Section 14.2.6, "Restoring a Middle-tier Installation to a New Host". Note that if the original host had a middle-tier installation and an Infrastructure, you cannot restore the middle-tier to a host with a different hostname or IP address. |
Oracle software/binary deletion or corruption |
If any Oracle binaries have been lost or corrupted, you must restore the entire middle tier to the same host. Follow the procedure in Section 14.2.5, "Restoring a Middle-tier Installation to the Same Host". |
Deletion or corruption of configuration files |
If you lose any configuration files in the middle tier Oracle home, you can restore them. Follow the procedure in Section 14.2.7, "Restoring Middle-tier Configuration Files". |
This section describes recovery strategies for process crashes and system outages. These types of outages do not involve any data loss, and therefore do not require any files to be recovered. In some cases, failure may be transparent and no manual intervention is required to recover the failed component. However, in some cases, manual intervention is required to restart a process or component. While these strategies do not strictly fit into the category of backup and recovery, they are included in this book for completeness.
Recovery strategies for process crashes and system outages are listed in the following tables:
Use this table if you experience crash or outage in an Infrastructure. Find the type of outage and follow the recommended procedure. The procedures apply to Infrastructures that are installed into a single Oracle home, as well as Infrastructures with Identity Management in one Oracle home and a Metadata Repository in another Oracle home or host.
Use this table if you experience a crash or outage on a middle-tier installation. Find the type of outage and follow the recommended procedure.
Type of Outage | How to Check Status and Restart |
---|---|
Host crash - no data loss |
To restart:
|
Metadata Repository instance failure (loss of the contents of a buffer cache or data residing in memory) |
To check status:
To restart: ORACLE_HOME |
Metadata Repository listener failure |
To check status:
To restart:
|
Oracle Internet Directory server process ( |
To check status:
To restart:
|
Oracle Internet Directory monitor process ( |
To check status:
To restart:
|
Application Server Control failure |
To check status:
To restart:
|
Oracle HTTP Server process failure |
To check status:
To restart:
|
OC4J instance failure |
To check status:
To restart:
|
DAS instance failure |
To check status:
To restart:
|
OPMN daemon failure |
To check status:
To restart:
|
Type of Outage | How to Check Status and Restart |
---|---|
Host crash - no data loss |
To restart:
|
Application Server Control failure |
To check status:
To restart:
|
Oracle HTTP Server process failure |
To check status:
To restart:
|
OC4J instance failure |
To check status:
To restart:
|
OPMN daemon failure |
To check status:
To restart:
|
OracleAS Web Cache failure |
To check status:
To restart:
|
This section contains the procedures for performing different types of recovery.
It contains the following topics:
This section describes how to restore an Infrastructure to the same host. You can use this procedure when you have lost some or all of your Oracle binaries.
It contains the following steps:
Refer to Section 3.2.2, "Stopping an Infrastructure" for instructions.
Note: If your Infrastructure is split and has Identity Management in one Oracle home, and the Metadata Repository in another Oracle home, perform this step on both Oracle homes. |
Restore the backup (tar
, cpio
) of the Infrastructure Oracle home from your complete Oracle Application Server environment backup. Be sure your method of restoring the files preserves the original owner, group, permissions, and timestamps.
Note: If your Infrastructure is split and has Identity Management in one Oracle home, and the Metadata Repository in another Oracle home, perform this step on both Oracle homes. |
Restore all configuration files from your most recent backup. You can perform this step using your own procedure or the OracleAS Backup and Recovery Tool. For example, to do this using the tool:
cdBACKUP_TOOL_DIRECTORY
./
bkp_restore.pl -m restore_config -t config_bkp_timestamp
See Also:
Chapter 12, "Oracle Application Server Backup and Recovery Tool" for more information. |
Restore and recover the Metadata Repository from your latest backup. You can perform this step using your own procedure or the OracleAS Backup and Recovery Tool.
See Also:
Section 12.7, "Best Practices for Restoring and Recovering the Metadata Repository" to determine the best method for restoring and recovering the Metadata Repository |
Refer to Section 3.2.1, "Starting an Infrastructure" for instructions.
This section describes how to restore an Infrastructure to a host with the same hostname and IP address as the original host. You can use this procedure to:
It contains the following steps:
If you are restoring to a new host, make sure it has an identical system configuration to the original host. Refer to the record you created in Section 13.2.2, "Creating a Record of Your Oracle Application Server Configuration".
/etc/hosts
is identical to the original /etc/hosts
file. Make sure the values for IP address, hostname, and aliases are identical and in the same order.
The user may have the same password or a different password than the original user.
/var/opt/oracle
or /etc
.
oraInventory
directory resided in a directory that was separate from the Infrastructure Oracle home, restore it.
Note: If your Infrastructure is split and has Identity Management in one Oracle home, and the Metadata Repository in another Oracle home, perform this step on both Oracle homes. |
Restore the backup (tar
, cpio
) of the Infrastructure Oracle home from your complete Oracle Application Server environment backup. Be sure your method of restoring the files preserves the original owner, group, permissions, and timestamps.
Note: If your Infrastructure is split and has Identity Management in one Oracle home, and the Metadata Repository in another Oracle home, perform this step on both Oracle homes. |
Restore all configuration files from your most recent backup. You can perform this step using your own procedure or the OracleAS Backup and Recovery Tool. For example, to do this using the tool:
cdBACKUP_TOOL_DIRECTORY
./
bkp_restore.pl -m restore_config -t config_bkp_timestamp
See Also:
Chapter 12, "Oracle Application Server Backup and Recovery Tool" for more information. |
Restore and recover the Metadata Repository from your latest complete Oracle Application Server environment backup or online backup, whichever was most recent.
You can perform this step using your own procedure or the OracleAS Backup and Recovery Tool.
See Also:
Section 12.7, "Best Practices for Restoring and Recovering the Metadata Repository" to determine the best method for restoring and recovering the Metadata Repository |
ORACLE_HOME
/root.sh
Refer to Section 3.2.1, "Starting an Infrastructure" for instructions.
This section describes how to restore and recover the Metadata Repository. You can use this when there has only been corruption to the Metadata Repository, and not to any other files in the Oracle home.
Restore and recover the Metadata Repository from your latest backup using your own procedure or the OracleAS Backup and Recovery Tool.
See Also:
Section 12.7, "Best Practices for Restoring and Recovering the Metadata Repository" to determine the best method for restoring and recovering the Metadata Repository |
This section describes how to restore the configuration files in an Infrastructure Oracle home. You can use this procedure when configuration files have been lost or corrupted.
It contains the following steps:
Refer to Section 3.2.2, "Stopping an Infrastructure" for instructions.
Note: If your Infrastructure is split and has Identity Management in one Oracle home, and the Metadata Repository in another Oracle home, perform this step on both Oracle homes. |
Restore all configuration files from your most recent backup. You can perform this step using your own procedure or the OracleAS Backup and Recovery Tool. For example, to do this using the tool:
cdBACKUP_TOOL_DIRECTORY
./
bkp_restore.pl -m restore_config -t config_bkp_timestamp
See Also:
Chapter 12, "Oracle Application Server Backup and Recovery Tool" for more information. |
If you made any administrative changes since the last time you did an online backup, reapply them now.
See Also:
Appendix G, "Examples of Administrative Changes" to learn more about administrative changes |
Refer to Section 3.2.1, "Starting an Infrastructure" for instructions.
This section describes how to restore a middle-tier installation to the same host. You can use this procedure when you have lost some or all of your Oracle binaries.
It contains the following steps:
Refer to Section 3.2.4, "Stopping a Middle-Tier Instance" for instructions.
If the middle-tier instance uses a DCM repository (file-based or database), make sure the DCM repository is up.
Restore the backup (tar
, cpio
) of the middle-tier Oracle home from your complete Oracle Application Server environment backup. Be sure your method of restoring the files preserves the original owner, group, permissions, and timestamps.
Restore all configuration files from your most recent backup. You can perform this step using your own procedure or the OracleAS Backup and Recovery Tool. For example, to do this using the tool:
cdBACKUP_TOOL_DIRECTORY
./
bkp_restore.pl -m restore_config -t config_bkp_timestamp
See Also:
Chapter 12, "Oracle Application Server Backup and Recovery Tool" for more information. |
Refer to Section 3.2.3, "Starting a Middle-Tier Instance" for instructions.
This section describes how to restore and recover a middle-tier installation to a new host. You can use this procedure to
It contains the following steps:
If you are restoring to a new host, make sure it has an identical system configuration to the original host. Refer to the record you created in Section 13.2.2, "Creating a Record of Your Oracle Application Server Configuration".
The new host may have the same or different hostname and IP address.
/etc/hosts
lists the IP address, hostname, and aliases in the same order as the original /etc/hosts
file.
The user may have the same password or a different password than the original user.
/var/opt/oracle
or /etc
.
oraInventory
directory resided in a directory that was separate from the middle-tier Oracle home, restore it.
Restore the backup (tar
, cpio
) of the middle-tier Oracle home from your complete Oracle Application Server environment backup. Be sure your method of restoring the files preserves the original owner, group, permissions, and timestamps.
Restore all configuration files from your most recent backup. You can perform this step using your own procedure or the OracleAS Backup and Recovery Tool. For example, to do this using the tool:
cdBACKUP_TOOL_DIRECTORY
./
bkp_restore.pl -m restore_config -t config_bkp_timestamp
See Also:
Chapter 12, "Oracle Application Server Backup and Recovery Tool" for more information. |
This step is required only if all of the following conditions are true:
Since the DCM file-based repository on the original host was lost, you must restore (import) the DCM file-based repository to the new host as follows:
ORACLE_HOME
/opmn/bin/opmnctl stopproc ias-component=dcm-daemon
ORACLE_HOME
/dcm/bin/dcmctl importRepository -filefile_name
Where file_name
is the repository backup you made during your most recent backup.
ORACLE_HOME
/opmn/bin/opmnctl startproc ias-component=dcm-daemon
When you run the importRepository
command, the middle-tier instance you are currently restoring on the new host becomes the repository host instance. If you intend to continue to use the original host, you must notify the original host that it is no longer the repository host instance. To do this, run the following command in the middle-tier instance on the original host:
ORACLE_HOME
/dcm/bin/dcmctl repositoryRelocated
See Also:
Oracle Application Server 10g High Availability Guide for instructions on importing a DCM file-based repository |
ORACLE_HOME
/root.sh
Start OPMN and OPMN-managed processes:
ORACLE_HOME
/opmn/bin/opmnctl startall
Start Application Server Control:
ORACLE_HOME
/bin/emctl start iasconsole
This section describes how to restore the configuration files in a middle-tier Oracle home. Use this procedure when configuration files have been lost or corrupted.
It contains the following steps:
Refer to Section 3.2.4, "Stopping a Middle-Tier Instance" for instructions.
If the middle-tier instance uses a DCM repository (file-based or database), make sure the DCM repository is up.
Restore all configuration files from your most recent backup. You can perform this step using your own procedure or the OracleAS Backup and Recovery Tool. For example, to do this using the tool:
cdBACKUP_TOOL_DIRECTORY
./
bkp_restore.pl -m restore_config -t config_bkp_timestamp
See Also:
Chapter 12, "Oracle Application Server Backup and Recovery Tool" for more information |
If you made any administrative changes since the last time you did an online backup, reapply them now.
See Also:
Appendix G, "Examples of Administrative Changes" to learn more about administrative changes |
Refer to Section 3.2.3, "Starting a Middle-Tier Instance" for instructions.
|
![]() Copyright © 2002, 2003 Oracle Corporation. All Rights Reserved. |
|