Module 2 - Oracle Server
Module 2 - Oracle Server
Some figures shown in these notes are from various Oracle documents including
the Oracle® Database Concepts 11g Release 2 (11.2), Oracle® Enterprise Manager Concepts 11gRelease 2 (11.2), Oracle®
Universal Installer and OPatch User's Guide 11g Release 2 (11.2) for Windows and UNIX
Utilities
Oracle offers two utilities for software deployment:
Oracle Universal Installer to install Oracle products
OPatch to apply interim patches.
o OPatch is an Oracle-supplied utility that assists you with the process of applying
interim patches to Oracle's software.
o OPatch 11.2 is a Java-based utility that can run on either OUI-based Oracle
homes or standalone homes.
o It works on all operating systems for which Oracle releases software.
o For more information on OPatch, see the Oracle OPatch User's Guide.
Oracle Home
An Oracle home is the system context in which the Oracle products run.
The Oracle Universal Installer supports the installation of several active Oracle homes on
the same host.
An Oracle home is a directory into which all Oracle software is installed.
This is pointed to by an environment variable named ORACLE_HOME.
This context consists of the following:
Directory location where the products are installed
Corresponding system path setup
Program groups associated with the products installed in that home (where applicable)
Services running from that home
Oracle Base
The Oracle base location is the location where Oracle Database binaries are stored.
During installation, you are prompted for the Oracle base path.
Typically, an Oracle base path for the database is created during Oracle Grid
Infrastructure installation.
To prepare for installation, Oracle recommends that you only set the ORACLE_BASE
environment variable to define paths for Oracle binaries and configuration files.
Oracle Universal Installer (OUI) creates other necessary paths and environment
variables in accordance with the Optimal Flexible Architecture (OFA) rules for well-
structured Oracle software environments.
For example, with Oracle Database 11g, Oracle recommends that you do not set an Oracle
home environment variable allow OUI to create it instead.
If the Oracle base path is /u01/app/oracle, then by default, OUI
creates /u01/app/oracle/product/11.2.0/dbhome_1
as the Oracle home path
Information that OEM needs in order for a DBA to manage databases is stored in the OEM
repository.
The OEM repository is a database itself of information about databases.
You can install OEM as a separate database on a server, or as a tablespace within an
existing database.
We have installed OEM at SIUE in a separate database.
The OEM architecture is illustrated here.
This is an n-tier architecture shown in the figure above is used by OEM.
First Tier: The first tier includes client computers that provide a graphical user interface for
DBAs.
Second Tier: The second tier includes the Management Service (a J2EE Web App) and
the accompanying database repository. The Management Service is a program that
executes on the server where the OEM repository/database is located. The Management
Service is started on our LINUX machine as shown in these commands. In order to stop the
service, you must be a privileged user of the Enterprise Manager repository (which you as
students are not).
$ oemctl
Usage: oemctl start oms
oemctl stop oms <EM Username>/<EM Password>
oemctl status oms <EM Username>/<EM Password>[@<OMS-
hostname>]
Third Tier: A group of Oracle Management Agents manage various targets such as
databases, application servers, listeners, and hosts that can be on different network nodes in
the organizational network, and these agents execute tasks from the Management
Server. The ID for the intelligent agent is dbsnmp.
The above is the Targets screen. This shows two target servers
– sobora1.isg.siue.edu and soroba2.isg.siue.edu.
This screen within Targets shows the Databases (note the menu options on the blue bar).
The DBORCL.siue.edu database has a status of up with 0 critical alerts.
The version of Oracle is 11.2.0.3.0.
The ORACLE.siue.edu database also has a status of up with 0 critical alerts and 9
warnings, and it also runs on Oracle RDBMS 11.2.0.3.0.
DBORCL is located on SOBORA2 while the ORACLE database is on SOBORA1.
This is the Deployments screen. It shows that all critical patch advisories for the Oracle
RDBMS installations are up to date. There are two being monitored: an Oracle 10g version
and an Oracle 11g version.
The Enterprise Manager is a very complex tool. Oracle corporation offers a 3 to 4 day
course of study to teach the detailed usage of the Enterprise Manager product.
END OF NOTES