Backing Up and Recovering Oracle Application Server 10g

Purpose

This tutorial describes how to use the Oracle Enterprise Manager 10g Application Server Control console to perform backup and recovery operations on Oracle Application Server 10g.

You will first configure OracleAS Backup and Recovery (by enabling archive logs for the Infrastructure Database, and defining the backups' and logs' locations). Once OracleAS Backup and Recovery's configuration is done, you will take a backup of your Oracle Application Server 10g instance, create a new component (OC4J instance) and restore the backup to the instance's original state. After the restore you should verify that the component created is no longer present

Time to Complete

Approximately 20 minutes

Topics

This tutorial covers the following topics:

 Overview
 Prerequisites
 Enabling ARCHIVELOG Mode for the Infrastructure Database
 Configuring Backup and Recovery Settings
 Backing Up Oracle Application Server 10g
 Creating an OC4J Instance

Recovering Oracle Application Server 10g

 Summary
 Related Information

Viewing Screenshots

 Place the cursor over this icon to load and view all the screenshots for this tutorial. (Caution: Because this action loads all screenshots simultaneously, response time may be slow depending on your Internet connection.)

Note: Alternatively, you can place the cursor over an individual icon in the following steps to load and view only the screenshot associated with that step. You can hide an individual screenshot by clicking it.

Overview

Oracle Application Server 10g provides out-of-the-box management capabilities with Oracle Enterprise Manager 10g Application Server Control. Application Server Control, automatically installed with the application server, is part of the Oracle Enterprise Manager product set and offers a Web-based interface for managing the application server. Using Application Server Control, administrators can configure, back up, and recover Oracle Application Server 10g.

Back to Topic List

 

Prerequisites

Before starting this tutorial, you should:

1. Install Oracle Application Server 10g (10.1.2.0.2) Infrastructure. Choose the Identity Management and Metadata Repository installation type.
2.

Install Oracle Application Server 10g (10.1.2.0.2) Portal and Wireless. While installing portal and wireless, point to the infrastructure that you installed in step 1.

Back to Topic List

 

Enabling ARCHIVELOG Mode for the Infrastructure Database

If the database is in ARCHIVELOG mode, you can perform hot backups and recovery. To put the database in ARCHIVELOG mode, you should know the operating system (OS) host credentials (that is, the OS username and password). The user should have the "Logon as a batch job" privilege.

1.

Open a browser window and enter the following URL:

                                     
                                       
http://<
                                        
hostname>.<
                                        
domain>:5500/em

                                                                          Log in to the database as SYSDBA.
                                  

Move your mouse over this icon to see the image

 

2.

Click the Maintenance tab.

Move your mouse over this icon to see the image

 

3.

Click Configure Recovery Settings under Backup/Recovery.

Move your mouse over this icon to see the image

 

4.

In the Media Recovery section, select the ARCHIVELOG Mode check box and click Apply.

Move your mouse over this icon to see the image

 

5.

You must restart the database. Click Yes when you see the confirmation.

Move your mouse over this icon to see the image

 

6.

You are prompted to enter the host credentials such as the OS username and password. Provide these details as well as the login details for the database.

Move your mouse over this icon to see the image

 

7.

Click Yes when you see the confirmation.

Move your mouse over this icon to see the image

 

Move your mouse over this icon to see the image

 

8.

Wait for a few minutes to allow the database to restart. Click Refresh. After the database has started successfully, check whether the database is in ARCHIVELOG mode by peforming steps 1 through 3.

Move your mouse over this icon to see the image

 

Back to Topic List

0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //-->

Configuring Backup and Recovery Settings

To perform a backup or recovery operation on Oracle Application Server 10g, you must first configure backup and recovery settings for each instance that is to be backed up and restored. The following steps show how to configure backup and recovery settings for both the portal and wireless and the infrastructure instance.

 

1.

Change the URL in the browser window to the following URL:

                                     
                                       
http://<
                                        
hostname>.<
                                        
domain>:18100/
                                      
                                    

                                     
Note: 18100 is the default port that is automatically assigned while installing Application Server on the Windows
                                    
platform. However, if another instance is already running on 18100, then the next port may be assigned during
installation. Log in as ias_admin/<admin password you specified during install>,
and click OK. Move your mouse over this icon to see the image Move your mouse over this icon to see the image
2.

You access the Application Server Control console. You see the OracleAS Farm page, which provides details about the OracleAS Clusters and standalone instances contained in the farm. First, configure the backup and recovery settings for the Portal and Wireless middle tier.

In the Standalone Instances table, click the Portal and Wireless middle-tier instance to navigate to that instance's
Home page.

Move your mouse over this icon to see the image

You will be prompted to log in. Enter the username and password, and click OK.

Move your mouse over this icon to see the image

 

3.

From the instance's Home page, click Backup/Recovery to navigate to the Backup/Recovery property page.

Move your mouse over this icon to see the image

 

4.

Click Configure Backup/Recovery Settings.

Move your mouse over this icon to see the image

 

5.

