博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
10.2.0.1 db console启动失败问题一例
阅读量:7187 次
发布时间:2019-06-29

本文共 7493 字,大约阅读时间需要 24 分钟。

帮网友诊断10.2.0.1数据库安装后配置EM的问题一例,主要是在EM启动过程中遇到了错误,日志如下:
2009-7-7 20:11:39 oracle.sysman.emcp.EMConfig perform严重: 启动 Database Control 时出错有关详细资料, 请参阅 oracle\product\10.2.0\db_1\cfgtoollogs\dbca\orcl\emConfig.log 中的日志文件。2009-7-7 20:11:39 oracle.sysman.emcp.EMConfig perform配置: Stack Trace:oracle.sysman.emcp.exception.EMConfigException: 启动 Database Control 时出错	at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:569)	at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:181)	at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:150)	at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:155)	at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:430)	at java.lang.Thread.run(Thread.java:534)
出现错误的java stack call是EMDBPostConfig说明em db repository 已经完成配置在尝试启动EM,但此时出现了问题。 实际造成该问题的有多种可能性,这里列举最常见的几种: 1. 杀毒软件或者防火墙造成的,这里建议在安装windows期间彻底关闭杀毒类软件和Windows自带的防火墙 2. EM使用的端口已经被其他软件所占用,建议使用netstat命令诊断,或另择网络端口 3. Windows主机名以"U"字母开头 针对第三种可能性,可以在MOS上找到Note <Problem: Startup: Db Control 10.2.0.1 Fails To Start when the hostname begins with the letter "u">:
Problem: Startup: Db Control 10.2.0.1 Fails To Start when the hostname begins with the letter "u"Applies to:Enterprise Manager for RDBMS - Version: 10.2.0.1 and later   [Release: 10.2 and later ]SymptomsThe dbconsole 10.2.0.1 is created with emca.The repository creation completes successfully and thedbconsole is created and configured without any error.The last phase of emca is to start the dbconsole.The standalone agent is started successfully but the dbconsole fails to start.The file $ORACLE_HOME/cfgtoollogs/emca/sid/emca*.log shows:===================================================05/11/2005 23:07:49 oracle.sysman.emcp.util.PlatformInterface serviceCommandCONFIG: Waiting for service 'OracleDBConsoleAMITAL' to fully start05/11/2005 23:07:59 oracle.sysman.emcp.EMConfig performSEVERE: Error starting Database ControlRefer to the log file atd:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\amital\emca_2005-11-05_10-55-42-PM.log for moredetails.05/11/2005 23:07:59 oracle.sysman.emcp.EMConfig performCONFIG: Stack Trace:oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control  at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:569)  at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:181)CauseThis issue can be reproduced on all windows platforms which name begins with the letter u.This issue has been logged in the following bug:Bug:4714774 DBCONSOLE DOES NOT WORK HAVING A HOSTNAME STARTING WITH "U"This bug will be fixed in the patchset 10.2.0.2SolutionDownload and apply the RDBMS patchset 10.2.0.2 once/if available orTo enable the dbconsole to start successfully, follow the steps listed below:1. Save the file $ORACLE_HOME\host_SID\sysman\config\emd.properties to emd.properties.orig2. Update the file $ORACLE_HOME\host_SID\sysman\config\emd.properties, replacing \ with / in the   following line:   For example change:   omsRecvDir=d:\oracle\product\10.2.0\db_1\ukp001_db0\sysman\recv   to   omsRecvDir=d:/oracle/product/10.2.0/db_1/ukp001_db0l/sysman/recv3. Stop and restart the DB ControlHdr: 4714774 10.2.0.1 EMCP 10.2.0.1 PRODID-1370 PORTID-912Abstract: DBCONSOLE DOES NOT WORK HAVING A HOSTNAME STARTING WITH "U"Problem Description-------------------this seems to be releated to bug 3610052.Having a hostname like u1234, install rdbms10.2.start dbconsole will take 4-5 min. Even if the service is shown as started,dbconsole java processes stops and restarts.Environment Information-----------------------Test Case Step-by-Step Instructions-----------------------------------1. rename the hostanme to uXYZ....2. install 10.2 rdbms into its own oraclehome3. strt listener, create a database using dbca.4. access the dbconsole page shows: "page cannot be displayed"Check the dbconsole java process in taksmanager , you will easily see, thatit is coninously restarting. dbconsole service is shown as "started".Test Case Location------------------not needed easy to reproduceDiagnostic Analysis-------------------run the java command from file emd.nohup file, this will show something like:java...Exception...Malformed \uxxxx encoding.and a java stack trace.I assume that this problem will always happen, having a "\u" in the path forthe dbconsolePerformance-----------NLS Information---------------Patches-------Log Files Location------------------Reproducibility---------------everytime, only on windows platforms:w2k w2003, windowsXPURL---not neededDid you test with the latest version?-------------------------------------yesAvailable Workarounds---------------------Change the hostname from uXYZ to UXYZ,doset ORACLE_SID=emca -config dbcontrol db -reposrecreateRelated Bugs------------3610052Hdr: 6313490 10.2.0.1.0 CONSOLE 10.2.0.1.0 PRODID-1370 PORTID-215 4714774Abstract: 10.2.0.1DBCONSOLE IN A DB CREATED FROM IAS INSTALL FAILS TO STARTProblem Description-------------------The dbconsole 10.2.0.1.0 creating is failing while starting the dbconsoledbconsole in a db created from iAS install.as per the logs:-SEVERE: Error starting Database Control    Refer to the log file atD:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\mmds\emca_2007-06-19_09-47-70-AM.log for more details.    Jun 19, 2007 9:58:17 AM oracle.sysman.emcp.EMConfig perform    CONFIG: Stack Trace:    oracle.sysman.emcp.exception.EMConfigException: Error starting DatabaseControl atoracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:569) at oracle.sysman.emcp.EMDBPostConfig.invokeEnvironment Information-----------------------dbconsole in a db created from iAS install.db console 10.2.0.1.0 on Microsoft Windows Server 2003The 10g application server version  is 10.1.2.0.2. to include January 2007database and application server CPUs.Applied the  database CPU patch and after that reconfigured the Dbconsole .Now it doesn't get configured .Db console generating core dumpTest Case Step-by-Step Instructions-----------------------------------Test Case Location------------------Diagnostic Analysis-------------------Stopped the application server service and then started the dbcosnole .Butstill getting the errorD:\oracle\product\10.2.0\db_1\BIN>emctl status dbconsole    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0    Oracle Enterprise Manager 10g is not running.    ------------------------------------------------------------------    Logs are generated in directoryAsked him to move the file from Oracle_Home>/_/emctl.pid fileto another location . Now the dbconsole is started:->emctl start dbconsoleOracle Enterprise Manager 10g Database Control Release 10.2.0.1.0Starting Oracle Enterprise Manager 10g Database Control ...TheOracleDBConsoleMMDS service is starting...................The OracleDBConsoleMMDS service wasstarted successfully.D:\oracle\product\10.2.0\db_1\BIN>emctl uploadOracle Enterprise Manager 10g Database Control Release 10.2.0.1.0EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..Asked him to Edit the fileORACLE_HOME>\oc4j\j2ee\home\applications\dms\WEB-INF\web.xmlStill the dbconsole is not getting started .

