Wednesday, September 29, 2010

Install Oracle Install Grid Control 11gR1 on Vmware with Windows 7 64-bit as host OS and Linux as guest(Part 13 of series, Install Weblogic wls10.3.2)

Some obtain His Blessings (liberation) through His Will, and others by His Will
keep trapped in the cycle of birth and death.

All are under His will none is out of it.


Index of all the posts of Gurpartap Singh's Blog


------------------------------------------------------------------------

To do a Fresh install of 11gR1 Look at posts 12,13 and 14.

Part 12 of series, Install JDK for Enterprise Manager Grid COntrol 11gR1
http://gurpartapblog.blogspot.com/2010/09/install-oracle-install-grid-control.html

Part 13 of series, Install Weblogic wls10.3.2 for Enterprise Manager Grid Control 11gR1
http://gurpartapblog.blogspot.com/2010/09/install-oracle-install-grid-control_29.html

Part 14 of series, Install Enterprise Manager Grid Control 11gR1
http://gurpartapblog.blogspot.com/2010/09/install-oracle-install-grid-control_2064.html



To upgrade existing Enterprise Manager Grid control from 10.2.0.4/10.2.0.5 to 11.1.0.1


Part 30 of series - Upgrade Enterprise Manager Grid Control from 10.2.0.5 to 11gr1 (11.1.0.1) on Solairs/Unix, Upgrade Additional Grid Control , OMS
http://gurpartapblog.blogspot.com/2011/02/part-30-of-series-upgrade-enterprise.html

Part 29 of series - Upgrade Enterprise Manager Grid Control from 10.2.0.5 to 11gr1 (11.1.0.1) on Solairs/Unix, Install and upgrade Grid Control, OMS
http://gurpartapblog.blogspot.com/2011/02/part-29-of-series-upgrade-enterprise.html

Part 28 of series - Upgrade Enterprise Manager Grid Control from 10.2.0.5 to 11gr1 (11.1.0.1) on Solairs/Unix, Install JDK and Weblogic
http://gurpartapblog.blogspot.com/2011/02/part-28-of-series-upgrade-enterprise.html

-----------------------------------------------------------------------

Remeber to install wls 10.3.2 and not 10.3.3 or you will get the following error in the install of grid control:




Error in log if you use 10.3.3:

/u01/app/oracle/product/middleware/oms11g/cfgtoollogs/cfgfw/CfmLogger*.log


-----

INFO: oracle.sysman.top.oms:Configuring webtier ......

INFO: oracle.sysman.top.oms:Configuring webTier completed successfully.

INFO: oracle.sysman.top.oms:

INFO: oracle.sysman.top.oms:Securing OMS ......

INFO: oracle.sysman.top.oms:EM Key is secured and is backed up at /u01/app/oracle/product/middleware/oms11g/sysman/config/emkey.ora

INFO: oracle.sysman.top.oms:java.lang.Exception: Failed to start OMS

INFO: oracle.sysman.top.oms: at oracle.sysman.omsca.adapter.wls.OMSWLSAdapter.bounceOMS(OMSWLSAdapter.java:2256)

INFO: oracle.sysman.top.oms: at oracle.sysman.omsca.adapter.wls.OMSWLSAdapter.adapterPostDeployAndReposSetup(OMSWLSAdapter.java:2180)

INFO: oracle.sysman.top.oms: at oracle.sysman.omsca.framework.OMSGenericAdapter.postDeployAndReposSetup(OMSGenericAdapter.java:324)

INFO: oracle.sysman.top.oms: at oracle.sysman.omsca.framework.OMSCAFreshInstall.execute(OMSCAFreshInstall.java:192)

INFO: oracle.sysman.top.oms: at oracle.sysman.omsca.framework.OMSConfigAssistantDriver.main(OMSConfigAssistantDriver.java:210)

INFO: oracle.sysman.top.oms:OMSCA-ERR:Bounce OMS failed.

