Skip Headers
Oracle® Application Server Administrator's Guide
10g Release 2 (10.1.2)
B13995-08
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
 

19 Introduction to Backup and Recovery

This chapter provides information on getting started with Oracle Application Server backup and recovery.

It contains the following topics:

19.1 Philosophy of Oracle Application Server Backup and Recovery

This section introduces the philosophy for backing up and recovering your Oracle Application Server environment. An Oracle Application Server environment can consist of different components and configurations. To determine which components and configurations best meet your requirements, refer to the Oracle Application Server Installation Guide and Oracle Application Server Concepts.

A typical Oracle Application Server environment contains:

The installations in an Oracle Application Server environment are interdependent in that they contain configuration information, applications, and data that are kept in sync. For example, when you perform a configuration change, you might update configuration files in the middle-tier installation and Infrastructure; when you deploy an application, you might deploy it to all middle-tier installations; and when you perform an administrative change on a middle-tier installation, you might update data in the Metadata Repository.

It is, therefore, important to consider your entire Oracle Application Server environment when performing backup and recovery. For example, you should not back up your middle-tier installation on Monday and your Infrastructure on Tuesday. If you lose files in your middle-tier installation, you could restore it to Monday's state. However, your Infrastructure would be in its current state—out of sync with the middle tier. And, because you backed up the Infrastructure on Tuesday, you would have no means of restoring it to a state in sync with Monday's middle-tier installation. You would not be able to restore your environment to a consistent state.

Instead, you should back up your entire Oracle Application Server environment at once. Then, if a loss occurs, you can restore your entire environment to a consistent state.

For the purposes of backup and recovery, you can divide your Oracle Application Server environment into different types of files, as shown in Figure 19-1.

Figure 19-1 Types of Files for Oracle Application Server Backup and Recovery

An Oracle Mid-tier host and an Oracle Infrastructure host.
Description of "Figure 19-1 Types of Files for Oracle Application Server Backup and Recovery"

The types of files for backup and recovery are:

The strategies and procedures in this book involve backing up and recovering these different types of files in a manner that maintains your Oracle Application Server environment in a consistent state.


Note:

Your Oracle Application Server environment contains additional files to those mentioned in this section, such as log files; database configuration files, including orapwd, and spfile/pfile; and additional files you may deploy in the Oracle home, such as static HTML files and CGI scripts. You can add any of these files to the backup list.

19.2 Overview of the Backup Strategy

This section describes the backup strategy used in this book. It contains the following topics:

19.2.1 Types of Backups

The Oracle Application Server backup strategy involves two types of backups:

Image Backup

An image backup of an Oracle Application Server instance includes the Oracle Home directory of that instance, the OraInventory directory, the oratab file, and Windows registries on that node and finally a cold instance backup of that Oracle Application Server instance. The Oracle Home directory contains all the binary files, executables, initialization files, configuration files, log files, and so forth of the OracleAS instance and of all components and deployed applications in that instance. The OraInventory directory contains the installation information for the instance.

In Figure 19-2, the files that are backed up during an image backup of an Oracle Application Server environment are shaded. An image backup includes everything necessary to restore the initial installation of your Oracle Application Server environment including the Metadata Repository if the instance is an Infrastructure. To avoid an inconsistent backup, do not make any configuration changes until the backup is completed for all Oracle Application Server instances.

Figure 19-2 Files Backed Up in an Image Backup of an Oracle Application Server Environment

An Oracle Mid-tier host and an Oracle Infrastructure host.
Description of "Figure 19-2 Files Backed Up in an Image Backup of an Oracle Application Server Environment"

Instance Backup

