Skip Headers
Oracle® Application Server Administrator's Guide
10g Release 2 (10.1.2)
Part No. B13995-01
  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
 

17 Introduction to Backup and Recovery

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

It contains the following topics:

17.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 17-1.

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

An Oracle Mid-tier host and an Oracle Infrastructure host.
Description of the illustration asadm004.gif

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.

The tools and procedures in this book do not cover these files. Oracle recommends you protect yourself from loss of these files using your routine file system backup procedures.


17.2 Overview of the Backup Strategy

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

17.2.1 Types of Backups

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

Complete Oracle Application Server Environment Backup

A complete Oracle Application Server environment backup includes:

  • A full backup of all files in the middle-tier Oracle homes (this includes Oracle software files and configuration files)

  • A full backup of all files in the Infrastructure Oracle home (this includes Oracle software files and configuration files)

  • A complete cold or full online backup of the Identity Management/Metadata Repository

  • A full backup of the Oracle system files on each host in your environment

In Figure 17-2, the files that are backed up during a complete Oracle Application Server environment backup are shaded. The complete Oracle Application Server environment backup includes everything necessary to restore the initial installation of your Oracle Application Server environment. If you choose to take a cold backup of the Identity Management/Metadata Repository database, the Backup and Recovery tool performs a clean shutdown of the database if it is open. If you choose to take an online backup of the Metadata Repository database, you can leave the database open while performing the online backup. To avoid an inconsistent backup, do not make any configuration changes until the backup is completed for all Oracle Application Server instances.

Figure 17-2 Files Backed Up in a Complete Oracle Application Server Environment Backup

An Oracle Mid-tier host and an Oracle Infrastructure host.
Description of the illustration asadm005.gif

Configuration and Repository Backup

A configuration and repository backup includes:

  • A full or incremental backup of the configuration files in the middle-tier Oracle homes

  • A full or incremental backup of the configuration files in the Infrastructure Oracle home

  • A full or incremental online backup of the Metadata Repository

In Figure 17-3, the files that are backed up during a configuration and metadata 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. You can leave your Oracle Application Server up while performing a configuration and metadata backup. To avoid an inconsistent backup, do not make any configuration changes until the backup completes for all Oracle Application Server instances.

Figure 17-3 Files Backed Up in an Online Backup

An Oracle Mid-tier host and an Oracle Infrastructure host.
Description of the illustration asadm006.gif

17.2.2 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 Oracle Application Server environment backup.

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

  • Perform configuration and metadata backups on a regular basis.

    After every administrative change, or, if this is not possible, on a regular basis, perform a configuration and metadata 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 Oracle Application Server environment backup.

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

    Perform a new complete Oracle Application Server environment 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 Oracle Application Server environment backup. You can then apply any configuration and metadata backups that occured between the software upgrade or patch and the last complete Oracle Application Server environment backup. Restoring a configuration and metadata backup without restoring the last complete environment backup might mix old configuration files with newly upgraded software that might not be compatible.

  • Perform configuration and metadata backups on a regular basis.

    After you establish a new complete Oracle Application Server environment backup, continue to perform configuration and metadata backups on a regular basis.

17.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.

17.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 a Perl script and associated configuration files. 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.

17.5 Assumptions and Restrictions

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

17.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. Even if you do not use the tool, in the long run, it will help you get started with backup and recovery.

  3. Implement the Backup Strategy.

    Chapter 19, "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 20, "Recovery Strategies and Procedures". It outlines different types of failures and describes the procedures you can follow to recover.