Certification Objectives
Certification Objectives
The OUI will refuse to run if these conditions are not met. Then there are prerequisites for that
product actually being installed. These are coded into the cvu_prereq.xml file and are checked by
the OUI as part of the installation. It is possible to ignore failures to meet the prerequisites and
proceed with installation, but if you do so there is no guarantee the installation will actually
function correctly.
Often the problem with prereq failures is not that the products won’t work, it is deciding
whether they matter. For example, on Linux, some of the kernel settings and packages are not
really needed for an entry-level installation. However, a problem may occur with support. If
you ever raise an SR (an SR is a Service Request, which is passed to Oracle Support Services
through My Oracle Support) and your system does not conform to the prereqs, the support
analysts might refuse to help you. Therefore, if you have to break one of the rules to get an
installation through, be sure to fix it as soon as possible afterward.
CERTIFICATION OBJECTIVE 1.02
Install the Oracle Database Software
The OUI gives several options for installation. The suggested installation, discussed next, will be
suitable for any studies up to the Oracle Certified Professional level. The Oracle Certified Master
curriculum includes RAC, the installation of which is not covered here. One option is whether to
chain the installation of the software with the creation of a database. This option is not going to
be discussed here, however, because creating a database is dealt with as a separate topic.
The OUI Inventory
OUI creates an inventory, which is a set of XML files that record exactly what Oracle products
have been installed on the machine, with details of where the Oracle Homes are and what
patches (if any) have been applied to each Home. In order to prevent this inventory from being
corrupted, a locking mechanism prevents running the OUI (or the Opatch patching routine)
concurrently in two or more sessions. Whenever OUI or Opatch is run, the first thing it does is
locate the inventory and check whether it is already locked. The location of the inventory and the
operating system group that owns it are stored in a pointer file. The pointer file has a platform-
specific name and location. On Linux, it is /etc/oracle/oraInst.loc, as in this example, which
shows that the inventory is located in the /u01/app/oraInventory directory:
On Solaris or AIX, the pointer file resides in the /var/opt/oracle directory. On Windows, the
inventory location is defined in a registry key:
HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/inst_loc
The OUI is written in Java, using JDK1.5, which is included in the product. This means that OUI
is the same on all platforms, with the exception of certain trivial variations in the Java user
interface, such as whether windows have square or rounded corners. The OUI can be installed as
a self-contained product in its own Oracle Home, but this is not usually necessary because it is
shipped with every other Oracle product and can be launched from the product installation CD
(or DVD); it will install itself into the Oracle Home along with the product. There are different
versions of the OUI, and if a product comes with a version earlier than the one already installed
on the machine, it’s usually a good idea (and may indeed be necessary) to install the product
using the already-installed version, from the existing Oracle Home. When the OUI prompts for
the location of the products.xml file, specify the DVD or directory with the product you want to
install.
Always use the latest version of the OUI you have available. There can be issues with updating
the OUI inventory if you try to revert to earlier versions after using a later version. Also note
that some products (such as the WebLogic server) still do not use OUI and are installed
independently. You can download the latest OUI from the Oracle Technology Network.
The OUI Dialog: Interactive Install
To launch the OUI, run the runInstaller.sh shell script (Linux) or the setup.exe program
(Windows) from the root of the directory in which the software was unzipped. For an interactive
install, a graphical terminal must be available. For Windows, this is no problem. For Linux, it
means an X terminal of some kind. If you are logged on to the console through one of the
standard Linux X Window managers (such as Gnome), OUI will run straight away. If you are
connecting remotely, you will have to use a connection method that allows display of graphics,
such as a VNC desktop or an X Window server. There is nothing special about this: Any Linux
tutorial or any experienced Linux user can explain it. However, this topic is beyond the scope of
an Oracle tutorial.
The use of the OUI dialog is detailed in the exercise at the end of this chapter. In summary, here
is the information requested by the 12 steps of the installer on Linux (Windows is slightly
different):
Step Description
3: Select Installation Option Choose whether to chain the install to creating or upgrading a
database.
4: Grid Installation Options Create an installation for single instance, RAC, or RAC One
Node.
7: Specify Installation Location Specify the Oracle Base and Oracle Home directories.
8: Privileged Operating System Nominate the groups that will manage the Oracle Home.
Groups
You can pass many other command-line switches to the installer. Here’s how to display them all
in Linux:
CERTIFICATION SUMMARY
The OUI is the tool used to install an Oracle Home. A successful installation requires a certain
amount of preparatory work by the system administrator, such as creating an operating system
user account and groups as well as a directory into which the software will be installed. The OUI
runs various prerequisite checks and will even generate a script to fix some shortcomings.
Although it is possible to ignore any failures, this may lead to problems later.
TWO-MINUTE DRILL
Plan for an Oracle Database Software Installation
Create operating system groups and users.
Create a directory beneath which the Oracle Base will exist.
Download the appropriate version of the installation DVDs.
Install the Oracle Database Software
Launch the OUI: setup.exe (Windows) or runInstaller.sh (Linux).
Follow the OUI dialog.
SELF TEST
Plan for an Oracle Database Software Installation
1. Which statement best describes the relationship between the Oracle Base and the Oracle
Home? (Choose the best answer.)
A. The Oracle Base exists inside the Oracle Home.
B. The Oracle Base can contain Oracle Homes for different products.
C. One Oracle Base is required for each product, but versions of the product can exist in their
own Oracle Homes within their Oracle Base.
D. The Oracle Base is created when you run the orainstRoot.sh script, and contains a pointer to
the Oracle Home.
2. What does Optimal Flexible Architecture (OFA) describe? (Choose the best answer.)
A. A directory structure
B. Distributed database systems
C. A multitier processing architecture
D. All the above
3. What environment variable must be set on Linux before running the Oracle Universal
Installer for an interactive installation? (Choose the best answer.)
A. ORACLE_HOME
B. ORACLE_BASE
C. ORACLE_SID
D. DISPLAY
Install the Oracle Database Software
4. If the OUI detects that a prerequisite has not been met, what can you do? (Choose the best
answer.)
A. You must cancel the installation, fix the problem, and launch OUI again.
B. A silent install will fail; an interactive install will continue.
C. Instruct the OUI to continue (at your own risk).
D. The options will depend on how far into the installation the OUI is when the problem is
detected.
5. What type of devices can the OUI install an Oracle Home onto? (Choose all correct
answers.)
A. Regular file systems
B. Clustered file systems
C. Raw devices
D. ASM disk groups
6. Which command-line switch can be used to prevent the OUI from stopping when
prerequisite tests fail? (Choose the best answer.)
A. –silent
B. –record
C. –responsefile
D. –ignoresysprereqs
7. When does an OUI inventory get created? (Choose the best answer.)
A. Every time a new Oracle Home is created
B. Every time a new Oracle Base is created
C. Before the first run of the OUI
D. During the first run of the OUI
LAB QUESTION
Use the OUI to instantiate another Oracle Home. Then launch OUI again and take the option to
deinstall an Oracle Home. This will prompt you to run a shell script (Linux) or batch file
(Windows) to accomplish the deinstallation. Repeat! It is important to become completely
comfortable with all the options of OUI.
On Linux, the result is similar (although the use of forward and backward slashes is more
consistent).