Guenadi N Jilevski's Oracle BLOG

Oracle RAC, DG, EBS, DR and HA DBA BLOG

Installing OEM 11g on OEL 5.5

Installing OEM 11g on OEL 5.5

In this article we will looks at installing OEM Grid Control11 g. The OEM Grid Control 11g install requires an existing Oracle 11g database (11R1 or 11gR2) and Oracle WebLogic server 11g 10.3.2 both patched as specified here in Oracle installation documentation. Oracle OEM Grid Control 10g used to come bundled with Oracle Application server 10g (traditional Apache and OC4J) and an option to install database for OMR or use an already existing database for OMR. OEM Grid Control versions 11g instead contrary to previous versions requires that Oracle WebLogic server be installed and OEM OMR database be created prior to the install. The install in this post uses OEL 5.5, Oracle Web server 11g 10.3.2 and existing Oracle database 11gR2. Some patches need to be installed to the existing oracle RDBMS and Grid Infrastructure homes and to Oracle WebLogic Server. The documentation requires that patches for database bugs 9002336 and 9067282 be applied. Patch 9002336 has a prerequisite of patch 9352237, which includes patch 9067282, so only patches 9352237 and 9002336 will be applied.

Download the following software components using the following links

  1. OEL 5.5
  2. Oracle 11gR2 for linux.
  3. OPatch latest version
  4. Oracle WebLogic Server 10.3.2.
  5. Java SE Development Kit 6u18
  6. OEM GC 11gR1
  7. Patch 9002336 and patch 9352237

Install OEL 5.5 as show in the post related to installing OEL 5.5, click here for further information.

Make sure packages required to install Oracle 11g R2 are present.

  • binutils-2.*
  • compat-libstdc++-33*
  • elfutils-libelf-0.*
  • elfutils-libelf-devel-*
  • gcc-4.*
  • gcc-c++-4.*
  • glibc-2.*
  • glibc-common-2.*
  • glibc-devel-2.*
  • glibc-headers-2.*
  • ksh-2*
  • libaio-0.*
  • libaio-devel-0.*
  • libgcc-4.*
  • libstdc++-4.*
  • libstdc++-devel-4.*
  • make-3.*
  • sysstat-7.*
  • unixODBC-2.*
  • unixODBC-devel-2.*

 

For example if packages are not installed install them as specified below:

[root@raclinux1 Server]# rpm -Uvh unixODBC-2.*

warning: unixODBC-2.2.11-7.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159

Preparing… ########################################### [100%]

……………………………………………………………………………………………………

 

For OEM11g make sure the following packages are installed.

  • compat-db-4*
  • compat-libstdc++-296*
  • rng-utils-2*
  • setarch-2*

 

Install Oracle 11g R2 Grid Infrastructure and RDBMS and create database to serve as OMR.

Staging area will look as follow.

Change the permissions for JDK:

chmod +x jdk -6u18-linux-i586-rpm.bin

Start the JDK by issuing the below command to install jdk

[oracle@raclinux1 u01]$ ./jdk-6u18-linux-i586-rpm.bin

Sun Microsystems, Inc. Binary Code License Agreement

 

for the JAVA SE DEVELOPMENT KIT (JDK), VERSION 6

 

SUN MICROSYSTEMS, INC. (“SUN”) IS WILLING TO LICENSE THE

SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION

THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY

…………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………

Network Circle, Santa Clara, California 95054, U.S.A.

 

 

Do you agree to the above license terms? [yes or no]

yes

Unpacking…

Checksumming…

Extracting…

UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).

replace jdk-6u18-linux-i586.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: A

inflating: jdk-6u18-linux-i586.rpm

inflating: sun-javadb-common-10.5.3-0.2.i386.rpm

inflating: sun-javadb-core-10.5.3-0.2.i386.rpm

inflating: sun-javadb-client-10.5.3-0.2.i386.rpm

inflating: sun-javadb-demo-10.5.3-0.2.i386.rpm

inflating: sun-javadb-docs-10.5.3-0.2.i386.rpm

inflating: sun-javadb-javadoc-10.5.3-0.2.i386.rpm