To configure backup and recovery settings for this middle-tier instance, you must supply directory paths for storing various types of files generated as part of the backup or recovery operation.

In the Log File Location field, specify the directory location in which to store generated log files. In the Configuration Files Backup Location field, specify the directory location in which to store actual files from the middle-tier backup operation.

If the directory paths specified do not already exist, Enterprise Manager will create the directories for you. However, you must ensure that the operating system account that was used to install the application server has write access to the directories specified.

Click OK.

Move your mouse over this icon to see the image

 

6.

Click Yes when prompted for confirmation.

Move your mouse over this icon to see the image

 

7.

Configuration of backup and recovery settings for the middle-tier instance is successful.

Move your mouse over this icon to see the image

Configuration of backup and recovery settings must be performed for each application server instance—middle-tier, identity management, or identity management and metadata repository—that you want to perform backup and recovery operations against.

 

8.

You have already configured the middle-tier instance for backup and recovery. Now, configure the backup and recovery settings for the infrastructure home. Click the Farm link in the breadcrumbs at the top of the page to navigate back to the Farm page.

Move your mouse over this icon to see the image

Move your mouse over this icon to see the image

 

9.

From the Standalone Instances table, click the link for the Identity Management and Metadata Repository instance.

Move your mouse over this icon to see the image

 

10.

From the instance's Home page, click Backup/Recovery to navigate to the Backup/Recovery property page.

Move your mouse over this icon to see the image

 

11.

Click Configure Backup/Recovery Settings.

Move your mouse over this icon to see the image

 

12.

Observe that, for this instance, more configuration settings must be specified. For the Identity Management and Metadata Repository installation type, Enterprise Manager automates backup for both the Oracle Internet Directory middle-tier instance as well as the Metadata Repository database.

In the Log File Location field, specify the directory location in which to store generated log files. In the Configuration Files Backup Location field, specify the directory location in which to store actual files from the middle-tier backup operation. In the Metadata Repository Database Backup Location field, specify the directory location in which to store actual files from the database backup operation. In the Metadata Repository Database SID field, specify the database system Identifier for the Metadata Repository.

If the directory paths specified do not already exist, Enterprise Manager will create the directories for you. However, you must ensure that the operating system account that was used to install the application server has write access to the directories.

Click OK.

Move your mouse over this icon to see the image

 

13.

Click Yes when prompted for confirmation.

Move your mouse over this icon to see the image

 

14.

Configuration of backup and recovery settings for the Infrastructure instance is successful.

Move your mouse over this icon to see the image

Configuration of backup and recovery settings for your application server instances is now complete.

 

Back to Topic List

 

Backing Up Oracle Application Server 10g

The configuration of backup and recovery settings for all relevant Oracle Application Server 10g instances in your environment is complete. You can now back up configuration files and the metadata repository associated with your application server instances to safeguard against data loss. To ensure consistency across these instances, you should back up all your application server instances immediately. Then, if a loss occurs, you can restore your environment to a consistent state.

So, as part of this tutorial, you back up both the Infrastructure and the middle tier, and to avoid an inconsistent backup, you do not make any configuration changes until the backup completes for all Oracle Application Server instances.

Note: If a complete environment backup is needed (that is, one which includes not only the application server configuration files that Application Server Control backs up, but also the Oracle software files and Oracle system files that Application Server Control does not back up), administrators must perform such backups outside of the Application Server Control console. For instructions regarding a complete environment backup, refer to the Oracle Application Server Administrator's Guide.

 

1.

From the Backup/Recovery page of the infrastructure instance, click the Perform Backup link.

2.

Accept the default backup mode selection of Full Online Backup as well as the default selection of validating the Portal schema, and click OK.

Move your mouse over this icon to see the image

 

3.

Application Server Control provides the option of performing one of the four backup modes for your application server. In addition, if a Portal instance is using the Infrastructure, you may choose to validate the Portal schema before performing the backup. See online Help for descriptions of each backup mode as well as more information about validation of the Portal schema.

To safeguard against data loss, it is recommended that you take backups on a regular basis, especially in the following cases:

Immediately after installing Oracle Application Server
After every administrative change, or, if this is not possible, on a regular basis
After a major change to your Oracle Application Server environment, such as an operating system software upgrade or an Oracle Application Server software upgrade or patch application

Wait while the backup operation is in progress. To avoid any inconsistencies, do not make any configuration changes until backup completes for all Oracle Application Server instances in the environment.

Move your mouse over this icon to see the image

 

4.

The Infrastructure backup is successful.

Move your mouse over this icon to see the image

 

5.

To ensure consistency across your application server environment, it is best to back up all instances at the same time. So, back up the middle-tier instance. Click the Farm link in the breadcrumbs to navigate back to the Farm page.

Move your mouse over this icon to see the image

 

6.

In the Standalone Instances table, click the link for the Portal and Wireless middle-tier instance.

Move your mouse over this icon to see the image

 

7.

Click the Backup/Recovery link to go to the Backup/Recovery property page.

Move your mouse over this icon to see the image

 