可能是因为Windows上主机名以"U"字母开头后导致相关路径发生了转义。 可以通过在cmd中输入hostname来确认Windows上的主机名。 给出了2种解决方案: 1.升级到10.2.0.2以上版本,目前推荐的是10.2.0.5 Patch set; 版本10.2.0.1到10.2.0.3上的bug太多了.. 2.修改$ORACLE_HOME\host_SID\sysman\config\emd.properties中的内容,将omsRecvDir变更改成使用斜杠而非反斜杠的路径形式,并重启EM.

本文转自maclean_007 51CTO博客,原文链接:http://blog.51cto.com/maclean/1276849

转载地址:http://kqykm.baihongyu.com/

你可能感兴趣的文章
Java异常
查看>>
Java开发中的23种设计模式详解
查看>>
Spring Aop实例
查看>>
Vlan学习笔记终极整理
查看>>
设置文本框输入不同值
查看>>
数据结构之顺序表
查看>>
Linux高可用集群方案之heartbeat基础原理及逻辑架构
查看>>
Oracle同义词创建及作用,数据库链接Database Link
查看>>
Scrapy框架下第一个爬虫
查看>>
自动化运维工具puppet(五)
查看>>
linux网络命令(八)之top、htop
查看>>
【Windows和Linux下定时删除某天前的文件的脚本】
查看>>
长视频的危机:直播和短视频的爆发式增长
查看>>
医疗信息化 医学 医院管理 资料下载
查看>>
centos6.5搭建docker私有库
查看>>
《Kotlin 极简教程 》第4章 基本数据类型与类型系统
查看>>
2012春晚十大流行语
查看>>
XP下关于安装.net 3.5/4.0 报错:安装未完成
查看>>
Collections类中常用方法总结
查看>>
我的友情链接
查看>>