打开emca.bat,
@echo off
setlocal
set OH=d:\oracle\product\10.2.0\db_4
set JRE_JAVA=%OH%\jdk\jre\bin\java
set EMCA_JAR=%OH%\jlib\emca.jar
set LIB_DIR=%OH%\jlib
set CLASSPATH=%EMCA_JAR%;
set CLASSPATH=%CLASSPATH%%LIB_DIR%\srvm.jar;
set CLASSPATH=%CLASSPATH%%LIB_DIR%\srvmasm.jar;
set CLASSPATH=%CLASSPATH%%LIB_DIR%\emConfigInstall.jar;
set CLASSPATH=%CLASSPATH%%LIB_DIR%\ldapjclnt10.jar;
set CLASSPATH=%CLASSPATH%%LIB_DIR%\ldap.jar;
set CLASSPATH=%CLASSPATH%%LIB_DIR%\share.jar;
set CLASSPATH=%CLASSPATH%%LIB_DIR%\srvmhas.jar;
set CLASSPATH=%CLASSPATH%%LIB_DIR%\netcfg.jar;
set CLASSPATH=%CLASSPATH%%OH%\lib\xmlparserv2.jar;
set CLASSPATH=%CLASSPATH%%OH%\assistants\jlib\assistantsCommon.jar;
set CLASSPATH=%CLASSPATH%%OH%\sysman\jlib\emCORE.jar;
set CLASSPATH=%CLASSPATH%%OH%\oui\jlib\OraInstaller.jar;
set CLASSPATH=%CLASSPATH%%OH%\oui\jlib\OraPrereq.jar;
set CLASSPATH=%CLASSPATH%%OH%\inventory\prereqs\oui\OraPrereqChecks.jar;
set CLASSPATH=%CLASSPATH%%OH%\oui\jlib\OraPrereqChecks.jar;
%JRE_JAVA% -DDISPLAY=%DISPLAY% -DORACLE_HOME=%OH% -DTNS_ADMIN=%TNS_ADMIN% oracle.sysman.emcp.EMConfigAssistant %*
原来 oracle 10g 用了自己的虚拟机,担心会出现版本冲突。在网上找了一个jdk1.5,安装后问题依旧;
继续寻找答案,有网友建议把内存分配大些,分配了256M,问题依旧;
重启机器,并断开网络,关闭杀毒软件、防火墙,并删除失败记录,
run -cmd-> emca -deconfig dbcontrol db -repos drop,一路输入密码后,显示成功删除。
重新配置emca -config dbcontrol db -repos create,EM配置成功了!