ITPub博客

首页 > 数据库 > Oracle > 10g 的EM配置出错解决方法 Ramond

10g 的EM配置出错解决方法 Ramond

Oracle 作者:feichunjiang 时间:2012-09-30 20:59:08 0 删除 编辑
进行10g 的EM配置时,遇到SEVERE:Error creating the repository

[oracle@localhost]$ emca -repos create
STARTED EMCA at Sep 29, 2012 8:37:24 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: ora10g
Listener port number: 1521
Password for SYS user:  
Password for SYSMAN user:  

Do you wish to continue? [yes(Y)/no(N)]: y
Sep 29, 2012 8:38:13 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /home/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/emca_2012-09-29_08-37-24-PM.log.
Sep 29, 2012 8:38:13 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Sep 29, 2012 8:38:14 PM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error creating the repository
Sep 29, 2012 8:38:14 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /home/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/emca_repos_create_.log for more details.
Sep 29, 2012 8:38:14 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Error creating the repository
Refer to the log file at /home/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/emca_2012-09-29_08-37-24-PM.log for more details.
Could not complete the configuration. Refer to the log file at /home/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/emca_2012-09-29_08-37-24-PM.log for more details.--------------查看错误信息

[oracle@localhost]$ cat /home/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/emca_2012-09-29_08-38-36-PM.log --查看错误信息
Sep 29, 2012 8:38:59 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Sep 29, 2012 8:38:59 PM oracle.sysman.emcp.EMReposConfig createRepository
CONFIG: ORA-20001: SYSMAN already exists..---------错误地方
ORA-06512: at line 17

SQL> drop user sysman cascade; --删除用户及相关权限
SQL> drop role MGMT_USER; 
SQL> drop user MGMT_VIEW cascade;
SQL> drop public synonym MGMT_TARGET_BLACKOUTS;
SQL> drop public synonym SETEMVIEWUSERCONTEXT; ---------------解决方法

[oracle@localhost]$ emca -repos create

STARTED EMCA at Sep 29, 2012 8:53:10 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: ora10g
Listener port number: 1521
Password for SYS user:  
Password for SYSMAN user:  

Do you wish to continue? [yes(Y)/no(N)]: y
Sep 29, 2012 8:53:29 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /home/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/emca_2012-09-29_08-53-10-PM.log.
Sep 29, 2012 8:53:29 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Sep 29, 2012 8:56:50 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Enterprise Manager configuration completed successfully
FINISHED EMCA at Sep 29, 2012 8:56:51 PM

其他可能错误:
[oracle@myoracle admin]$ vi /etc/hosts --原先的hosts IP设置错误。# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.10.180 myoracle [oracle@myoracle ~]$ emca -config dbcontrol dbSTARTED EMCA at Dec 17, 2009 12:42:48 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.Enter the following information:
Database SID: clonedb
Listener port number: 1521
Password for SYS user: 
Password for DBSNMP user: 
Password for SYSMAN user: 
Email address for notifications (optional): 
Outgoing Mail (SMTP) server for notifications (optional): 
-----------------------------------------------------------------You have specified the following settingsDatabase ORACLE_HOME ................ /u01/oracleDatabase hostname ................ myoracle
Listener port number ................ 1521
Database SID ................ clonedb
Email address for notifications ............... 
Outgoing Mail (SMTP) server for notifications ............... -----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Dec 17, 2009 12:43:02 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/oracle/cfgtoollogs/emca/clonedb/emca_2009-12-17_12-42-48-PM.log.
Dec 17, 2009 12:43:26 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Dec 17, 2009 12:45:25 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Dec 17, 2009 12:45:26 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://myoracle:1158/em <<<<<<<<<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Dec 17, 2009 12:45:26 PM[oracle@myoracle ~]$ emctl start dbconsole;
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://myoracle:1158/em/console/aboutApplication
- An instance of Oracle Enterprise Manager 10g Database Control is already running. 
[oracle@myoracle ~]$ emctl status
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Invalid argumentsUnknown command option status
Usage:: 
Oracle Enterprise Manager 10g Database Control commands:
emctl start| stop| status| setpasswd dbconsole
emctl secure emctl set ssl test|off|on em
emctl set ldap
emctl blackout options can be listed by typing "emctl blackout"
emctl config options can be listed by typing "emctl config"
emctl secure options can be listed by typing "emctl secure"
emctl ilint options can be listed by typing "emctl ilint"
emctl deploy options can be listed by typing "emctl deploy"
看到的另一个文章的解决办法:oldboy 发表于:2007.12.22 20:12 主要描述了在安装EM时,始终报下面的错误的解决办法:Enterprise manager configuration failed due to the following error - 
Failed to allocate port(s) int the specified range for the following process(es):
JMS [5540-5559], RMI [5520-5539], Database Control [5500-5519], EM agent [1830-1849] 今天在HPUX 11.31上安装ORACLE 10G 10.2.0.3时,数据库都配置好了,但EM报错,通过安装日志文件查看,发现以下错误:SEVERE: Failed to allocate port(s) in the specified range(s) for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
Refer to the log file at /U01/oracle/product/10.2.0/db_1/cfgtoollogs/emca/si2000/emca_2007-12-22_04-36-47-PM.log for more details.
Dec 22, 2007 4:37:17 PM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace: 
oracle.sysman.emcp.exception.EMConfigException: Failed to allocate port(s) in the specified range(s) for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
at oracle.sysman.emcp.EMDBPreConfig.checkPorts(EMDBPreConfig.java:2255)
at oracle.sysman.emcp.EMDBPreConfig.performConfiguration(EMDBPreConfig.java:678)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:241)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:168)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:485)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1141)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:469)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:418)经过网上查询,知道是网络端口重复了,使用以下方法解决:emca -config dbcontrol db -DBCONTROL_HTTP_PORT 5508 -AGENT_PORT 3940 -RMI_PORT 5524 -JMS_PORT 5545 再停用一次EM,再启动EM,就好了.emctl stop dbconsoleemctl start dbconsole
<!-- 正文结束 -->

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21345774/viewspace-1115418/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2009-04-09