error: can’t create transaction lock on /var/lib/rpm/__db.000

 

Java(TM) SE Development Kit 6 successfully installed.

 

Product Registration is FREE and includes many benefits:

* Notification of new versions, patches, and updates

* Special offers on Sun products, services and training

* Access to early releases and documentation

 

Product and system data will be collected. If your configuration

supports a browser, the Sun Product Registration form for

the JDK will be presented. If you do not register, none of

this information will be saved. You may also register your

JDK later by opening the register.html file (located in

the JDK installation directory) in a browser.

 

For more information on what data Registration collects and

how it is managed and used, see:

http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html

 

Press Enter to continue…..

 

Done.

[oracle@raclinux1 u01]$

 

Install OWLS 11g 10.3.2 typing ./ oepe111130_wls1032_linux32.bin as oracle at the prompt in /u01/app/oracle/Middleware.

Install Oracle WebLogic Server 10.3.2 as shown here. Note OWLS 10.3.3 cause OEM 11g installation to fail.

Prepare the repository database. If you have performed a default installation you will need to de-configure Enterprise Manager Database Control. Run the following command as the “oracle” user.

$ emca -deconfig dbcontrol db -repos drop -SYS_PWD -SYSMAN_PWD

The output of the command is as follow:

[oracle@raclinux1 ~]$ emca -deconfig dbcontrol db -repos drop -SYS_PWD sys1 -SYSMAN_PWD sysman

[oracle@raclinux1 ~]$ env | grep REP11gR2

[oracle@raclinux1 ~]$ env | grep ORA

ORACLE_UNQNAME=RACDB

ORACLE_SID=REP11GR2

ORACLE_BASE=/u01/app/oracle

ORACLE_HOSTNAME=raclinux1.gj.com

ORACLE_TERM=xterm

ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1

[oracle@raclinux1 ~]$ emca -deconfig dbcontrol db -repos drop -SYS_PWD sys1 -SYSMAN_PWD sysman

 

STARTED EMCA at Jul 9, 2010 10:37:18 AM

EM Configuration Assistant, Version 11.2.0.0.2 Production

Copyright (c) 2003, 2005, Oracle. All rights reserved.

 

Enter the following information:

Database SID: REP11GR2

Listener port number: 1521

 

Do you wish to continue? [yes(Y)/no(N)]: Y

Jul 9, 2010 10:37:50 AM oracle.sysman.emcp.EMConfig perform

INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/REP11/emca_2010_07_09_10_37_17.log.

Jul 9, 2010 10:37:52 AM oracle.sysman.emcp.util.DBControlUtil stopOMS

INFO: Stopping Database Control (this may take a while) …

Jul 9, 2010 10:43:17 AM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl

WARNING: Error initializing SQL connection. SQL operations cannot be performed

Jul 9, 2010 10:43:17 AM oracle.sysman.emcp.EMReposConfig invoke

INFO: Dropping the EM repository (this may take a while) …

Jul 9, 2010 10:58:51 AM oracle.sysman.emcp.EMReposConfig invoke

INFO: Repository successfully dropped

Enterprise Manager configuration completed successfully

FINISHED EMCA at Jul 9, 2010 10:59:20 AM

[oracle@raclinux1 ~]$

 

Make the following initialization parameter changes.

ALTER SYSTEM SET log_buffer=10485760 SCOPE=SPFILE;

ALTER SYSTEM SET processes=500 SCOPE=SPFILE;

ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE;

 

Now bounce the instance for changes to take effect. Make sure that UNDO tablespace is at least 300MB.

The documentation states that patches for database bugs 9002336 and 9067282 must be applied. Those patches need to be applied to BOTH RDBMS and Grid Infrastructure homes. Next we must install the latest version of the “opatch” utility and unzip the patches.

 

 

$ unzip -o p6880880_112000_Linux.zip

$unzip –o p9002336_112000_Linux.zip

$unzip –o p9067282_112000_Linux.zip

 

The screenshot confirms that the Opatch and the requested patches are unzipped.

Make sure that

  1. in RDBMS home listener and databases are down
  2. in grid infrastructure home listener and ASM database are down

