Académique Documents
Professionnel Documents
Culture Documents
When you install an Oracle database, the OUI (Oracle Universal Installer) installs the OEM.
This Web-based Database Control serves as a tool for managing your Oracle database.
From the Oracle Enterprise Manager, simply you can perform administrative tasks such as
creating Schema objects (tablespaces, tables, and indexes), managing user security, backing
up and recovering your database, and importing and exporting data. You can also view
performance and status information about your database instance.
Using Database Control (OEM) you can manage only one database. If you want to administer
more than one database, then you must configure a separate Database Control (OEM) for each
database; otherwise you can go for Grid/Cloud Control Configuration.
In order to manage several databases, you need to separately install the OEM Grid Control
Software on your Server and the OEM AGENT Software on all the targets you wish to monitor.
OEM Grid Control is available only if an Oracle Management Agent is installed on the System.
Simply Grid and cloud Control is a tool for monitoring the whole of your infrastructure.
Big Advantage of Using Grid and Cloud Control you can monitor & manage NON Oracle databases
also (SQL Server, MY-SQL, and many more...)
The OEM Database Control is automatically installed along with Database Server Software.
To monitor and manage just a Single Oracle database, you need only OEM Database Control.
You do not have to configure anything to use the OEM Database Control it is ready to use
the moment you create a new Oracle database using DBCA tool.
When you use the DBCA to configure a new Oracle database, a GUI Interface helps you to
configure OEM Database Control. After the database creation, if you want to use Operating
System command line to configure OEM Database Control, you can choose EMCA.
This document completely talks about Enterprise Manager for Database Control. We can see
steps to create, drop, and recreate the Database Control Repository and Configuration files
in an Oracle database version of 11.2
$ dbca
If you encounter an error like shown in the picture above, startup the listener.
If you did not configure listener, you need to configure a listener using NETCA/NETMGR.
DBCA asks to enter password for the user accounts SYS, SYSTEM, DBSNMP, SYSMAN. You can
enter different passwords to each administrative account or you can enter same password to
all the accounts as shown in the picture given below. My Preference goes for same password.
Once the database creation is complete, an URL to access the EMC is shown as below.
Oracle automatically starts up the Database Control service.
Now you can monitor and manage the crms database through OEM (Database Control).
EMCA and EMCTL both are Oracle Utilities for Enterprise Manager.
EMCA and EMCTL utilities are installed $ORACLE_HOME/bin directory in UNIX/LINUX Systems.
$ cd $ORACLE_HOME/bin
$ ls -l emca emctl
-rwxr-x--- 1 oracle oinstall 3522 Oct 18 05:41 emca
-rwxr-x--- 1 oracle oinstall 15603 Oct 18 05:41 emctl
EMCA is a Command line utility and provides simple and standardized options to create, drop
and re-configure the Database Control that is called as DBConsole. The EMCA utility can be
launched by running emca command from $ORACLE_HOME/bin directory.
When you DBCA to create a database, it provides an option to choose whether the Enterprise
Manager Database Control should be configured for the database.
If the database is created manually or if the appropriate option was not chosen in the
DBCA, then the Database Control can be configured from the EMCA command utility.
In the URL, HOSTNAME is the name of the Machine on which you installed the Oracle database,
and PORT_NUMBER is the Database Control HTTP Port number.
I have installed the Oracle 11g database on the Linux Machine named as ausuat.com and the
installer indicated that Enterprise Manager Console HTTP Port number is 5500.
http://hostname:portnumber/em http://ausuat.com:5502/em
Suppose you do not know the name of the system, you may go to Command Prompt in your system,
and type "hostname" You can get name of the system i.e. hostname.
$ cd $ORACLE_HOME/install/
$ cat portlist.ini
When the DBControl is initially configured, it uses a default set of ports defined in
respective range for each of the process as listed below.
By default the first port in the range is assigned to the component, if it is available.
For subsequent DBConsole configurations in the same machine, the above port numbers will
be incremented by 1 in their respective ranges and a free port in this range is allocated
for the corresponding process. Again I have configured Database Control for some databases.
$ cat portlist.ini
NOTE: Refer Doc for Port Number and Protocols of Oracle Components.
To Find the current HTTP Port settings, you need to search given below.
If you manually create an Oracle database you must configure the Database Control using
the emca utility. Some of the examples given below.
To access Oracle Enterprise Manager Console (Database Control) from a client browser, the
Database Control console process dbconsole needs to be running on the database HOST machine.
The dbconsole process is automatically started after installation. However, in the event
that the system needs to be restarted, you can start it manually at the command line.
You can also run commands to stop the dbconsole process or view its status.
To configure the Database Control for your database, you must run the emca utility.
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Oct 18, 2016 6:40:45 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at
/u01/app/oracle/cfgtoollogs/emca/devdb/emca_2016_10_18_18_39_24.log.
Management Repository has been placed in secure mode wherein Enterprise Manager data
will be encrypted. The encryption key has been placed in the file:
/u01/app/oracle/product/11.2.0/dbhome_2/ausuat.com_devdb/sysman/config/emkey.ora.
Ensure this file is backed up as the encrypted data will become unusable if this file
is lost.
***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at Oct 18, 2016 6:48:05 PM
The DBConsole repository objects are stored in the SYSMAN & MGMT_VIEW schema of the database
USERNAME
------------------------------
SYSMAN
USERNAME
------------------------------
MGMT_VIEW
Because there are configuration settings stored with Enterprise Manager Console that
reference the hostname, the same must be uninstalled.
----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
WARNING: While repository is dropped the database will be put in quiesce mode.
When the database is put into a quiesced state, all user access will be temporarily halted.
NOTE: Starting from 11.2.0.1.0 release, the database is NOT put into QUIESCE mode anymore
for repository drop and recreate operation. This means that EMCA "drop" and "recreate"
commands can be executed for 11.2.x.x database without impacting normal database operations.
FYI: When you drop the repository with EMCA or RepManager on 11.2.X databases, this warning
is appeared. This database version is 11.2.0.4 so I do not bother about the warning.
---------------------------------------------------------------------
----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
Management Repository has been placed in secure mode wherein Enterprise Manager data
will be encrypted. The encryption key has been placed in the file:
/u01/app/oracle/product/11.2.0/dbhome_2/ausuat.com_devdb/sysman/config/emkey.ora.
Ensure this file is backed up as the encrypted data will become unusable if this file
is lost.
***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at Oct 18, 2016 7:33:28 PM
USERNAME
------------------------------
...
Finally, after the successful installation of Enterprise Manager Console, validate the
installation by navigating to the logon page https://ausuat:5502/em/
$ emctl getversion
Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
Enterprise Manager 11g DB Control Version 11.2.0.4.0
Enterprise Manager 10g Agent Version 10.2.0.4.0
You can change the port number, provided you have command-line access on the database
server as the user Oracle was installed with. This will cause no downtime on the database,
though Enterprise Manager itself will need to be restarted.
When you install 11g Oracle database, a set of directories and files related to Enterprise
Manager is created in the $ORACLE_HOME directory. Some important configuration files are
read by EMCA command for its operations. These files are used as templates for its operation
such as DBConsole configuration and creation.
$ORACLE_HOME/sysman/config/emca.properties
$ORACLE_HOME/sysman/config/emca.logproperties
$ $ORACLE_BASE/cfgtoollogs/emca/<db_unique_name>
$ $ORACLE_BASE>/cfgtoollogs/emca/devdb
If DBConsole is configured using DBCA, all the logging messages are written to emConfig.log
$ $ORACLE_BASE/cfgtoollogs/dbca/<db_unique_name>
$ $ORACLE_BASE>/cfgtoollogs/dbca/hrms
When database is upgraded using DBUA, the DBConsole configuration is upgraded by default
as part of Database upgrade process. All the DBConsole upgrade logging messages are written
to the emConfig.log file
$ $ORACLE_BASE/cfgtoollogs/dbua/<db_unique_name>
$ $ORACLE_BASE/cfgtoollogs/dbca/hrms
5) Files are shared among all instances of the database are stored in $ORACLE_HOME/sysman
$ cd $ORACLE_HOME/sysman
[oracle@ausuat sysman]$ ls
admin bam config emcli emd emdrep install j2ee jlib lib log prov recv
$ cd $ORACLE_HOME/ausuat.com_crms/
[oracle@ausuat ausuat.com_crms]$ ls
...
The log files for the Management agent for that instance are installed in given location.
$ cd $ORACLE_HOME/hostname_sid/sysman/log
$ cd $ORACLE_HOME/ausuat.com_crms/sysman/log
[oracle@ausuat log]$ ls
...
The files required to deploy the Database Control application are installed in the
$ORACLE_HOME/oc4j/j2ee directory structure.
$ cd $ORACLE_HOME/oc4j/j2ee
[oracle@ausuat j2ee]$ ls
...
You can verify DBConsole is configured or NOT for a Particular database at OS level. If
DBConsole is configured for an Oracle database, you can see under $ORACLE_HOME followed by
oc4j/j2ee/OC4J_DBConsole_HOSTNAME_SID (corresponding HOSTNAME and SID exists).
$ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_HOSTNAME_SID
/u01/app/oracle/product/11.2.0/dbhome_2/oc4j/j2ee/OC4J_Dbconsole_ausuat.com_hrms
/u01/app/oracle/product/11.2.0/dbhome_2/oc4j/j2ee/OC4J_Dbconsole_ausuat.com_crms
/u01/app/oracle/product/11.2.0/dbhome_2/oc4j/j2ee/OC4J_Dbconsole_ausuat.com_orcl
$ cd $ORACLE_HOME/OPatch
$ ./opatch lsinventory detail | grep Manager
Database Workspace Manager 11.2.0.4.0
Enterprise Manager Agent 10.2.0.4.5
Enterprise Manager Agent Core Files 10.2.0.4.5
Enterprise Manager Common Core Files 10.2.0.4.5
Enterprise Manager Common Files 10.2.0.4.5
Enterprise Manager Database Plugin -- Agent Support 11.2.0.4.0
Enterprise Manager Database Plugin -- Repository Support 11.2.0.4.0
Enterprise Manager Grid Control Core Files 10.2.0.4.5
Enterprise Manager plugin Common Files 11.2.0.4.0
Enterprise Manager Repository Core Files 10.2.0.4.5
Oracle Configuration Manager 10.3.8.1.0
Oracle Configuration Manager Client 10.3.2.1.0
Oracle Configuration Manager Deconfiguration 10.3.1.0.0
Oracle Enterprise Manager Console DB 11.2.0.4.0
Oracle Recovery Manager 11.2.0.4.0
Oracle Wallet Manager
ADDITIONAL LINKS
To manage an Oracle 11g database, you can use OEM Database Control. With Database
Control, only one database can be managed/monitored.
You can manage RAC database as well. You can access database control for RAC through any
of the available nodes (hosts) of the RAC database. Dbconsole Process should be running
on the node.
During the database creation or upgrade you can configure Database Control using the DBUA
or DBCA. If you create database manually, you can use EMCA (command line utility) to
configure the Database Control.
If you want to use Database Control, the dbconsole process must be running on the
database Server. You can start and stop the dbconsole process using emctl command.
You need a Web browser to access the Database Control URL: http://hostname:portnumber/em
Where HOSTNAME is the name of the machine database is running, and PORT number is 1158 by
default. Database users with SELECT_CATALOG_ROLE privilege can access Database Control.
Deploy Oracle Enterprise Manager centrally in the environment; i.e. using that Grid Control
you can monitor your whole Infrastructure; i.e. you can manage more than one databases.
To deploy OEM centrally, you must install at least one Oracle Management Repository and
one Oracle Management Service within the environment, then install an Oracle Enterprise
Management Agent on each host (target machine) to monitor and manage.
The 11g Grid Control is NOT the same 11g version you associate with the database. Grid
control does NOT have a 11g R2. The versions of Grid Control 11g are 11.1.0.x, and NO 11.2.
First install the Repository Database and the Middleware Layer then install the Grid Control
Software. Once Grid Control installation is complete finally you can deploy agents on any
Server you wish to monitor.
Management Agent Responsible for collecting information from the monitoring targets and
transporting sends information to the OEM Management Service i.e OMS.
Management Service This is middle tier (OMS). Responsible to communicate with Management
Agents and stores the collected information in a repository database for analysis purpose.
The OMA (agent) runs on the target machine. It is responsible for monitoring all targets
and collects information on the Hardware, Operating System, and installed applications.
The OMS is deployed on the (Middle tier) and collects the data generated by the OMAs.
The OMS pulls the information from the OMAs and loads gathered data into the repository.
Repository is the Storage location (an Oracle database) where all the information collected
by the (OMA) Management Agent gets stored. OMS uploads the monitoring data it receives from
the Management Agents to the Management Repository. The Management Repository then organizes
collected data so that it can be retrieved by OMS and displayed in the Grid Control Console.
Management Repository is configured in Oracle database (it can be existing or new one).
EM GRID Control Console: Using this HTML Interface you can use its possible to monitor and
administer your entire environment from one location. Targets can include Oracle databases,
Application Servers, Listeners, and Third-Party Software. Grid Control is now Obsolete.
Database Control is NO longer available as of Oracle Database 12c. In its place the
equivalent tool available in Oracle 12c is Database Express (also known as EM Express).
Using the EM_EXPRESS_BASIC role users can connect to EM Express and view the pages only in
READ-ONLY mode and cannot make any changes. The EM_EXPRESS_ALL role enables users to connect
to EM Express and use all the functionality provided by EM Express (read/write access).
Finally OEM Cloud Control 12c is the latest release to manage and monitor multiple hosts.
The name change is Oracle strategy to go with the currently in Popular Technology.
EM12c provides much better management features for entire ORACLE & NON-ORACLE DATABASES.