How To Move The Central Inventory To Another Location (文档 ID 299260.1)

转到底部转到底部

In this Document

  Goal
  Solution
  References

 

APPLIES TO: 

Oracle Database - Enterprise Edition - Version 9.2.0.1 to 12.1.0.2 [Release 9.2 to 12.1]
Oracle Fusion Middleware - Version 9.0.2.0.1 to 10.1.4.2.0 [Release 9iAS to AS10gR2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
Oracle Application Server 10g Enterprise Edition - Version: 9.0.2.0.1 to 10.1.4.2.0
***Checked for relevance on 03-Sep-2013*** 


 

GOAL

How to move the central Inventory (oraInventory) to another location.

SOLUTION

On Unix:

1. Find the current location of the central inventory (normally <path>/oraInventory):

For example:

% find / -name oraInventory -print
/u01/app/oracle/oraInventory

2. Open the oraInst.loc file (by default this is in /etc or /var/opt/oracle depending on which Unix / Linux platform you are using or it can also be $ORACLE_HOME/oraInst.loc file) and check the value of inventory_loc

For example:

% find / -name oraInst.loc -print
This will give output like:
/etc/oraInst.loc or $ORACLE_HOME/oraInst.loc


% cat oraInst.loc
inventory_loc=/u01/app/oracle/oraInventory 
inst_group=oinstall

Remark: The oraInst.loc file is simply a pointer to the location of the central inventory (oraInventory)

3. Copy the oraInventory directory to the destination directory

For example:

% cp -Rp /u01/app/oracle/oraInventory /u02/app/oracle

4. Edit the oraInst.loc file to point to the new location

For example:

% vi oraInst.loc

(make the required change and then save the file)

% cat oraInst.loc
inventory_loc=/u02/app/oracle/oraInventory 
inst_group=oinstall

 

On Windows: 

The following registry entry defines the location of the central inventory: 

  HKEY_LOCAL_MACHINE\Software\Oracle\inst_loc 

or 

  HKLM\Software\Oracle\inst_loc 

As per Note:552502.1, manually changing this registry setting is unsupported 
and so moving the central inventory to another location is unsupported on Windows