Patching RDBMS and Grid Infrastructure details:

  1. Applying patch 9352237

[oracle@raclinux1 9352237]$ export PATH=$PATH:/u01/OPatch

[oracle@raclinux1 9352237]$ opatch apply

Invoking OPatch 11.2.0.1.2

 

Oracle Interim Patch Installer version 11.2.0.1.2

Copyright (c) 2010, Oracle Corporation. All rights reserved.

 

 

Oracle Home : /u01/app/oracle/product/11.2.0/db_1

Central Inventory : /u01/app/oraInventory

from : /etc/oraInst.loc

OPatch version : 11.2.0.1.2

OUI version : 11.2.0.1.0

OUI location : /u01/app/oracle/product/11.2.0/db_1/oui

Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2010-07-09_18-54-32PM.log

 

Patch history file: /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt

 

ApplySession applying interim patch ‘9352237’ to OH ‘/u01/app/oracle/product/11.2.0/db_1’

 

Running prerequisite checks…

Provide your email address to be informed of security issues, install and

initiate Oracle Configuration Manager. Easier for you if you use your My

Oracle Support Email address/User Name.

Visit http://www.oracle.com/support/policies.html for details.

Email address/User Name:

 

You have not provided an email address for notification of security issues.

Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:

Email address/User Name: gjilevski@gmail.com

Provide your My Oracle Support password to receive security updates via your My Oracle Support account.

Password (optional):

 

Unable to establish a network connection to Oracle. If your systems require a

proxy server for outbound Internet connections, enter the proxy server details

in this format:

[<proxy-user>@]<proxy-host>[:<proxy-port>]

If you want to remain uninformed of critical security issues in your

configuration, enter NONE

Proxy specification:

An invalid proxy specification was given. Please re-enter the proxy information.

 

Unable to establish a network connection to Oracle. If your systems require a

proxy server for outbound Internet connections, enter the proxy server details

in this format:

[<proxy-user>@]<proxy-host>[:<proxy-port>]

If you want to remain uninformed of critical security issues in your

configuration, enter NONE

Proxy specification:

An invalid proxy specification was given. Please re-enter the proxy information.

 

Unable to establish a network connection to Oracle. If your systems require a

proxy server for outbound Internet connections, enter the proxy server details

in this format:

[<proxy-user>@]<proxy-host>[:<proxy-port>]

If you want to remain uninformed of critical security issues in your

configuration, enter NONE

Proxy specification: NONE

 

 

 

OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.

 

 

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.

(Oracle Home = ‘/u01/app/oracle/product/11.2.0/db_1’)

 

 

Is the local system ready for patching? [y|n]

Could not recognize input. Please re-enter.

y

User Responded with: Y

Backing up files and inventory (not for auto-rollback) for the Oracle Home

Backing up files affected by the patch ‘9352237’ for restore. This might take a while…

Backing up files affected by the patch ‘9352237’ for rollback. This might take a while…

Execution of ‘sh /u01/9352237/custom/scripts/pre -apply 9352237 ‘:

 

 

Return Code = 0

 

Patching component oracle.rdbms.rsf, 11.2.0.1.0…

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libpls11.a” with “lib/libpls11.a/phd.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libpls11.a” with “lib/libpls11.a/ph2drv.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libpls11.a” with “lib/libpls11.a/ph2oa.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libgeneric11.a” with “lib/libgeneric11.a/kot.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libgeneric11.a” with “lib/libgeneric11.a/kgh.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libgeneric11.a” with “lib/libgeneric11.a/kgl.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libgeneric11.a” with “lib/libgeneric11.a/kgl2.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libgeneric11.a” with “lib/libgeneric11.a/kgl4.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libgeneric11.a” with “lib/libgeneric11.a/qct.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libcommon11.a” with “lib/libcommon11.a/kdzt.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libcommon11.a” with “lib/libcommon11.a/sagedata.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libcommon11.a” with “lib/libcommon11.a/kdzilcs.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libcommon11.a” with “lib/libcommon11.a/kdzc.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/libdbtools11.a” with “rdbms/lib/libdbtools11.a/krmq.o”

 