The contents of an Instance Backup depends on the type of Oracle Application Server instance that is being backed up. There are three types of instance backups:

  • Oracle Application Server Infrastructure Instance Backup—The Backup and Recovery Tool first backs up the entire Oracle Metadata Repository database. The database contains the product metadata schemas for Oracle Application Server mid-tier components such as Portal and Wireless. If Identity Management is also installed in this instance, then the database may also contain the configuration information of the Oracle Internet Directory (OID) and Oracle Application Server Single Sign-On (SSO) components of the Identity Management Service. Next, the tool requests Distributed Configuration Management (DCM) to create and export a consistent archive (jar file) of the configuration schemas from the DCM repository for DCM-managed components like Oracle HTTP Server (OHS) and OracleAS Containers for J2EE (OC4J). Then, the tool adds the archive file to the backup. Finally, for each configured component, the tool backs up all the local copies of the configuration files specified for that component in its backup input file. For a list of component backup files, see Table 19-1, "Oracle Application Server Component Backup Input Files".

  • Oracle Application Server Middle-tier Instance Backup—Contains the configuration information of all its Oracle Application Server components and deployed applications. Some of these components, like Portal, Wireless, Integration B2B, and Oracle Business Intelligence Discoverer are not managed by DCM. They have their product metadata in the Oracle Application Server Metadata Repository database which is backed up by the Backup and Recovery Tool in the Oracle Application Server Infrastructure instance. Other components like the OHS, OC4J, Oracle Process Management and Notification Server (OPMN) and Java Authentication and Authorization Service (JAZN) are managed by DCM. The configuration information, for these components and the deployed J2EE applications, is stored in the DCM repository which can be a file-based repository or a database repository. As in an Infrastructure instance backup, the tool requests DCM to create and export a consistent archive of the configuration schemas from the DCM repository and adds the archive to the mid-tier instance backup. The tool also backs up all the local copies of the configuration files specified for each configured mid-tier component in its backup input file.

  • Oracle Application Server Metadata Repository Creation Assistant—Instead of creating a new Oracle Application Server Infrastructure instance, you can install the Oracle Application Server Metadata Repository in an existing Oracle database using the OracleAS Metadata Repository Creation Assistant (MRCA, previously called RepCA). The existing database may also have Oracle Internet Directory and SSO installed for Identity Management. Since there are no other OracleAS components in an OracleAS MRCA instance, the Backup and Recovery Tool backs up only the existing database and not any other local configuration files.

In Figure 19-3, the files that are backed up during an instance backup are shaded. This type of backup involves saving the configuration information, and metadata across your entire Oracle Application Server environment at the same point in time. To avoid an inconsistent backup, do not make any configuration changes until the backup completes for all Oracle Application Server instances.

Figure 19-3 Files Backed Up in an Instance Backup

An Oracle Mid-tier host and an Oracle Infrastructure host.
Description of "Figure 19-3 Files Backed Up in an Instance Backup"

19.2.2 Oracle Application Server Component Backup Input Files

Each Oracle Application Server component has a backup input file which contains a list of all the local configuration files that should be backed up for that component. In a backup operation, if a component is installed and configured, the Backup and Recovery Tool invokes the component's backup input file to determine what files to backup. A component backup input file has the file extension .inp and resides in the Oracle_Home/backup_restore/config directory. The following is a list of all the component backup input files that can reside in the directory:

Table 19-1 Oracle Application Server Component Backup Input Files

Component Name Backup Input File

Content Management SDK

config_cmsdk_files.inp

Delegated Administration Services

config_das_files.inp

Distributed Configuration Management Service

config_dcm_files.inp

Directory Integration and Provisioning

config_dip_files.inp

OracleBI Discoverer

config_discoverer_files.inp

OracleAS Guard for Disaster Recovery

config_dsa_files.inp

Oracle Enterprise Manager

config_em_files.inp

List of files to be excluded during backup

config_exclude_files.inp

Oracle Forms

config_forms_files.inp

OracleAS installation information

config_install_files.inp

Oracle BPEL Process Manager


config_ip_files.inp

Business Integration Application Adapters

config_IPadapters_files.inp

Business Integration B2B

config_IPb2b_files.inp

BPEL Process Analytics

config_IPbam_files.inp

Business Integration Process Manager

config_IPbpm_files.inp

Business Integration Interconnect

config_IPinterconnect_files.inp

Java Object Cache

config_javaobjcache_files.inp

Oracle Enterprise Manager Log Loader

config_logloader_files.inp

Extra miscellaneous files to be backed up

config_misc_files.inp

OracleAS Containers for J2EE applications

config_oc4j_files.inp

OracleAS Certificate Authority

config_oca_files.inp

OracleAS HTTP Server

config_ohs_files.inp

Oracle Internet Directory

config_oid_files.inp

Oracle Process Management and Notification Server

config_opmn_files.inp

OracleAS Personalization

config_personalization_files.inp

OracleAS Portal

config_reports_files.inp

OracleAS Single Sign-ON

config_sso_files.inp

TopLink

config_toplink_files.inp

Oracle Ultra Search for OracleAS Infrastructure