INFO: oracle.sysman.top.oms:OMSCA-ERR:Securing of OMS failed. Check the trace file:/u01/app/oracle/product/middleware/oms11g/cfgtoollogs/omsca/omsca_20100928211206.log

INFO: oracle.sysman.top.oms:

Check the OMS Configuration Assistant logs at: /u01/app/oracle/product/middleware/oms11g/cfgtoollogs/omsca

INFO: oracle.sysman.top.oms:The plug-in OMS Configuration has failed its perform method

INFO: Cfm.save() was called

INFO: Cfm.save(): 8 aggregate instances saved

INFO: done waiting for Action from 21:12:05.654

---------------------------------------

Details at:

EM documentation:

http://download.oracle.com/docs/cd/E11857_01/index.htm

http://download.oracle.com/docs/cd/E11857_01/install.111/e16847.pdf

2.4 Understanding Oracle WebLogic Server Requirement

To install Enterprise Manager Grid Control, as a prerequisite, you must have Oracle

WebLogic Server 10.3.2 (Oracle Fusion Middleware 11g Release 1 Patch Set 1). This

section describes some important aspects related to Oracle WebLogic Server that you

must know before you install Enterprise Manager Grid Control.

In case you installed wls10.3.3, Follow note 1071392.1 to remove it then.

http://www.yenlo.nl/johnpaulvanhelvoort/2010/05/oms-configuration-failed-with-oracle-enterprise-manager-11g/

While installing the new Enterprise Manager grid control, be aware of the requirements ( as stated in the installation guide ) especially the Weblogic server version.
The Weblogic Server version needed is 10.3.2 and not higher, as i found myself struggling with the installation where the “OMS configuration” would fail to completed using Weblogic version 10.3.3.
The error recieved was “Failed to Bounce OMS” ,”Failed to start OMS” among others

/u00/app/Oracle/Middleware/oms11g/cfgtoollogs/cfgfw/CfmLogger_*.log

INFO: oracle.sysman.top.oms:Securing OMS ……
INFO: oracle.sysman.top.oms:java.lang.Exception: Failed to start OMS
INFO: oracle.sysman.top.oms:OMSCA-ERR:Bounce OMS failed.
INFO: oracle.sysman.top.oms:
INFO: oracle.sysman.top.oms:The plug-in OMS Configuration has failed its perform method

After a good cleanup and reinstallation of the correct version of Weblogic,
the installation would finish correctly.


-----

So, uninstall weblogic as:

cd /u01/app/oracle/product/middleware/wlserver_10.3/uninstall

./uninstall.sh

On GUI just do next and then next to uninstall weblogic 10.3.3

--------

Now remove the directory structure as:

oracle : gc.rac.meditate.com : @gc : /u01/app/oracle/product

$ ls

11.2.0.1 gc_inst grid middleware

oracle : gc.rac.meditate.com : @gc : /u01/app/oracle/product

$ rm -rf middleware

oracle : gc.rac.meditate.com : @gc : /u01/app/oracle/product

$

----------------------------------------------------------------

Now clean the database for last install of Grid control, as sysman :

$ $ORACLE_HOME/sysman/admin/emdrep/bin/RepManager gc 1521 gc -action drop -sys_password gurpartap -repos_user SYSMAN -repos_password gurpartap

Getting temporary tablespace from database...

Found temporary tablespace: TEMP

Checking SYS Credentials ... rem error switch

OK.

rem error switch

Dropping the repository..

Checking for Repos User ... Exists.

Repos User exists..

Clearing EM Contexts ... OK.

Dropping EM users ...

Done.

Dropping Repos User ...

Done.

Dropping Roles/Synonymns/Tablespaces ... Done.

Dropped Repository Successfully.

oracle : gc.rac.meditate.com : @gc : /u01/app/oracle/product/11.2.0.1/dbhome_1

$

-----------------------

and clean the data on database as:

SQL> conn / as sysdba

Connected.

SQL> delete from SCHEMA_VERSION_REGISTRY where COMP_NAME='Metadata Services';