Patching component oracle.rdbms.dbscripts, 11.2.0.1.0…

Copying file to “/u01/app/oracle/product/11.2.0/db_1/rdbms/admin/prvtamgt.plb”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/rdbms/admin/utlu112i.sql”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/rdbms/admin/utlu112x.sql”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/rdbms/admin/catexp.sql”

 

Patching component oracle.rdbms, 11.2.0.1.0…

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kcc.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdt.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kspt.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kxtt.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktc.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktcnq.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktu.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktur.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kjbr.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/k2g.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/rfafo.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/rfcfg.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/rfmboot.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/rfmedd.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/rfmrole.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/rfsicd.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdo.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktcn.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktg.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktfa.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktud.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/aud.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kzam.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kxs.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kks.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kks1.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kksc.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kfd.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kfda.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kfdp.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kfds.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kff.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kfio.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kfio0.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kfn.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kfnb.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kfnc.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kfns.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kfnm.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ksfd.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kkopq.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kxfp.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kxfr.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kxfxq.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kjbl.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ksucln.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ksk.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ksu.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdlw.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdst00.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdst01.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdst11.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdstrr.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kcfis.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kcbb.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kcbz.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kcl.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktsla.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktslm.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/koks3.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdu.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kqf.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kwqa.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kwqm.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kko.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kjxgf.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kjxgg.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kjxgm.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kjxgr.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/qesrc.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/qkna.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/qksrc.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kcbl.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kkqtutl.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kkqs.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/knlb.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kcb.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kcbk.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kzu.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktt.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kjbm.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/qksvc.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ksmg.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdbl.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdzh.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdblc.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdst.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktein.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kcbb.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kcbs.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kcbz.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktsp.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdblc.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdo.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktsf.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/atb.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kwqid.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdlrci.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdlxdup.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kmgs.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kmgsb.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kzvdve.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/qks3t.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kcbi.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdli.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/skptch.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/ktslj.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kdza.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/libknlopt.a” with “rdbms/lib/libknlopt.a/ktd.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/libknlopt.a” with “rdbms/lib/libknlopt.a/jox.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libasmclnt11.a” with “lib/libasmclnt11.a/kgf.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libasmclnt11.a” with “lib/libasmclnt11.a/kgfdp.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libasmclnt11.a” with “lib/libasmclnt11.a/kgfdputl.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libasmclnt11.a” with “lib/libasmclnt11.a/kgfn.o”

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libasmclnt11.a” with “lib/libasmclnt11.a/kgfo.o”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/ktd.o”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/jox.o”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/kfod.o”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/mkpatch.o”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/ins_rdbms.mk”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/env_rdbms.mk”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/rdbms/xml/xsl/kulob.xsl”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/rdbms/xml/xsl/kustorag.xsl”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/cpu/scripts/bug9371993.sql”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/cpu/scripts/bug9016295.sql”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/psu/scripts/bug8820324.sql”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/psu/11.2.0.1.1/catpsu.sql”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/psu/11.2.0.1.1/catpsu_rollback.sql”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/rdbms/admin/bundledata_PSU.xml”

 

Patching component oracle.oraolap, 11.2.0.1.0…

Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/liboraolap11.a” with “lib/liboraolap11.a/xscarrot.o”

 

Patching component oracle.rdbms.deconfig, 11.2.0.1.0…

Copying file to “/u01/app/oracle/product/11.2.0/db_1/lib/libasmclnt11.so”

 

Patching component oracle.javavm.server, 11.2.0.1.0…

Copying file to “/u01/app/oracle/product/11.2.0/db_1/javavm/install/jvm_exp.sql”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/javavm/install/initjvm.sql”

Copying file to “/u01/app/oracle/product/11.2.0/db_1/javavm/install/jvmursc.sql”

Running make for target client_sharedlib

Running make for target irman

Running make for target ikfod

Running make for target irenamedg

Running make for target idgmgrl

Running make for target imkpatch

Running make for target client_sharedlib

Running make for target ioracle

ApplySession adding interim patch ‘9352237’ to inventory

 

Verifying the update…

