Friday, June 17, 2011

Create OraInventory.

Steps are described below:

Create the oraInst.loc File

If you plan to install Oracle products using the Installer in silent or suppressed mode, you must manually create the oraInst.loc file if it does not already exist. This file specifies the location of the Oracle Inventory directory where the Installer creates the inventory of Oracle products installed on the system.
Note:
If Oracle software has been installed previously on the system, the oraInst.loc file might already exist. If the file does exist, you do not need to create a new file.
To create the oraInst.loc file, follow these steps:

  1. Switch user to root:
         $su - root
  1. On HP-UX, Solaris, Tru64 UNIX, and zSeries Linux, create the /var/opt/oracle directory if it does not exist:
# mkdir -p /var/opt/oracle
  1. Change directory as follows, depending on your operating system:
             AIX, Linux x86, or Linux Itanium:
·         # cd /etc
             Other operating systems:
·         # cd /var/opt/oracle

  1.  Use a text editor to create the oraInst.loc file, containing the following lines:
e.g vi oraInst.loc
inventory_loc=ORACLE_BASE/oraInventory
inst_group=groupname e.g dba

In this example, ORACLE_BASE is the path of the Oracle base directory, for example, /u01/app/oracle.

  1. Enter the following commands to set the appropriate owner, group, and permissions on the oraInst.loc file:
E.g
# chown oracle: dba oraInst.loc
# chmod 664 oraInst.loc

No comments:

Post a Comment