emctl start dbconsole issue:OC4J Configuration issue

[oracle@centos-4 ~]$ emctl start dbconsole

TZ set to PRC

OC4J Configuration issue. /u01/oracle/oc4j/j2ee/OC4J_DBConsole_localhost.localdomain_shenzhen not found.

[@more@]

重新配置dbconsole如下:

[oracle@centos-4 u01]$ emca -config dbcontrol db

STARTED EMCA at Feb 17, 2011 2:48:31 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: shenzhen

Listener port number: 1521

Password for SYS user: oracle

Password for DBSNMP user: oracle

Password for SYSMAN user: oracle

Email address for notifications (optional):

Outgoing Mail (SMTP) server for notifications (optional):

-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ /u01/oracle

Database hostname ................ localhost.localdomain

Listener port number ................ 1521

Database SID ................ shenzhen

Email address for notifications ...............

Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------

Do you wish to continue? [yes(Y)/no(N)]: Y

Feb 17, 2011 2:49:28 PM oracle.sysman.emcp.EMConfig perform

INFO: This operation is being logged at /u01/oracle/cfgtoollogs/emca/shenzhen/emca_2011-02-17_02-48-31-PM.log.

Feb 17, 2011 2:49:33 PM oracle.sysman.emcp.util.DBControlUtil startOMS

INFO: Starting Database Control (this may take a while) ...

Feb 17, 2011 2:51:08 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration

INFO: Database Control started successfully

Feb 17, 2011 2:51:08 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration

INFO: >>>>>>>>>>> The Database Control URL is http://localhost.localdomain:5500/em <<<<<<<<<<<

Enterprise Manager configuration completed successfully

FINISHED EMCA at Feb 17, 2011 2:51:08 PM

常用的命令语法:

emca -repos create创建一个EM资料库

emca -repos recreate重建一个EM资料库

emca -repos drop删除一个EM资料库

emca -config dbcontrol db配置数据库的 Database Control

emca -deconfig dbcontrol db删除数据库的 Database Control配置

emca -reconfig ports 重新配置db controlagent的端口

emctl start console启动EM console服务,使用前需要先设置ORACLE_SID环境变量

emctl stop console停止EM console服务,使用前需要先设置ORACLE_SID环境变量

注:通过查看$ORACLE_HOME/install/portlist.ini 文件可以知道当前dbcontrol正在使用的端口,默认dbcontrol http端口1158agent端口3938。如果要重新配置端口,可以使用如下命令:

emca -reconfig ports -dbcontrol_http_port 1159

emca -reconfig ports -agent_port 3939

使用命令行工具emctl可以启动/停止console服务,察看服务状态等。

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

转载于:http://blog.itpub.net/12472709/viewspace-1046117/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值