1 row deleted.

SQL> commit;

Commit complete.

SQL>

Also execute the following command as sysdba:

drop user sysman_mds cascade;

drop tablespace MGMT_AD4J_TS including contents and datafiles;

drop tablespace MGMT_TABLESPACE including contents and datafiles;

============

While grid install at the following screen:

-------------------------------------------

Reinstall grid had error:




oracle : gc.rac.meditate.com : @gc : /u01/app/oracle/product/11.2.0.1/dbhome_1/sysman/admin/emdrep/sql/core/latest/admin

$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Sep 28 23:50:58 2010

Copyright (c) 1982, 2009, Oracle. All rights reserved.


Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> @admin_recompile_invalid.sql

Enter value for 1:

SQL> @admin_recompile_invalid.sql SYSMAN

old 16: WHERE owner ='&EM_REPOS_USER'

new 16: WHERE owner ='SYSMAN'

old 65: AND ds.table_owner = '&EM_REPOS_USER'

new 65: AND ds.table_owner = 'SYSMAN'

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

SQL>





update the name of the data file for "Configuration Data Tablespace" from "mgmt_ecm_depot1.dbf" to "mgmt_ecm_depot11.dbf" OR drop the datafile as tablespace is already dropped.

===============================

Start install of Weblogic as:

$ /usr/java/1.6/jdk1.6.0_21/bin/java -d64 -jar wls1032_generic.jar

Extracting 0%....................................................................................................100%

Click next:




Enter Middleware Home Directory:

/u01/app/oracle/product/Middleware



Unclick, "I Wish to receive security updates via My Oracle Support"



Click "Yes"



Click "Yes" again




Click "Yes" again.



Make sure its "Typical" and click "Next".



MAke sure the path of JDK is correct and click "Next".


Click "Next"



Click "Next"

See the install will finish smoothly.



Click "Done"

I didn't do the next steps. i.e. didn't create any domain.





Click "Exit".


and now we are done with Weblogic Install.


Next we will do Grid Control Install.


-----------------------------------------------------------

To do a Fresh install of 11gR1 Look at posts 12,13 and 14.

Part 12 of series, Install JDK for Enterprise Manager Grid COntrol 11gR1
http://gurpartapblog.blogspot.com/2010/09/install-oracle-install-grid-control.html

Part 13 of series, Install Weblogic wls10.3.2 for Enterprise Manager Grid Control 11gR1
http://gurpartapblog.blogspot.com/2010/09/install-oracle-install-grid-control_29.html

Part 14 of series, Install Enterprise Manager Grid Control 11gR1
http://gurpartapblog.blogspot.com/2010/09/install-oracle-install-grid-control_2064.html



To upgrade existing Enterprise Manager Grid control from 10.2.0.4/10.2.0.5 to 11.1.0.1


Part 30 of series - Upgrade Enterprise Manager Grid Control from 10.2.0.5 to 11gr1 (11.1.0.1) on Solairs/Unix, Upgrade Additional Grid Control , OMS
http://gurpartapblog.blogspot.com/2011/02/part-30-of-series-upgrade-enterprise.html

Part 29 of series - Upgrade Enterprise Manager Grid Control from 10.2.0.5 to 11gr1 (11.1.0.1) on Solairs/Unix, Install and upgrade Grid Control, OMS
http://gurpartapblog.blogspot.com/2011/02/part-29-of-series-upgrade-enterprise.html

Part 28 of series - Upgrade Enterprise Manager Grid Control from 10.2.0.5 to 11gr1 (11.1.0.1) on Solairs/Unix, Install JDK and Weblogic
http://gurpartapblog.blogspot.com/2011/02/part-28-of-series-upgrade-enterprise.html


-----------------------------------------------------------

Only those can sing of His Greatness, who have the power to do so. (No one has
this ability to tell about His Greatness. No one has the knowledge of His
Qualities, to tell about Him!)

No comments:

Post a Comment