Home » RDBMS Server » Enterprise Manager » Struggling with 11g R2 Enterprise Manager on Windows XP sp3(3 Merged) (OEM, 11g R2, Windows XP sp3)
Struggling with 11g R2 Enterprise Manager on Windows XP sp3(3 Merged) [message #512731] Tue, 21 June 2011 19:36 Go to next message
LiF0
Messages: 3
Registered: June 2011
Junior Member
I have tried recreating the repository numerous different ways, setting the hostname to "localhost" or actual machine name (QMVM-JAX-DVDB). Also disabled DHCP (based on recommendations on a post I found). I figured out that I need to kill the java.exe process that attaches to the port so I can try restarting it...but beyond that, I am having no luck with it actually running.

Here's the result of my last attempt (using actual machine name):

C:\oracle\product\11.2.0\dbhome_1\BIN>set HOST=QMVM-JAX-DVDB

C:\oracle\product\11.2.0\dbhome_1\BIN>set HOSTNAME=QMVM-JAX-DVDB

C:\oracle\product\11.2.0\dbhome_1\BIN>set ORACLE_HOSTNAME=QMVM-JAX-DVDB

C:\oracle\product\11.2.0\dbhome_1\BIN>emca -config dbcontrol db -repos recreate
-SID orcl -SERVICE_NAME orcl -PORT 1521 -DB_UNIQUE_NAME orcl -ORACLE_HOSTNAME QMVM-JAX-DVDB -REP_DB_RUNNING_HOST QMVM-JAX-DVDB -SYS_PWD manager12 -SYSMAN_PWD manager12 -DBSNMP_PWD manager12

STARTED EMCA at Jun 21, 2011 7:30:41 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Listener ORACLE_HOME [ C:\oracle\product\11.2.0\dbhome_1 ]:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ C:\oracle\product\11.2.0\dbhome_1

Local hostname ................ QMVM-JAX-DVDB
Listener ORACLE_HOME ................ C:\oracle\product\11.2.0\dbhome_1
Listener port number ................ 1521
Database SID ................ orcl
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Jun 21, 2011 7:30:48 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at C:\oracle\cfgtoollogs\emca\orcl\emca_201
1_06_21_19_30_41.log.
Jun 21, 2011 7:30:49 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Jun 21, 2011 7:33:19 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Jun 21, 2011 7:33:20 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Jun 21, 2011 7:38:27 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Jun 21, 2011 7:38:34 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepos
itory
INFO: Uploading configuration data to EM repository (this may take a while) ...
Jun 21, 2011 7:39:35 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Jun 21, 2011 7:39:40 PM oracle.sysman.emcp.util.DBControlUtil configureSoftwareL
ib
INFO: Software library configured successfully.
Jun 21, 2011 7:39:40 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibra
ry
INFO: Deploying Provisioning archives ...
Jun 21, 2011 7:40:33 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibra
ry
INFO: Provisioning archives deployed successfully.
Jun 21, 2011 7:40:33 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Jun 21, 2011 7:40:41 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Jun 21, 2011 7:40:41 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Jun 21, 2011 7:41:17 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is htps://QMVM-JAX-DVDB:5501/em <<<<
<<<<<<<
Jun 21, 2011 7:41:22 PM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************  WARNING  ************************

Management Repository has been placed in secure mode wherein Enterprise Manager
data will be encrypted.  The encryption key has been placed in the file: C:/orac
le/product/11.2.0/dbhome_1/QMVM-JAX-DVDB_orcl/sysman/config/emkey.ora.   Please
ensure this file is backed up as the encrypted data will become unusable if this
 file is lost.

***********************************************************
Jun 21, 2011 7:41:22 PM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING: Error starting Database Control.Please execute the following command(s)
.

 1) Set the environment variable ORACLE_UNQNAME to Database unique name
 2) C:\oracle\product\11.2.0\dbhome_1\bin\emctl.bat start dbconsole