config_ultrasearch_infra_files.inp

Oracle Ultra Search for OracleAS Mid-tier

config_ultrasearch_mid_files.inp

OracleAS Web Cache

config_webcache_files.inp

OracleAS Wireless

config_wireless_files.inp


19.2.3 Recommended Backup Strategy

This section outlines the recommended strategy for performing backups. Using this strategy ensures that you will be able to perform the recovery procedures in this book.

  • Perform a complete image backup.

    Immediately after you install Oracle Application Server, you should perform a complete image backup for each node in your Oracle Application Server environment. This backup contains everything you need in order to restore each node to its initial state. It serves as a baseline for all subsequent online backups.

  • Perform instance backups on a regular basis.

    After every administrative change, or, if this is not possible, on a regular basis, perform an instance backup of your Oracle Application Server environment. This enables you to restore your environment to a consistent state as of the time of your most recent configuration and metadata backup. To avoid an inconsistent backup, do not make any configuration changes until backup completes for all Oracle Application Server instances.


    See Also:

    Appendix G, "Examples of Administrative Changes" to learn more about administrative changes

  • After a major change, perform a new complete image backup.

    If you make a major change to your Oracle Application Server environment, perform a new complete image backup. This backup will serve as the basis for subsequent online backups.

    Perform a new complete image backup after:

    • An operating system software upgrade

    • An Oracle Application Server software upgrade or patch application

    If you decide to back out an upgrade or patch, revert back to your last complete image backup. You can then apply any instance backups that occurred between the software upgrade or patch and the last complete image backup of your Oracle Application Server environment. Restoring an instance backup without restoring the last complete image backup might mix old configuration files with newly upgraded software that might not be compatible.

  • Perform instance backups on a regular basis.

    After you establish a new complete image backup of your Oracle Application Server environment, continue to perform instance backups on a regular basis.

19.3 Overview of Recovery Strategies

There are two types of Oracle Application Server recovery strategies used in this book:

Recovery Strategies for Data Loss, Host Failure, or Media Failure (Critical)

These strategies enable you to recover from critical failures that involve actual data loss. Depending on the type of loss, they can involve recovering any combination of the following types of files:

In all cases, these strategies involve making sure your state is consistent across all installations.

Recovery Strategies for Process Crashes or System Outages (Non-Critical)

These strategies involve restarting processes that have stopped or failed. They do not involve restoring data. They are included in this book for completeness.

19.4 What Is the Oracle Application Server Backup and Recovery Tool?

The Oracle Application Server Backup and Recovery Tool (OracleAS Backup and Recovery Tool) is an application. You can use the tool to backup and recover the following types of files:

The OracleAS Backup and Recovery Tool is installed by default whenever you install Oracle Application Server. The tool is installed in the Oracle_Home/backup_restore directory. For instructions on how to install the tool manually, see Section 20.1.1, "Manually Installing the OracleAS Backup and Recovery Tool"

19.5 Assumptions and Restrictions

The following assumptions and restrictions apply to the backup and recovery procedures in this book:

19.6 Roadmap for Getting Started with Backup and Recovery

This section provides a roadmap for getting started with Oracle Application Server backup and recovery.

  1. Learn About Database Backup and Recovery.

    The Oracle Application Server environment includes the Metadata Repository—an Oracle Database 10g database. Performing backup and recovery on Oracle Application Server includes performing backup and recovery of a database. It is, therefore, important for application server administrators to understand database backup and recovery.

    If you are not experienced with database backup and recovery, Oracle recommends you read "Oracle Backup and Recovery Basics", which is available in the Oracle Database 10g document library.

    In particular, the following topics apply to Oracle Application Server backup and recovery:

    • Using ARCHIVELOG mode

    • Performing cold database backups

    • Performing online database backups

    • Using the RMAN backup and recovery utility

  2. Configure the OracleAS Backup and Recovery Tool.

    Oracle recommends you configure the tool and familiarize yourself with its features.

  3. Implement the Backup Strategy.

    Chapter 21, "Backup Strategy and Procedures" outlines the Oracle-recommended backup strategy and backup procedures. Following this backup strategy ensures that you will be able to perform the recovery procedures in this book.

  4. Recover as Necessary.

    In the event of system failure or data loss, refer to Chapter 22, "Recovery Strategies and Procedures". It outlines different types of failures and describes the procedures you can follow to recover.