OEM CONFIGURATION - (DATABASE CONTROL).pdf

April 27, 2017 | Author: G.R.THIYAGU ; Oracle DBA | Category: N/A
Share Embed Donate


Short Description

Download OEM CONFIGURATION - (DATABASE CONTROL).pdf...

Description

OEM - ORACLE ENTERPRISE MANAGER IN 11g R2 | DATABASE CONTROL

OEM – ORACLE ENTERPRISE MANAGER OEM(EM) is known as Oracle Enterprise Manager brought to you by Oracle Corporation. Enterprise Manager (OEM) is Oracle's GUI-based comprehensive Database-Management tool that lets you manage Oracle database efficiently. It comes along with Database Server Software. 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. Oracle Enterprise Manager comes in 3 flavors:

Database Control, Grid Control, and

Cloud Control.

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. You can configure OEM (Database Control) in 2 ways.

DBCA – Database Configuration Assistant. EMCA – Enterprise Manager Configuration Assistant. 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

Exploring the Oracle DBA Technology by Gunasekaran , Thiyagu

OEM - ORACLE ENTERPRISE MANAGER IN 11g R2 | DATABASE CONTROL

DATABASE CONTROL CONFIGURATION USING DBCA

$ dbca Welcome Screen > Next 1) Create a database > Next 2) General Purpose of Transaction Processing > Next 3) Enter Global Database Name and SID > Next On step 4 you can see the option to configure OEM (Ensure the check box is ticked)

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.

Exploring the Oracle DBA Technology by Gunasekaran , Thiyagu

OEM - ORACLE ENTERPRISE MANAGER IN 11g R2 | DATABASE CONTROL

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.

Following picture ensures Enterprise Manager Repository is set to TRUE

Exploring the Oracle DBA Technology by Gunasekaran , Thiyagu

OEM - ORACLE ENTERPRISE MANAGER IN 11g R2 | DATABASE CONTROL

Once the database creation is complete, an URL to access the EMC is shown as below. Oracle automatically starts up the Database Control service.

First of all you need a Web-browser to access Oracle’s OEM. Now I am trying to login to EM page to administer our database using above given address. Once I entered Database Control URL in Web browser I got warning message for Secure Connection Failed

Click  Or you can add an exception > Add Exception > Get Certificate > Confirm Security Exception

Exploring the Oracle DBA Technology by Gunasekaran , Thiyagu

OEM - ORACLE ENTERPRISE MANAGER IN 11g R2 | DATABASE CONTROL

Now I am getting access to the login page. We need to supply login credentials to access this Web-based tool. Enter user SYS and its password, then select "SYSDBA" as a role then click Login.

Now you can monitor and manage the crms database through OEM (Database Control).

Exploring the Oracle DBA Technology by Gunasekaran , Thiyagu

OEM - ORACLE ENTERPRISE MANAGER IN 11g R2 | DATABASE CONTROL

EMCA AND EMCTL

EMCA



Enterprise Manager Configuration Assistant.

EMCTL



Enterprise Manager Control.

EMCA and EMCTL both are Oracle Utilities for Enterprise Manager. EMCA provides a command-line interface for configuring Database Control. EMCA can be used if a Non-Graphical user interface is preferred to configure OEM. EMCTL is a command line utility to administer/control core components of Enterprise Manager. This utility provides a facility to manage all aspects of the Enterprise Manager console including the OEM console, OEM agent and OMS (Oracle Management Service). 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. MAJOR DIFFERENCE BETWEEN DBCA Vs EMCA

DBCA does NOT provide any options to re-configure the DBControl. But EMCA can perform all possible customizations for existing DBControl. E.g. drop dbconsole, recreate dbconsole, upgrade, etc... ACCESSING THE ENTERPRISE MANAGER

Use a Web browser to access the Database Control URL: http://hostname:portnumber/em Point your Web browser (such as Internet Explorer or Firefox) to the OEM URL: 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

Exploring the Oracle DBA Technology by Gunasekaran , Thiyagu

OEM - ORACLE ENTERPRISE MANAGER IN 11g R2 | DATABASE CONTROL

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. You can check Port values by viewing the portlist.ini file Located at $ORACLE_HOME/install/portlist directory.

$ cd $ORACLE_HOME/install/ $ cat portlist.ini Enterprise Manager Console HTTP Port (hrms) = 1158 Enterprise Manager Agent Port (hrms) = 3938

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. Database Control [1158, 5500-5519], Default port 1158 EM Agent [3938]|[1830–1849], Default Port 3938

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 Enterprise Manager Console HTTP Port (hrms) = 1158 Enterprise Manager Agent Port (hrms) = 3938 Enterprise Manager Console HTTP Port (crms) = 5500 Enterprise Manager Agent Port (crms) = 1830 Enterprise Manager Console HTTP Port (orcl) = 5501 Enterprise Manager Agent Port (db3) = 1831

NOTE: Refer Doc for Port Number and Protocols of Oracle Components. CHANGING THE OEM DATABASE CONSOLE PORTS