Error starting Database Control.Please execute the following command(s).

 1) Set the environment variable ORACLE_UNQNAME to Database unique name
 2) C:\oracle\product\11.2.0\dbhome_1\bin\emctl.bat start dbconsole

C:\oracle\product\11.2.0\dbhome_1\BIN>



Great. It didn't work...again. I'll go look at the log:

-------------- [OracleDBConsoleorcl] ------------
EMDROOT=C:\oracle\product\11.2.0\dbhome_1
ORACLE_HOME=C:\oracle\product\11.2.0\dbhome_1
EMSTATE=C:\oracle\product\11.2.0\dbhome_1\QMVM-JAX-DVDB_orcl
CONSOLE_CFG=dbconsole
TRACE_LEVEL=16
TIMEOUT=30
06/21/11 19:40:41 Job Process API is available
06/21/11 19:40:41 Start pending...
06/21/11 19:40:41 Verifying dbconsole is not started already. Command line "C:\oracle\product\11.2.0\dbhome_1\bin\emctl.bat" istatus dbconsole
06/21/11 19:40:41 Service Job object queried for basic limit information
06/21/11 19:40:41 Service Job object set with JOB_OBJECT_LIMIT_BREAKAWAY_OK limit
06/21/11 19:40:46 dbconsole launch commandline is "C:\oracle\product\11.2.0\dbhome_1\bin\emctl.bat" istart dbconsole
06/21/11 19:40:46 Tracking process launch...
06/21/11 19:41:16 dbconsole exited with retCode 0.
06/21/11 19:41:16 Check C:\oracle\product\11.2.0\dbhome_1\sysman\log\OracleDBConsoleorcl.nohup for details


The log file it references doesn't exist: OracleDBConsoleorcl.nohup

But something named emdb.nohup does and it might even have something useful:

----- Tue Jun 21 19:40:46 2011::omsRecvDir is set? =  1 -----
----- Tue Jun 21 19:40:46 2011::osname is MSWin32 -----
'isainfo' is not recognized as an internal or external command,
operable program or batch file.
----- Tue Jun 21 19:40:46 2011::heap size used is -1 -----
----- Tue Jun 21 19:40:46 2011::perm size used is -1 -----
----- Tue Jun 21 19:40:46 2011::joptions used are -server -Xmx192M -XX:MaxPermSize=200M -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40  -----
----- Tue Jun 21 19:40:47 2011::Console Launched with PID 3088 at time Tue Jun 21 19:40:47 2011 -----

