How to Perform ORACLE_HOME Backup Doc ID 565017

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Last Login: March 29, 2024 1:59 PM EAT Switch to Cloud Support

PowerV nebila (Available) (0) Contact Us Help

Dashboard Knowledge Service Requests Patches & Updates


Patches & Updates > Patch Search Results >
Give Feedback...

Copyright (c) 2024, Oracle. All rights reserved. Oracle Confidential.

How to Perform ORACLE_HOME Backup? (Doc ID 565017.1) To Bottom

In this Document Was this document helpful?

Goal Yes
No
Solution
References
Document Details

APPLIES TO: Type:


Status: HOWTO
PUBLISHED
Oracle Database Cloud Schema Service - Version N/A and later Last Major
Update: 04-Jun-2021
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Last 21-Feb-2023
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Update: English
Oracle Database Backup Service - Version N/A and later
Language:
Oracle Database Cloud Exadata Service - Version N/A and later
Generic UNIX
Generic Linux
Related Products
Oracle Database Cloud
GOAL Schema Service
Gen 1 Exadata Cloud at
Customer (Oracle Exadata
How to take a backup of the Oracle Home? This note only pertains to the ORACLE_HOME software and NOT databases. Database Cloud Machine)
Oracle Cloud Infrastructure -
Database Service
Oracle Database Backup
SOLUTION Service
Oracle Database Cloud
Exadata Service
Backup of the Oracle home can be taken using any preferred method. You can use any tool such as zip, tar, and cpio to Show More
compress the Oracle home.

It is highly recommended to take a backup of the Oracle_Home binaries and Cnetral Inventory prior to applying patchsets or Information Centers
patches. It should also be done as part of a standard backup schedule. Oracle Catalog: Information
Centers and Advisors for All
It is also suggested but not mandatory that the database(s),listeners, any processes in the source home are shutdown so Products and Services [50.2]
that cold backup of the Oracle Home software can be taken. However if you are applying patches or patchsets the instructions Information Center: OCI
stated in the README file may state a shutdown is required in which case a suggestion might be to take cold backups of the Networking - Email Delivery
ORACLE_HOME during this scheduled maintenance outage. Taking backups while Oracle processes are active should also be [2886428.2]
valid becuase any processes that load the static binaries or libraries into memory should not hold a write lock. Again this note Information Center: OCI Cloud
only speaks about the ORACLE_HOME software and not databases. Guard [2765346.2]

The backup must be taken by the user that owns the Oracle installation or root user. The intention is to make sure that the Information Center: OCI
Container Instances
ownership/permissions of the files is preserved correctly. [2922704.2]

Below example shows use of tar command. Information Center: Oracle


Cloud Infrastructure (OCI) &
Platform as a Service (PaaS)
Overview [2048297.2]
1. (Suggested but not mandatory) Shutdown databases, listeners, or any other processes related to
the ORACLE_HOME which you are taking backup. Show More

2. cd to the directory where ORACLE_HOME is located for example:


Document References
cd /u01/app/oracle/product/11.2

3. backup the ORACLE_HOME for example: Recently Viewed

tar -pcvf /u01/app/oracle/backup/oracle_home_bkup.tar db1 How To Download And


Install The Latest
In the above example, ORACLE_HOME is /u01/app/oracle/product/11.2/db1 and backup the directory is OPatch(6880880) Version
/u01/app/oracle/backup/ [274526.1]
Oracle Database 19c
Below is an example of restoring the ORACLE_HOME:
Proactive Patch Information
[2521164.1]
1. (This step would be mandatory in the case of restore) Shutdown databases, listeners, or any other
processes related to the ORACLE_HOME which you are restoring. Error 16063 archiving LNO:n
to '<db>'
2. Go to the directory where ORACLE_HOME is located for example: [2722180.1]
Can a Database Be Restored
cd /u01/app/oracle/product/11.2 If The TDE Wallet Is Lost
(Missing, Corrupted)?
3. Rename or move the current ORACLE_HOME for example: [2560069.1]

mv db1 db1_bkup Problems In Restoring


Encrypted Database backup
4. Restore the ORACLE_HOME for example: - ORA-19913: unable to
decrypt backup [2954434.1]
tar -pxvf /u01/app/oracle/backup/oracle_home_bkup.tar
Show More

Make sure that is enough enough free disk space before doing the backup.

The Central Inventory where the Oracle_Home is registered should also be part of the backup plan and taken at the same time
as the ORACLE_HOME backup for consistency.

The Central Inventory contains information relating to the Oracle_Home's installed on a host. Review the following note for
more information:

<Note 564192.1> FAQs on Central Inventory and Oracle Home Inventory (Local Inventory) in Oracle RDBMS

To determine where the Central Inventory (oraInventory) is located review the following file depending upon the platform:

/var/opt/oracle/oraInst.loc

or

/etc/oraInst.loc

The contents of oraInst.loc file will look something like this for example:

inventory_loc=/oracle/product/oraInventory
inst_group=dba

REFERENCES
NOTE:1351051.1 - Information Center: Install and Configure Database Server/Client Installations
NOTE:1351428.1 - Information Center: Patching and Maintaining Oracle Database Server/Client Installations

Didn't find what you are looking for? Ask in Community...

Related
Products
Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Cloud Schema Service
Oracle Cloud > Oracle Infrastructure Cloud > Oracle Cloud at Customer > Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine)
Oracle Cloud > Oracle Platform Cloud > Oracle Cloud Infrastructure - Database Service > Oracle Cloud Infrastructure - Database Service
Oracle Cloud > Oracle Platform Cloud > Oracle Database Backup Service > Oracle Database Backup Service
Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Exadata Service > Oracle Database Cloud Exadata Service
Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Exadata Express Cloud Service
Oracle Cloud > Oracle Platform Cloud > Oracle Database Cloud Service > Oracle Database Cloud Service
Oracle Database Products > Oracle Database Suite > Oracle Database > Oracle Database - Enterprise Edition > Dataserver Installation and Relinking issue > Consultative Install
Questions

Keywords
BACKUP; ORACLE_HOME; ORAINST.LOC; ORAINVENTORY; RESTORE

Translations
English Source Chinese 简体中文 Japanese 日本語

Back to Top
Copyright (c) 2024, Oracle. All rights reserved. Legal Notices and Terms of Use Privacy Statement

You might also like