To Find the current HTTP Port settings, you need to search given below. HTTP Port: Search for REPOSITORY_URL in the $ORACLE_HOME/HOST_SID/sysman/config/emd.properties file To change or customize the Port for OEM Database Control Ports, use the emca -reconfig ports in the command:

$ emca –reconfig ports –DBCONTROL_HTTP_PORT $ emca –reconfig ports –DBCONTROL_HTTP_PORT 1860

Exploring the Oracle DBA Technology by Gunasekaran , Thiyagu

OEM - ORACLE ENTERPRISE MANAGER IN 11g R2 | DATABASE CONTROL

DBCONSOLE CONFIGURATION USING EMCA

The EM Database Control is popularly known as Database Control/DBControl/DBConsole. The DBConsole repository objects are stored in the SYSMAN & MGMT_VIEW schema of the database. The Most Common operations performed using EMCA utility are following below.  Create DBConsole, Drop DBConsole, Reconfigure DBConsole and  Reconfigure the DBConsole Ports If you manually create an Oracle database you must configure the Database Control using the emca utility. Some of the examples given below.

# Commands to Configure/Create DBConsole $ emca -repos create

-- Create EM repository

$ emca -config dbcontrol db

-- Configure dbcontrol

$ emca -config

dbcontrol db - repose create

# Commands to Drop DBConsole Configuration $ emca –repos drop

--

Drop EM repository

$ emca –deconfig dbcontrol db

--

Deconfigure only dbcontrol

$ emca -deconfig dbcontrol db - repose drop # Commands to Recreate DBConsole $ emca –repos recreate

-- Recreate EM repository

$ emca –config dbcontrol db

-- Configure dbcontrol

$ emca -config

dbcontrol db - repose recreate

-repos create: Create a new Database Control repository. -repos drop: Drop the current Database Control repository. -repos recreate: Drop the current Database Control repository & recreate a new one. -config dbcontrol db: Configure Database Control for a database. -deconfig dbcontrol db: De-Configure Database Control. -cluster: perform configuration operation for a RAC database. -backup: configure automatic backup for a database. -upgrade: Upgrades an earlier version of the EM configuration to the current version. STARTING AND STOPPING THE DATABASE CONTROL CONSOLE PROCESS

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.

Exploring the Oracle DBA Technology by Gunasekaran , Thiyagu

OEM - ORACLE ENTERPRISE MANAGER IN 11g R2 | DATABASE CONTROL

# Commands to Stop/start/status of the Dbconsole Process $ emca stop dbconsole

-- Stop the dbconsole process

$ emca start dbconsole

-- Start the dbconsole process

$ emca status dbconsole

-- View the Status of the dbconsole process

HOW TO CONFIGURE DBCONSOLE WITH REPOSITORY

To configure the Database Control for your database, you must run the emca utility.

# Configuring/Creating DBConsole along with the Repository $ emca -config dbcontrol db -repos create STARTED EMCA at Oct 18, 2016 6:40:25 PM EM Configuration Assistant, Version 11.2.0.3.0 Production Copyright (c) 2003, 2011, Oracle.

All rights reserved.

Enter the following information: Database SID: devdb Listener port number: 1521 Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/dbhome_2 ]: Password for SYS user: Password for DBSNMP user: Password for SYSMAN user: Password for SYSMAN user: Email address for notifications (optional): Outgoing Mail (SMTP) server for notifications (optional): ----------------------------------------------------------------You have specified the following settings Database ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_2 Local hostname ................ ausuat.com Listener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_2 Listener port number ................ 1521 Database SID ................ devdb Email address for notifications ............... Outgoing Mail (SMTP) server for notifications ............... ----------------------------------------------------------------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.

Exploring the Oracle DBA Technology by Gunasekaran , Thiyagu

OEM - ORACLE ENTERPRISE MANAGER IN 11g R2 | DATABASE CONTROL

Oct 18, 2016 6:40:47 PM oracle.sysman.emcp.EMReposConfig createRepository INFO: Creating the EM repository (this may take a while) ... Oct 18, 2016 6:44:56 PM oracle.sysman.emcp.EMReposConfig invoke INFO: Repository successfully created Oct 18, 2016 6:45:00 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository INFO: Uploading configuration data to EM repository (this may take a while) ... Oct 18, 2016 6:46:40 PM oracle.sysman.emcp.EMReposConfig invoke INFO: Uploaded configuration data successfully Oct 18, 2016 6:46:44 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole INFO: Securing Database Control (this may take a while) ... Oct 18, 2016 6:46:57 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole INFO: Database Control secured successfully. Oct 18, 2016 6:46:57 PM oracle.sysman.emcp.util.DBControlUtil startOMS INFO: Starting Database Control (this may take a while) ... Oct 18, 2016 6:47:58 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration INFO: Database Control started successfully Oct 18, 2016 6:47:58 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration INFO: >>>>>>>>>>> The Database Control URL is https://ausuat.com:5502/em >>>>> The Database Control URL is https://ausuat.com:5502/em >> The Database Control URL is https://ausuat.com:5509/em
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF