Performing a Full Offline Backup

8-6 Oracle Fusion Middleware 2 Day Administration Guide as an Oracle instance or a component, rather than just restoring one or two files. In this way, you are more likely to guarantee a successful recovery. ■ Recover the database to the most current state, using point-in-time recovery if the database is configured in Archive Log Mode. This is typically a time right before the database failure occurred.

8.2 Backing Up Your Environment

The following topics describe how to perform different types of backups: ■ Performing a Full Offline Backup ■ Performing an Online Backup of Run-Time Artifacts

8.2.1 Performing a Full Offline Backup

To perform a full offline backup, you copy the directories that contain Oracle Fusion Middleware files. Archive and compress the source Middleware home, using your preferred tool for archiving. Ensure that the tool you are using preserves the permissions of the files, as described in Section 8.1.1 . The following example shows how to archive and compress the Middleware home on Linux: cd Middleware_Home tar cf - | gzip Middleware_Home.tar.gz The tar utility may issue warnings if the sticky bit is set on some files. You can safely ignore these warnings. To perform a full offline backup: 1. Shut down all processes in the Middleware home. For example, shut down the Managed Servers, the Administration Server, and any Oracle instances running in the Middleware home. 2. Back up the Middleware home MW_HOME on all hosts. For example: tar -cf mw_home_backup_092010.tar MW_HOME 3. If the domain is not located within the Middleware home, back up the Administration Server domain separately. This backs up Java components such as Oracle SOA Suite and Oracle WebCenter. For example: tar -cf domain_home_backup_092010.tar MW_HOMEuser_projectsdomainsdomain_ name In most cases, you do not need to backup the Managed Server directories separately, because the Administration Server domain contains information about the Managed Servers in its domain. 4. If the Oracle instance home is not located within the Middleware home, back up the Oracle instance home. The Oracle instance home contains configuration information about system components, such as Oracle HTTP Server or Oracle Internet Directory. See Section 2.4.2 for a list of system components. For example: Backing Up and Recovering Oracle Fusion Middleware 8-7 tar -cf instance_home_backup_092010.tar ORACLE_INSTANCE 5. If a Managed Server is not located within the domain directory, back up the Managed Server directory. For example: tar -cf mg1_home_backup_092010.tar MW_HOMEuser_projectsdomainsdomain_ name serversserver_name 6. Backup the OraInventory directory. For example: tar -cf Inven_home_backup_092010 scratchoracleOraInventory 7. Back up OraInst.loc and oratab files, which are located in the following directory: etc 8. Backup the database repositories using the Oracle Recovery Manager RMAN. For detailed steps, see the Oracle Database Backup and Recovery Users Guide, which is available at: http:www.oracle.comtechnologydocumentationdatabase.html 9. On Windows, export the following registry key: HKEY_LOCAL_MACHINE\Software\Oracle In addition, for system components, such as Oracle Web Cache, export the following Windows Registry key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services To export a key, use the following command: regedit E FileName Key For example: regedit E C:\oracleregistry.reg HKEY_LOCAL_MACHINEoracle You can also use the Registry Editor to export the key. See the Registry Editor Help for more information. 10. Create a record of your Oracle Fusion Middleware environment. See Section 8.4 .

8.2.2 Performing an Online Backup of Run-Time Artifacts