Inventory check OK: Patch ID 9352237 is registered in Oracle Home inventory with proper meta-data.

Files check OK: Files from Patch ID 9352237 are present in Oracle Home.

 

——————————————————————————–

********************************************************************************

********************************************************************************

** ATTENTION **

** **

** Please note that the Patch Set Update Installation (PSU Deinstallation) **

** is not complete until all the Post Installation (Post Deinstallation) **

** instructions noted in the Readme accompanying this PSU, have been **

** successfully completed. **

** **

********************************************************************************

********************************************************************************

 

——————————————————————————–

 

Execution of ‘sh /u01/9352237/custom/scripts/post -apply 9352237 ‘:

 

 

Return Code = 0

 

The local system has been patched and can be restarted.

 

  • Applying patch 9002336

     

    [oracle@raclinux1 u01]$ cd 9002336

    [oracle@raclinux1 9002336]$ opatch apply

    Invoking OPatch 11.2.0.1.2

     

    Oracle Interim Patch Installer version 11.2.0.1.2

    Copyright (c) 2010, Oracle Corporation. All rights reserved.

     

     

    Oracle Home : /u01/app/oracle/product/11.2.0/db_1

    Central Inventory : /u01/app/oraInventory

    from : /etc/oraInst.loc

    OPatch version : 11.2.0.1.2

    OUI version : 11.2.0.1.0

    OUI location : /u01/app/oracle/product/11.2.0/db_1/oui

    Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2010-07-09_20-20-32PM.log

     

    Patch history file: /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt

     

    ApplySession applying interim patch ‘9002336’ to OH ‘/u01/app/oracle/product/11.2.0/db_1’

     

    Running prerequisite checks…

     

    OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.

     

     

    Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.

    (Oracle Home = ‘/u01/app/oracle/product/11.2.0/db_1’)

     

     

    Is the local system ready for patching? [y|n]

    y

    User Responded with: Y

    Backing up files and inventory (not for auto-rollback) for the Oracle Home

    Backing up files affected by the patch ‘9002336’ for restore. This might take a while…

    Backing up files affected by the patch ‘9002336’ for rollback. This might take a while…

     

    Patching component oracle.rdbms, 11.2.0.1.0…

    Updating archive file “/u01/app/oracle/product/11.2.0/db_1/lib/libserver11.a” with “lib/libserver11.a/kkqtutl.o”

    Running make for target ioracle

    ApplySession adding interim patch ‘9002336’ to inventory

     

    Verifying the update…

    Inventory check OK: Patch ID 9002336 is registered in Oracle Home inventory with proper meta-data.

    Files check OK: Files from Patch ID 9002336 are present in Oracle Home.

     

    The local system has been patched and can be restarted.

     

     

    OPatch succeeded.

    [oracle@raclinux1 9002336]$

    OPatch succeeded.

    [oracle@raclinux1 9352237]$

     

    1. Applying patch 9004119

    [oracle@raclinux1 u01]$ cd 9004119

    [oracle@raclinux1 9004119]$ ls

    etc files README.txt

    [oracle@raclinux1 9004119]$ opatch apply

    Invoking OPatch 11.2.0.1.2

     

    Oracle Interim Patch Installer version 11.2.0.1.2

    Copyright (c) 2010, Oracle Corporation. All rights reserved.

     

     

    Oracle Home : /u01/app/oracle/product/11.2.0/db_1

    Central Inventory : /u01/app/oraInventory

    from : /etc/oraInst.loc

    OPatch version : 11.2.0.1.2

    OUI version : 11.2.0.1.0

    OUI location : /u01/app/oracle/product/11.2.0/db_1/oui

    Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2010-07-09_21-23-36PM.log

     

    Patch history file: /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt

     

    ApplySession applying interim patch ‘9004119’ to OH ‘/u01/app/oracle/product/11.2.0/db_1’

     

    Running prerequisite checks…

     

    OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.

     

     

    Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.

    (Oracle Home = ‘/u01/app/oracle/product/11.2.0/db_1’)

     

     

    Is the local system ready for patching? [y|n]

    y

    User Responded with: Y

    Backing up files and inventory (not for auto-rollback) for the Oracle Home

    Backing up files affected by the patch ‘9004119’ for restore. This might take a while…

    Backing up files affected by the patch ‘9004119’ for rollback. This might take a while…

     

    Patching component oracle.rdbms, 11.2.0.1.0…

    Copying file to “/u01/app/oracle/product/11.2.0/db_1/bin/racone2rac”

    Copying file to “/u01/app/oracle/product/11.2.0/db_1/bin/Omotion”

    Copying file to “/u01/app/oracle/product/11.2.0/db_1/bin/raconefix”

    Copying file to “/u01/app/oracle/product/11.2.0/db_1/bin/raconeinit”

    Copying file to “/u01/app/oracle/product/11.2.0/db_1/bin/raconestatus”

    ApplySession adding interim patch ‘9004119’ to inventory

     

    Verifying the update…

    Inventory check OK: Patch ID 9004119 is registered in Oracle Home inventory with proper meta-data.

    Files check OK: Files from Patch ID 9004119 are present in Oracle Home.

     

    The local system has been patched and can be restarted.

     

     

    OPatch succeeded.

    [oracle@raclinux1 9004119]$

    Patching OWLS

    Form /u01/app/oracle/Middleware/utils/bsu start bsu.sh. Enter the My Oracle Support (MOS) formerly Metalink credentials.

    In the Downloaded Patches section patch WDJ7 will appear. Select to apply the patch. After applying the patch in the Default section we will have WDJ7 as show bellow. Select File and Exit to Exit bsu utility.

    Installing Oracle EM Grid Control 11g

    We installed Oracle 11g R2 grid infrastructure. After that we installed Oracle RDBMS and created two databases on ASM for the OMR and for testing. We patched both Oracle RDBMS and grid infrastructure homes with patches 9352237, 9002336 required for OEM 11g and patch 9004119 for RAC ONE node utilities. We patched the OWLS with the patch WDJ7 required as per the documentation.

    We unzip with ‘unzip –o <zipfile> ‘ the OEM11 downloads and then we start the installation as show below from the stage.

    Either enter the MOS credentials or uncheck the box. After that press Next to continue.

    If the box has been left unchecked confirm that Configuration Manager will be set at a later stage.

    Select Skip updates and press Next to continue.

    Select Install a new enterprise manager system. Press Next to continue.

    Wait dor the prerequisite checks to complete. Press Next to continue.

    Specify the OMS instance base location and Middleware home location. Press Next to continue.

    Specify the requested details for the new Grid Control domain that will be created during the course of OEM install and configuration. Press Next to continue.

    Specify the details for the OMR. Press Next to continue.

    Specify the sysman password end the location for the new tablespaces for OEM. Press Next to continue.

    Examine the ports and press Next to continue.

    Review the installation information and press Install to continue.

    Wait for the installation to complete.

    When installation completes you will be prompted to install the scripts specified as a root. Once done press OK to continue with the configuration of OEM 11g.

    The output of allroot.sh is as follows:

    [root@raclinux1 oms11g]# ./allroot.sh

     

    Starting to execute allroot.sh ………

     

    Starting to execute /u01/app/oracle/Middleware/oms11g/root.sh ……

    Running Oracle 11g root.sh script…

     

    The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME= /u01/app/oracle/Middleware/oms11g

     

    Enter the full pathname of the local bin directory: [/usr/local/bin]:

    The file “dbhome” already exists in /usr/local/bin. Overwrite it? (y/n)

    [n]:

    The file “oraenv” already exists in /usr/local/bin. Overwrite it? (y/n)

    [n]:

    The file “coraenv” already exists in /usr/local/bin. Overwrite it? (y/n)

    [n]:

     

    Entries will be added to the /etc/oratab file as needed by

    Database Configuration Assistant when a database is created

    Finished running generic part of root.sh script.

    Now product-specific root actions will be performed.

    Adding entry to /etc/oratab file…

    Finished execution of /u01/app/oracle/Middleware/oms11g/root.sh ……

     

     

    Starting to execute /u01/app/oracle/Middleware/agent11g/root.sh ……

    Running Oracle 11g root.sh script…

     

    The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME= /u01/app/oracle/Middleware/agent11g

     

    Enter the full pathname of the local bin directory: [/usr/local/bin]:

    The file “dbhome” already exists in /usr/local/bin. Overwrite it? (y/n)

    [n]:

    The file “oraenv” already exists in /usr/local/bin. Overwrite it? (y/n)

    [n]:

    The file “coraenv” already exists in /usr/local/bin. Overwrite it? (y/n)

    [n]:

     

    Entries will be added to the /etc/oratab file as needed by

    Database Configuration Assistant when a database is created

    Finished running generic part of root.sh script.

    Now product-specific root actions will be performed.

    Finished product-specific root actions.

    Adding entry to /etc/oratab file…

    Finished execution of /u01/app/oracle/Middleware/agent11g/root.sh ……

    [root@raclinux1 oms11g]# pwd

    /u01/app/oracle/Middleware/oms11g

    [root@raclinux1 oms11g]#

     

    After all configuration assistants complete Close to exit.

    After login in we will have.

    We can see the database we have.

    We can examine D11P as a short tour in OEM11g.

    We can look at the cluster.

    We can also check the status of the OMS and the Agent with the following commands.

    [oracle@raclinux1 bin]$ ./emctl status agent

    Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0

    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.

    —————————————————————

    Agent Version : 11.1.0.1.0

    OMS Version : 11.1.0.1.0

    Protocol Version : 11.1.0.0.0

    Agent Home : /u01/app/oracle/Middleware/agent11g

    Agent binaries : /u01/app/oracle/Middleware/agent11g

    Agent Process ID : 32378

    Parent Process ID : 32358

    Agent URL : https://raclinux1.gj.com:3872/emd/main/

    Repository URL : https://raclinux1.gj.com:4900/em/upload

    Started at : 2010-08-05 12:51:29

    Started by user : oracle

    Last Reload : 2010-08-05 12:51:29

    Last successful upload : (none)

    Last attempted upload : (none)

    Total Megabytes of XML files uploaded so far : 0.00

    Number of XML files pending upload : 210

    Size of XML files pending upload(MB) : 17.77

    Available disk space on upload filesystem : 83.93%

    Last successful heartbeat to OMS : 2010-08-05 12:53:51

    —————————————————————

    Agent is Running and Ready

    [oracle@raclinux1 bin]$

     

    [oracle@raclinux1 bin]$ ./emctl upload agent

    Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0

    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.

    —————————————————————

    EMD upload completed successfully

    [oracle@raclinux1 bin]$

     

    [oracle@raclinux1 bin]$ ./emctl status oms

    Oracle Enterprise Manager 11g Release 1 Grid Control

    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.

    WebTier is Up

    Oracle Management Server is Up

    [oracle@raclinux1 bin]$

     

    Simple scripts to start and stop OEM 11g are shown below.

     

    [oracle@raclinux1 ~]$ cat oem11start.sh

    #!/bin/bash

    # Start OEM 11

    export OMS_HOME=/u01/app/oracle/Middleware/oms11g

    export AGENT_HOME=/u01/app/oracle/Middleware/agent11g

     

    # Start everything

     

    $OMS_HOME/bin/emctl start oms

     

    $AGENT_HOME/bin/emctl start agent

    [oracle@raclinux1 ~]$ cat oem11stop.sh

    #!/bin/bash

    # Stop OEM 11g

    export OMS_HOME=/u01/app/oracle/Middleware/oms11g

    export AGENT_HOME=/u01/app/oracle/Middleware/agent11g

     

    # Stop everything

     

    $OMS_HOME/bin/emctl stop oms -all

     

    $AGENT_HOME/bin/emctl stop agent

    [oracle@raclinux1 ~]$

     

     

    Summary

    We looked at the prerequisite for OEM 11g installation and configuration. We also installed the required patches for

    • Oracle Grid Infrastructure
    • Oracle RDBMS
    • Oracle Web Logic Server

We walked through the OEM 11g installation.

 

 

 

 

 

 

 

 

 

 

 

 

 


 

July 18, 2010 - Posted by | oracle

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: