oem 无法启动,报not found错误



oracle11gr2安装完,建完库之后,启动em 报OC4J_DBConsole_source_ora11g not found的错误,em起不来。

[oracle@source ~]$ emctl start dbconsole
OC4J Configuration issue. /oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_source_ora11g not found. 

由于是新环境,重新创建资料档案库,并重新配置数据库control

 
 
  1. [oracle@source admin]$ emca -repos drop   --删除当前的资料库 
  2.  
  3. STARTED EMCA at Dec 8, 2012 1:13:13 PM 
  4. EM Configuration Assistant, Version 11.2.0.0.2 Production 
  5. Copyright (c) 2003, 2005, Oracle.  All rights reserved. 
  6.  
  7. Enter the following information: 
  8. Database SID: ora11g 
  9. Listener port number: 1521 
  10. Password for SYS user:   
  11. Password for SYSMAN user:   
  12.  
  13. Do you wish to continue? [yes(Y)/no(N)]: yes 
  14. Dec 8, 2012 1:13:47 PM oracle.sysman.emcp.EMConfig perform 
  15. INFO: This operation is being logged at /oracle/cfgtoollogs/emca/ora11g/emca_2012_12_08_13_13_12.log. 
  16. Dec 8, 2012 1:14:08 PM oracle.sysman.emcp.EMReposConfig invoke 
  17. INFO: Dropping the EM repository (this may take a while) ... 
  18. Dec 8, 2012 1:20:13 PM oracle.sysman.emcp.EMReposConfig invoke 
  19. INFO: Repository successfully dropped 
  20. Enterprise Manager configuration completed successfully 
  21. FINISHED EMCA at Dec 8, 2012 1:20:13 PM 
  22. [oracle@source admin]$ emca -repos create  --创建新的资料库 
  23.  
  24. STARTED EMCA at Dec 8, 2012 1:20:42 PM 
  25. EM Configuration Assistant, Version 11.2.0.0.2 Production 
  26. Copyright (c) 2003, 2005, Oracle.  All rights reserved. 
  27.  
  28. Enter the following information: 
  29. Database SID: ora11g 
  30. Listener port number: 1521 
  31. Password for SYS user:   
  32. Password for SYSMAN user:   
  33.  
  34. Do you wish to continue? [yes(Y)/no(N)]: Y 
  35. Dec 8, 2012 1:21:02 PM oracle.sysman.emcp.EMConfig perform 
  36. INFO: This operation is being logged at /oracle/cfgtoollogs/emca/ora11g/emca_2012_12_08_13_20_41.log. 
  37. Dec 8, 2012 1:21:03 PM oracle.sysman.emcp.EMReposConfig createRepository 
  38. INFO: Creating the EM repository (this may take a while) ... 
  39. Dec 8, 2012 1:32:44 PM oracle.sysman.emcp.EMReposConfig invoke 
  40. INFO: Repository successfully created 
  41. Enterprise Manager configuration completed successfully 
  42. FINISHED EMCA at Dec 8, 2012 1:32:44 PM 
  43. [oracle@source admin]$ emca -config dbcontrol db   --配置database control 
  44.  
  45. STARTED EMCA at Dec 8, 2012 1:55:39 PM 
  46. EM Configuration Assistant, Version 11.2.0.0.2 Production 
  47. Copyright (c) 2003, 2005, Oracle.  All rights reserved. 
  48.  
  49. Enter the following information: 
  50. Database SID: ora11g 
  51. Database Control is already configured for the database ora11g 
  52. You have chosen to configure Database Control for managing the database ora11g 
  53. This will remove the existing configuration and the default settings and perform a fresh configuration 
  54. Do you wish to continue? [yes(Y)/no(N)]: Y 
  55. Listener ORACLE_HOME [ /oracle/product/10.2.0/db_1 ]:  
  56. Password for SYS user:   
  57. Password for DBSNMP user:   
  58. Password for SYSMAN user:   
  59. Email address for notifications (optional):  
  60. Outgoing Mail (SMTP) server for notifications (optional):  
  61. ----------------------------------------------------------------- 
  62.  
  63. You have specified the following settings 
  64.  
  65. Database ORACLE_HOME ................ /oracle/product/10.2.0/db_1 
  66.  
  67. Local hostname ................ source 
  68. Listener ORACLE_HOME ................ /oracle/product/10.2.0/db_1 
  69. Listener port number ................ 1521 
  70. Database SID ................ ora11g 
  71. Email address for notifications ...............  
  72. Outgoing Mail (SMTP) server for notifications ...............  
  73.  
  74. ----------------------------------------------------------------- 
  75. Do you wish to continue? [yes(Y)/no(N)]: Y 
  76. Dec 8, 2012 1:56:34 PM oracle.sysman.emcp.EMConfig perform 
  77. INFO: This operation is being logged at /oracle/cfgtoollogs/emca/ora11g/emca_2012_12_08_13_55_38.log. 
  78. Dec 8, 2012 1:56:37 PM oracle.sysman.emcp.util.DBControlUtil stopOMS 
  79. INFO: Stopping Database Control (this may take a while) ... 
  80. Dec 8, 2012 1:57:33 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository 
  81. INFO: Uploading configuration data to EM repository (this may take a while) ... 
  82. Dec 8, 2012 2:00:53 PM oracle.sysman.emcp.EMReposConfig invoke 
  83. INFO: Uploaded configuration data successfully 
  84. Dec 8, 2012 2:01:28 PM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib 
  85. INFO: Software library configured successfully. 
  86. Dec 8, 2012 2:01:28 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary 
  87. INFO: Deploying Provisioning archives ... 
  88. Dec 8, 2012 2:06:40 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary 
  89. INFO: Provisioning archives deployed successfully. 
  90. Dec 8, 2012 2:06:40 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole 
  91. INFO: Securing Database Control (this may take a while) ... 
  92. Dec 8, 2012 2:07:45 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole 
  93. INFO: Database Control secured successfully. 
  94. Dec 8, 2012 2:07:45 PM oracle.sysman.emcp.util.DBControlUtil startOMS 
  95. INFO: Starting Database Control (this may take a while) ... 
  96. Dec 8, 2012 2:11:38 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration 
  97. INFO: Database Control started successfully 
  98. Dec 8, 2012 2:11:39 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration 
  99. INFO: >>>>>>>>>>> The Database Control URL is https://source:5500/em <<<<<<<<<<< 
  100. Dec 8, 2012 2:20:53 PM oracle.sysman.emcp.EMDBPostConfig invoke 
  101. WARNING:  
  102. ************************  WARNING  ************************ 
  103.  
  104. Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted.  The encryption key has been placed in the file: /oracle/product/10.2.0/db_1/source_ora11g/sysman/config/emkey.ora.   Please ensure this file is backed up as the encrypted data will become unusable if this file is lost.  
  105.  
  106. *********************************************************** 
  107. Enterprise Manager configuration completed successfully 
  108. FINISHED EMCA at Dec 8, 2012 2:20:53 PM 

emca -repos create: 创建新的 Database Control 资料档案库
emca -repos drop: 删除当前的 Database Control 资料档案库
emca -repos recreate: 删除当前的 Database Control 资料档案库并重新创建一个
   
emca -config dbcontrol db:配置数据库的 Database Control
emca -deconfig dbcontrol db:取消数据库的 Database Control

注:
(1)如果服务器上存在多个数据库,必须在启动Database control之前设置ORACLE_SID环境变量.
(2)最好使用静态IP地址来配置服务器.


参考:

http://raugher.blog.51cto.com/3472678/1083406

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值