C:\oracle\product\11.2.0\dbhome_1\QMVM-JAX-DVDB_orcl\sysman\emd>C:\oracle\product\11.2.0\dbhome_1\jdk/bin/java -server -Xmx192M -XX:MaxPermSize=200M -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40    -DORACLE_HOME=C:\oracle\product\11.2.0\dbhome_1 -Doracle.home=C:\oracle\product\11.2.0\dbhome_1/oc4j -Doracle.oc4j.localhome=C:\oracle\product\11.2.0\dbhome_1\QMVM-JAX-DVDB_orcl/sysman -DEMSTATE=C:\oracle\product\11.2.0\dbhome_1\QMVM-JAX-DVDB_orcl -Doracle.j2ee.dont.use.memory.archive=true -Djava.protocol.handler.pkgs=HTTPClient -Doracle.security.jazn.config=C:\oracle\product\11.2.0\dbhome_1/oc4j/j2ee/OC4J_DBConsole_QMVM-JAX-DVDB_orcl/config/jazn.xml -Djava.security.policy=C:\oracle\product\11.2.0\dbhome_1/oc4j/j2ee/OC4J_DBConsole_QMVM-JAX-DVDB_orcl/config/java2.policy -Djavax.net.ssl.KeyStore=C:\oracle\product\11.2.0\dbhome_1/sysman/config/OCMTrustedCerts.txt-Djava.security.properties=C:\oracle\product\11.2.0\dbhome_1/oc4j/j2ee/home/config/jazn.security.props -DEMDROOT=C:\oracle\product\11.2.0\dbhome_1\QMVM-JAX-DVDB_orcl -Dsysman.md5password=true -Drepapi.oracle.home=C:\oracle\product\11.2.0\dbhome_1 -Ddisable.checkForUpdate=true -Doracle.sysman.ccr.ocmSDK.websvc.keystore=C:\oracle\product\11.2.0\dbhome_1/jlib/emocmclnt.ks -Dice.pilots.html4.ignoreNonGenericFonts=true -Djava.awt.headless=true -jar C:\oracle\product\11.2.0\dbhome_1/oc4j/j2ee/home/oc4j.jar -config C:\oracle\product\11.2.0\dbhome_1/oc4j/j2ee/OC4J_DBConsole_QMVM-JAX-DVDB_orcl/config/server.xml  
----- Tue Jun 21 19:40:47 2011::Property 'agentTZRegion' is  missing from  C:\oracle\product\11.2.0\dbhome_1\QMVM-JAX-DVDB_orcl/sysman/config/emd.properties. This is normal when the agent is started for the very first time.Updating it... -----
----- Tue Jun 21 19:40:47 2011::C:\oracle\product\11.2.0\dbhome_1\QMVM-JAX-DVDB_orcl/sysman/config/emd.properties copied to C:\oracle\product\11.2.0\dbhome_1\QMVM-JAX-DVDB_orcl/sysman/config/emd.properties.2011-06-21-19-40-47 while updating the property  'agentTZRegion' -----
----- Tue Jun 21 19:40:47 2011::An agentTZregion of 'America/New_York' is installed in C:\oracle\product\11.2.0\dbhome_1\QMVM-JAX-DVDB_orcl/sysman/config/emd.properties. -----
----- Tue Jun 21 19:40:48 2011::Agent Launched with PID 3780 at time Tue Jun 21 19:40:48 2011 -----
(pid=3780): starting emagent version 10.2.0.4.2
(pid=3780): emagent now exiting abnormally - initialization failure. Consult '.trc' and '.log' files.
----- Tue Jun 21 19:40:51 2011::Pid 3780 not found. reaped=3780, processStatus=14080 -----
Jun 21, 2011 7:40:52 PM com.evermind.server.XMLApplicationServerConfig randomizeJtaAdminPassword
INFO: Updating JtaAdmin account
----- Tue Jun 21 19:40:52 2011::Checking status of EMAgent : 3780 -----
----- Tue Jun 21 19:40:52 2011::EMAgent exited at Tue Jun 21 19:40:52 2011 with return value 55. -----
----- Tue Jun 21 19:40:52 2011::EMAgent has exited due to initialization failure. -----
----- Tue Jun 21 19:40:52 2011::Stopping other components. -----
----- Tue Jun 21 19:40:52 2011::EMWD Stopping DBConsole. -----
WARNING: Code-source C:\oracle\product\11.2.0\dbhome_1\LIB\xml.jar (from <classpath> in C:\oracle\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em) has the same filename but is not identical to /C:/oracle/product/11.2.0/dbhome_1/oc4j/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\oracle\product\11.2.0\dbhome_1\oc4j\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader em.web.em:0.0.0.
WARNING: Code-source C:\oracle\product\11.2.0\dbhome_1\LIB\xmlmesg.jar (from <classpath> in C:\oracle\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em) has the same filename but is not identical to /C:/oracle/product/11.2.0/dbhome_1/oc4j/lib/xmlmesg.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\oracle\product\11.2.0\dbhome_1\oc4j\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader em.web.em:0.0.0.
WARNING: Code-source C:\oracle\product\11.2.0\dbhome_1\LIB\xmlparserv2.jar (from <classpath> in C:\oracle\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em) has the same filename but is not identical to /C:/oracle/product/11.2.0/dbhome_1/oc4j/lib/xmlparserv2.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\oracle\product\11.2.0\dbhome_1\oc4j\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader em.web.em:0.0.0.
WARNING: Code-source C:\oracle\product\11.2.0\dbhome_1\LIB\oraclexsql.jar (from <classpath> in C:\oracle\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em) has the same filename but is not identical to /C:/oracle/product/11.2.0/dbhome_1/oc4j/lib/oraclexsql.jar (from <library> in /C:/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_QMVM-JAX-DVDB_orcl/config/application.xml). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader em.web.em:0.0.0.
WARNING: Code-source C:\oracle\product\11.2.0\dbhome_1\sysman\jlib\j2ee\jsch.jar (from <classpath> in C:\oracle\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em) has the same filename but is not identical to /C:/oracle/product/11.2.0/dbhome_1/oui/jlib/jsch.jar (from <classpath> in C:\oracle\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader em.web.em:0.0.0.
WARNING: Code-source C:\oracle\product\11.2.0\dbhome_1\sysman\jlib\j2ee\ssh.jar (from <classpath> in C:\oracle\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em) has the same filename but is not identical to /C:/oracle/product/11.2.0/dbhome_1/oui/jlib/ssh.jar (from <classpath> in C:\oracle\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader em.web.em:0.0.0.
WARNING: Code-source C:\oracle\product\11.2.0\dbhome_1\sysman\jlib\j2ee\remoteinterfaces.jar (from <classpath> in C:\oracle\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em) has the same filename but is not identical to /C:/oracle/product/11.2.0/dbhome_1/oui/jlib/remoteinterfaces.jar (from <classpath> in C:\oracle\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader em.web.em:0.0.0.
--- DBConsole internal stop. No OC4J admin passwd hence hard stop. ---
----- Tue Jun 21 19:40:57 2011::Commiting Process death. -----
----- Tue Jun 21 19:40:57 2011::Exiting watchdog loop
 -----
11/06/21 19:40:58 securePort = 5501
11/06/21 19:40:58 isOMSSecure = 1 isOMSSecureLocked = 1
11/06/21 19:41:05 ExtendClusterIntegration: init: start
11/06/21 19:41:05 ExtendClusterIntegration: init: end
11/06/21 19:41:05 ProvCommonIntegration.init, registering the Page Handlers and Page Segment Handlers
11/06/21 19:41:06 PAF Integration init BEGIN
11/06/21 19:41:06 PAF Integration init END
11/06/21 19:41:11 Oracle Containers for J2EE 10g (10.1.3.4.0)  initialized


I saw the line that said:

(pid=3780): emagent now exiting abnormally - initialization failure. Consult '.trc' and '.log' files.


So I go looking for .log and .trc files...

Found emoms.trc (and emoms.log but they're both exactly identical) and don't seem very useful to me...

2011-06-21 19:40:59,817 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.asprov.ui.intg.ASProvisioningIntegration
2011-06-21 19:40:59,817 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.paf.sample.ui.intg.PAFDemoIntegration
2011-06-21 19:40:59,817 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.emCLI.CLIIntg
2011-06-21 19:40:59,827 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.emCLI.CLIDownloadIntg
2011-06-21 19:41:01,038 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.eml.target.slb.common.SLBIntegration
2011-06-21 19:41:06,016 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.sidb.ui.intg.SIDBProvisioningIntegration
2011-06-21 19:41:06,416 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.racprov.ui.intg.RACProvIntegration
2011-06-21 19:41:06,426 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.ec.ui.intg.ExtendClusterIntegration
2011-06-21 19:41:06,426 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.dn.ui.intg.DltNodeIntegration
2011-06-21 19:41:06,426 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.common.ui.intg.ProvCommonIntegration
2011-06-21 19:41:06,426 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.bpelprov.ui.intg.BPELProvisioningIntegration


I also found something called emagent.log:

2011-06-21 19:40:48,500 Thread-1840 Starting Agent 10.2.0.4.2 from C:\oracle\product\11.2.0\dbhome_1 (00701)
2011-06-21 19:40:49,642 Thread-1840 <Agent Startup> : Initialization of FETCHLET MANAGER failure (00721)


And another one called emagent.trc:

2011-06-21 19:40:49,592 Thread-1840 ERROR pingManager: nmepm_pingReposURL: Cannot connect to htps://QMVM-JAX-DVDB:5501/em/upload/: retStatus=-1
2011-06-21 19:40:49,592 Thread-1840 WARN  main: clear collection state due to OMS_version difference
2011-06-21 19:40:49,612 Thread-1840 WARN  command: Job Subsystem Timeout set at 600 seconds
2011-06-21 19:40:49,642 Thread-1840 ERROR fetchlets: Error when initializing C Logging Package for ECID generation. 
2011-06-21 19:40:49,642 Thread-1840 ERROR main: nmefmgr_initialize failed to initialize Fetchlet Manager


The first line seemed interesting...so I tried going to the URL in IE.

It opens just fine (after getting a certificate warning). I get a page that says:

Http XML File receiver
Http Receiver Servlet active!

I'm completely stumped. I don't know enough to get further than this.

Anyone know where to go from here? I'm pretty frustrated...

Thanks!

(PS, I changed the links to htps: because of link posting restriction)
Re: Struggling with 11g R2 Enterprise Manager on Windows XP sp3(3 Merged) [message #512871 is a reply to message #512731] Wed, 22 June 2011 10:56 Go to previous messageGo to next message
LiF0
Messages: 3
Registered: June 2011
Junior Member
Unbelievable...

I spent almost a week doofing around with this thing and then this morning I stumbled across a post mentioning an issue with OEM if you don't have a DNS and Gateway configured on the network adapter.

This "box" is a private VirtualBox. It has no gateway or DNS. It has no access outside the internal VirtualBox subnet. I use it for development only.

So I put some bogus IPs (in the same subnet) on the adapter configuration for DNS and Gateway addresses.

Then I re-executed emca exactly as above...

And it seemed to work...

Rebooted the box as a sanity check...

...and it STILL WORKED! Yay! Smile
Re: Struggling with 11g R2 Enterprise Manager on Windows XP sp3(3 Merged) [message #512884 is a reply to message #512871] Wed, 22 June 2011 12:54 Go to previous messageGo to next message
John Watson
Messages: 4081
Registered: January 2010
Location: Global Village
Senior Member
Hi - I didn't see your original post, but had I done so, I would have suggested

set ORACLE_UNQNAME=orcl

which is what your error message advises. You might want to do this anyway, to be sure that the dbconsole daemon will start correctly from now on.

But what the heck, you have it working now.


Re: Struggling with 11g R2 Enterprise Manager on Windows XP sp3(3 Merged) [message #512891 is a reply to message #512884] Wed, 22 June 2011 13:34 Go to previous messageGo to next message
LiF0
Messages: 3
Registered: June 2011
Junior Member
I forgot to mention that I had set that in the system environment vars -- that's why you don't see it above...

Setting that did nothing to resolve the issue, though.

It seems that there is a bug in the PingManager (or the underlying http code) that causes an issue attempting to connect to REPOSITORY_URL unless the network adapter has a value set for the DNS and Gateway addresses.

It doesn't seem to matter what the value is, but something had to be set or it would log the error indicating that it couldn't connect.
Re: Struggling with 11g R2 Enterprise Manager on Windows XP sp3(3 Merged) [message #512909 is a reply to message #512891] Wed, 22 June 2011 15:02 Go to previous message
John Watson
Messages: 4081
Registered: January 2010
Location: Global Village
Senior Member
Oh, right. Nice one. Thanks for the heads-up.
Previous Topic: can not open enterprise manager
Next Topic: 500 Internal Server Error
Goto Forum:
  


Current Time: Fri Apr 18 08:34:50 CDT 2014

Total time taken to generate the page: 0.10259 seconds