8.

Click the Perform Backup link.

Move your mouse over this icon to see the image

 

9.

Accept the default backup mode selection of Full Online Backup, and click OK.

Move your mouse over this icon to see the image

 

10.

Application Server Control provides the option of performing one of the four backup modes for your application server. See online Help for descriptions of each.

To safeguard against data loss, it is recommended that you take backups on a regular basis, especially in the following cases:

Immediately after installing Oracle Application Server
After every administrative change, or, if this is not possible, on a regular basis
After a major change to your Oracle Application Server environment, such as an operating system software upgrade or an Oracle Application Server software upgrade or patch application

Wait while the backup operation is in progress. To avoid any inconsistencies, do not make any configuration changes until backup completes for all Oracle Application Server instances in the environment.

Move your mouse over this icon to see the image

 

11.

The Portal and Wireless middle-tier instance backup is successful.

Move your mouse over this icon to see the image

You have backed up the Identity Management configuration, the Metadata Repository database data files, control files, and archived redo logs, and the Portal and Wireless configuration. If an irreparable failure occurs, you can restore your backups to recover your application server configuration.

 

Back to Topic List

 

Creating an OC4J Instance

 

1.

Click the Farm link in the breadcrumbs at the top of the page to navigate back to the Farm page.

Move your mouse over this icon to see the image

 

2.

In the Standalone Instances table, click the link for the Portal and Wireless instance.

Move your mouse over this icon to see the image

 

3.

Click Create OC4J Instance.

Move your mouse over this icon to see the image

 

4.

Enter a name for the new OC4J Instance, and click Create.

Move your mouse over this icon to see the image

Move your mouse over this icon to see the image

 

5.

Click OK when you see the confirmation.

Move your mouse over this icon to see the image

 

6.

Observe that the new OC4J instance is created. It is unavailable. You can start the OC4J instance by selecting the check box next to the instance name and clicking Start.

Move your mouse over this icon to see the image

 

Back to Topic List

Recovering Oracle Application Server 10g

You have backed up the configuration files and the metadata repository associated with your application server instances. You can now be sure that when a loss occurs, you can restore your environment to these backups to recover your instances.

Restore the backups just taken for both the Infrastructure and the middle tier to recover your instances' configurations.

1.

Click the Farm link in the breadcrumbs at the top of the page to navigate back to the Farm page. In the Standalone Instances table, click the link for the infrastructure instance.

Move your mouse over this icon to see the image

 

2.

Click the Backup/Recovery link to go to the Backup/Recovery property page.

Move your mouse over this icon to see the image

 

3.

Click the Perform Recovery link.

Move your mouse over this icon to see the image

 

4.

Select the available backup to recover to from the drop-down list, and click OK.

Move your mouse over this icon to see the image

 

5.

When prompted, click Yes to proceed.

Move your mouse over this icon to see the image

Wait while the recovery operation is in progress. To avoid any inconsistencies, do not make any configuration changes until recovery completes for all Oracle Application Server instances in the environment.

Move your mouse over this icon to see the image

 

6.

The Infrastructure recovery is successful. You can expand the Show Detailed Message node to check the details.

Move your mouse over this icon to see the image

 

7.

Now, recover the middle-tier instance. Click the Farm link in the breadcrumbs to navigate back to the Farm page. In the Standalone Instances table, click the link for the Portal and Wireless middle-tier instance.

Move your mouse over this icon to see the image

 

8.

Click the Backup/Recovery link to go to the Backup/Recovery property page.

Move your mouse over this icon to see the image

 

9.

Click the Perform Recovery link .

Move your mouse over this icon to see the image

 

10. Select the available backup to recover to from the drop-down list, and click OK.

Move your mouse over this icon to see the image

11.

When prompted, click Yes to proceed.

Move your mouse over this icon to see the image

 

12.

Wait while the recovery operation is in progress. To avoid any inconsistencies, do not make any configuration changes until recovery completes for all Oracle Application Server instances in the environment.

Move your mouse over this icon to see the image

 

13.

The middle-tier recovery is successful. Recollect that you had created an OC4J instance after backing up the middle-tier. After this recovery, you should not have the OC4J instance. Click the Home link.

Move your mouse over this icon to see the image

 

14.

Observe that the System Components table does not have the OC4J instance you created.

Move your mouse over this icon to see the image

 

Back to Topic List

Summary

In this lesson, you've learned how to use Oracle Enterprise Manager 10g Application Server Control to:

Configure Backup and Recovery Settings

Back Up Oracle Application Server 10g

 Recover Oracle Application Server 10g

Related Information

 To learn more about Oracle Enterprise Manager 10g, visit this page.
 To ask a question about this OBE tutorial, post a query on the OBE Discussion Forum.

Back to Topic List

 

 Place the cursor on this icon to hide all screenshots.

Copyright © 2004, Oracle Corporation. All rights reserved. Contact Us • Legal Notices and Terms of Use • Privacy Statement

 

 

 

 

Left Curve
Popular Downloads
Right Curve
Untitled Document