Databases Reference
In-Depth Information
Create a standard set of directories to contain the files used to install the Oracle software. I like to store the
installation media in a directory such as
/home/oracle/orainst
and then create a subdirectory there for each version
of the Oracle software that is installed on the box:
$ mkdir -p /home/oracle/orainst/11.2.0.2
$ mkdir -p /home/oracle/orainst/12.1.0.1
Now, move the installation files to the appropriate directory, and unzip them there:
$ mv linux_12c_database_1of2.zip /home/oracle/orainst/12.1.0.1
$ mv linux_12c_database_2of2.zip /home/oracle/orainst/12.1.0.1
Use the
unzip
command for unbundling zipped files. The Oracle Database 11g Release 2 software is unzipped,
as shown:
$ unzip linux_12cR1_database_1of2.zip
$ unzip linux_12cR1_database_2of2.zip
■
On some installations of Oracle, you may find that the distribution file is provided as a compressed
cpio
file. You can
uncompress and unbundle the file with one command, as follows:
$ cat 10gr2_db_sol.cpio.gz | gunzip | cpio -idvm
.
Tip
Step 5: Creating oraInst.loc File
If an
oraInst.loc
file already exists on your server, then you can skip this step. Creating the
oraInst.loc
file only
needs to be performed the first time you install binaries on a server, using the silent install method. If you're using the
OUI graphical installer, then the
oraInst.loc
file is created automatically for you.
On Linux servers the
oraInst.loc
file is usually located in the
/etc
directory. On other Unix systems (such as
Solaris) this file is located in the
/var/opt/oracle
directory. The
oraInst.loc
file contains the following information:
•
Oracle inventory directory path
•
Name of OS group that has permissions for installing and upgrading Oracle software
The Oracle inventory directory path is the location of files associated with managing Oracle installations and
upgrades. Typically, there is one Oracle inventory per host. Within this directory structure is the
inventory.xml
file,
which contains a record of where various versions of Oracle have been installed on the server.
The Oracle inventory OS group has the OS permissions required for installing and upgrading Oracle software.
Oracle recommends that you name this group
oinstall
. You'll find that sometimes DBAs assign the inventory group
to the
dba
group. If your environment doesn't require a separate group (such as
oinstall
), then using the
dba
group
is fine.
You can create the
oraInst.loc
file with a utility such as
vi
. Here are some sample entries in the file:
inventory_loc=/u01/app/oraInventory
inst_group=oinstall
As root, ensure that the response file is owned by the oracle OS user and that it has the proper file
access privileges:
# chown oracle:oinstall oraInst.loc
# chmod 664 oraInst.loc