Friday, September 26, 2008

OEM Database Home Page


After logon, the main database home page comes up. The top portion of the home page enables a quick glance at important details.

Some of the most important points in the above figure have been circled and annotated with numbered references in this article. First, note the section labeled "General" (1); this section shows some most rudimentary details about the database, such as the fact that the database has been up since March 20 as well as the instance name. The Oracle Home is shown as a hyperlink, which, when clicked, shows all the products and all other Oracle databases sharing that home. The hyperlink for Listeners shows all the databases and instances registered with the listener, whose name is shown immediately below. Finally, it shows the host name (starz).
In section named "Host CPU" (2), the CPU details are shown at a glance. Section "Active Sessions" (3) shows the active sessions and what they are doing at the moment (4). We see from the above that 99% of the time spent by the sessions is in waiting. (We will find the cause of these waits later.) The section on "High Availability" (5) shows availability-related information. For example, the value of "Instance Recovery Time," which is the value of MTTR Target for the instance, determines how much time may be required for instance crash recovery.
The section on "Space Usage" (6) is interesting: it shows warnings associated with 23 segments. (Again, more on these warnings later.) The section "Diagnostic Summary" (7) provides a synopsis of database well being. The number of performance findings indicates how many issues were proactively identified by the Automatic Database Diagnostic Monitor (ADDM), the new self-diagnostic engine in 10g. EM also automatically analyzes your environment to determine if any recommended best practices are being violated; the result of this analysis is presented in the "Policy Violation" section. Finally, EM scans the alert log and shows any recent ORA errors. This information is invaluable—automatic scanning of Oracle errors in the alert log saves you the considerable trouble of manually searching for them.
The bottom part of the database home page, shown in Figure 3, we see some of these messages in more detail. The section "Alerts" (1) shows all the relevant alerts that require your attention, each of which can be easily configured. Take the first one (2), for example, which shows that the Archiver process is hanging for some reason. Of course, the next course of action is to determine why. To find out, just click on it. You will be shown more details from the alert.log file containing the error. In this case, the culprit was a filled-up flashback recovery area; we just need to clear it up so the Archiver can start working again.

OEM Architecture


Architecture
OEM 10g is installed by default when you install the 10g software. Conceptually, it differs from previous versions in that instead of being a client-installed tool, it's actually an HTTP server (called DB Console) sitting on the database server itself. (See Figure 1.) You can use any browser to see the EM interface.

Figure 1: EM Architecture



The port number for DB Console is found in $ORACLE_HOME/install/portlist.ini. Here is an example of a file; ports in your case may be different.
Ultra Search HTTP port number = 5620
iSQL*Plus HTTP port number = 5560
Enterprise Manager Agent Port =
Enterprise Manager Console HTTP Port (starz10) = 5500
Enterprise Manager Agent Port (starz10) = 1830
From this file we know that the Agent for the database starz10 listens on the port 1830 and the EM console listens on 5500. We can invoke the EM logon screen by entering the following URL:
http://starz/em/console/logon/logon
This URL brings up a logon screen where you can log on as a DBA user. For our example, we will log in as SYS.

Enterprise Manager 10g - one-stop-shop for Oracle administration and management

Finally, http://www.oracle.com/technology/software/products/oem/htdocs/winsoft10g.html a tool that serves as one-stop-shop for Oracle administration and management—whether by novices or experts What tool do you use in your day-to-day DBA-related activities? It's a question I asked recently in a user group meeting.
The answers varied depending on the DBA's work experience. Most senior administrators expressed a preference for simple command-line SQL*Plus (my personal favorite), with the rest dividing their allegiances among a handful of third-party products. The same question, however, yielded a different response from entry-level DBAs: among that group, Enterprise Manager (EM) was clearly the tool of choice.
It's not hard to understand these preferences. Oracle Enterprise Manager has been steadily perfected since its introduction several years ago, beginning as the character-mode display SQL*DBA, evolving into a client OS-based tool, and finally taking on a Java flavor. The information presented by EM was sufficiently detailed for most DBA tasks, serving as a solution for users who were either too reluctant or too busy to learn a new syntax and wanted a GUI tool for managing common database chores such as adding users, modifying datafiles, and checking on rollback segments. The diagnostic pack supplied much-needed GUI support for performance tuning.
However, one of the major issues hampering EM's widespread adoption was its inability to keep pace with the development of the database server itself. For example, the Oracle9i Database version of EM doesn't support subpartitioning, a feature first introduced in Oracle8i.
The new version of EM in Oracle Database 10g changes that equation. It has a new architecture, a new interface, and most important, a very powerful and complete toolbox catering to all DBA skillsets—from novices to advanced users. And best of all, it's part of the installation itself without any additional cost. If you are evaluating third-party tools, you can certainly throw EM into the mix to light a fire under the competition. Even if you are an "in-command-line-we-trust" kind of DBA (like me), you will greatly appreciate how EM can help you in several situations.
In this installment I will introduce you to the new EM. Because the tool is so vast in scope, it will be impossible to cover the entire spectrum of features; instead, I will explain a few basics and offer pointers to additional material. Keeping in the spirit of this series, I will provide practical examples that demonstrate the use of the tool to solve real-life problems.

Installing Enterprise Manager 10g Grid Control Release 3 in windows vista

In order to install Enterprise Manager 10g Grid Control Release 3, you must install either 10.2.0.1.0 or 10.2.0.2.0 Grid Control environment. This section describes steps to install Enterprise Manager 10g Grid Control Release 3 environment starting with 10.2.0.1.0 (10.2.0.2.0 for Windows) install
2.1 Install Oracle Enterprise Manager 10g Release 2
Installing 10g Grid Control Release 3 requires any previous releases of Grid Control, that is any 10.2.x.x.x installation, and upgrade to 10.2.0.3.0 release. If you do not have a previous release, but want to have a 10.2.0.3.0 Grid Control environment, then first install 10.2.0.1.0 Grid Control (10.2.0.2.0 for Windows), and then upgrade it to 10.2.0.3.0. - Download Oracle Enterprise Manager 10g Release 2 Grid Control from:http://www.oracle.com/technology/software/products/oem/index.htmlReference the directions provided to download and unzip the product, and install 10.2.0.1.0 (10.2.0.2.0 for Windows). - Run runInstaller (setup.exe for Windows) to start installation - When asked for "install type" option, choose "Enterprise Manager using New Database" option - Complete installation as per install guide
Important: For information about installing 10.2.0.1.0 and 10.2.0.2.0, refer to the installation guides available at:http://www.oracle.com/technology/documentation/oem.html
2.2 Apply required patches
In the case of Grid Control environment installed via "Enterprise Manager using New Database" option, repository database version is 10.1.0.4.0. Before upgrading to 10.2.0.3, apply the patch for bug 4329444 on the Database Home. In order to apply this patch for the Linux platform:- Unzip the file p4329444_10104_.zip from the downloaded image described in section 1.2 using following command:$ unzip p4329444_10104_.zip- Follow the instruction in 4329444/README.txt to apply the patch to repository database
For Windows platform bug 4329444 might be encountered in rare cases. Upgrade to GC10.2.0.3 can be proceeded without this patch. In case of issue, Windows patch will be available from Oracle in February 2007 patch release on metalinkFor more detail on this and for other platforms, refer to the release note.
2.3 Install Oracle Enterprise Manager 10g Release 3
- Enter the following command to unzip and extract the installation files from the downloaded image described in section 1.2:$ unzip p3731593_102030_.zipThis extracts the files to the "3731593" directory. - Navigate to the 3731593/Disk1 subdirectory$ cd 3731593/Disk1- Set the ORACLE_HOME variable to the Oracle Management Service(OMS) oracle home. - Execute the runInstaller (setup.exe for Windows)$ ./runInstaller
The upgrades process then upgrades the Oracle Management Service (OMS), Oracle Management Repository and the Management Agent on the same host as the OMS to the latest Enterprise Manager 10g release 3 version.Important: The same Patch Set can be used for patching OMS,Repository, and Management Agent. For more detail on installing the patch set, refer to the release note.
2.4 Optional: Upgrading Repository Database to 10.2.0.3If you installed Grid Control 10.2.0.1.0 (10.2.0.2.0 for Windows) via "Enterprise Manager using New Database" option, your repository database version is 10.1.0.4. In order to upgrade your repository database to 10.2.0.3, follow the steps below after upgrading your Grid Control environment to Enterprise Manager 10g release 3.a. Upgrade the database to 10.2.0.1b. Install 10.2.0.3 database patch set
3. Upgrading any existing 10.2.0.X.0 Enterprise Manager Grid Control installations to Enterprise Manger 10g Grid Control Release 3.
Follow the steps below to upgrade an existing 10.2.0.1.0 or 10.2.0.2.0 Enterprise Manager Grid Control installation:
3.1 Roll-back patch 5191377 if it has been applied to the Oracle Management Service (OMS)- To check if this patch had been applied to the Oracle Management Service (OMS)a) Set the ORACLE_HOME environment variable to your OMS homeb) Change directory to $/Opatch$ cd /OPatchc) Execute following command:$./opatch lsinvd) Check the output to see if patch for this bug is applied.
- Rollback the one-off patch 5191377a) Set your current directory to the directory where the patch is located$ cd 5191377b) Run the following command:$ opatch rollback -id 5191377- Login as Repository Owner and execute the following command, against SQL promptSQL>drop index mgmt_current_violation_idx_05;
3.2 Apply patches if requiredIf Grid Control repository database is DB version 10.1.0.4.0 or 10.1.0.5.0, before upgrading to EM 10203, apply the patch for bug 4329444 on the Database Home. In order to apply this patch for the Linux platform:In order to apply this patch for the Linux platform:- Copy the p4329444__.zip file from the DVD to any directory on the host which has the repository database running on.- Unzip the file using following command:$ unzip p4329444__.zip- Follow the instruction in 4329444/README.txt to apply the patch
For Windows platform bug 4329444 might be encountered in rare cases. Upgrade to GC10.2.0.3 can be proceeded without this patch. In case of issue, Windows patch will be available from Oracle in February 2007 patch release on metalink
For more detail on this and for other platforms, refer to the release note.
3.3 Install Oracle Enterprise Manager 10g Release 3 Follow step 2.3 above.
4. Upgrading an existing 10.1.0.4.0 or a higher 10.1.0.X.0 Enterprise Manager Grid Control installation to the latest Enterprise Manger 10g Grid Control Release 3
Follow the steps below:
4.1 Upgrade the existing 10.1.0.4.0 or higher 10.1.0.x.0 installation to Enterprise Manager Grid Control version 10.2.0.1.0 (10.2.0.2.0 for Windows)
To accomplish this, refer to chapter "Upgrading Enterprise Manager Grid Control" of the Enterprise Manager Grid Control Installation and Basic Configuration guide available at:http://www.oracle.com/technology/documentation/oem.html
4.2 Apply patches if required
Follow step 3.2 above.
4.3 3 Install Oracle Enterprise Manager 10g Release 3 Follow step 2.3 above.

Oracle Enterprise Manager 10g Grid Control

Oracle Enterprise Manager 10g Grid Control provides single, integrated solution for administering, operating and monitoring applications and systems. Oracle Enterprise Manager 10g Release 3 Grid Control provides enhanced manageability and automation for your grid. It also extends the manageability to non-Oracle management frameworks and middleware.