安装完以后,emctl无法启动,试验了多种办法也未解决,最后才发现是hostname的问题。
这台机器的hostname和hosts名称不一样,导致出现怪异的问题。
修改/etc/hostname,/etc/hosts,使二者一致。
修改$ORACLE_HOME/sysman/config/emd.properties,修正其中和hostname相关的部分。
修正network/admin/*.ora文件,注意hostname和port。(我用了1521 port)
重建数据库:
emca -config dbcontrol db -repos recreate
emctl无法启动
Posted on October 11th, 2006 in Oracle | Trackback URI
Tags:emctl,hostname,hosts,Oracle
emca与emctl常用的命令语法 |
[ 2007-5-5 11:19:00 | By: iadong ]
|
Oracle10G的EM采用了web方式,并且分成了2个产品,database control和grid control。这里主要介绍如何创建单数据的dbcontrol。Grid control需要下载单独的光盘安装。 在用DBCA建库的时候,可以选择是否启用dbcontrol,启用的话需要在数据库中建立一个sysman的schema,用于保存EM的一些数据,这个就是EM的资料库(repository)。 使用命令行工具emca可以创建,修改,重建或者删除dbcontrol的配置。而使用命令行工具emctl可以启动/停止EM console服务,察看服务状态等。 emca常用命令语法: 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 control和agent的端口 注:通过查看$ORACLE_HOME/install/portlist.ini 文件可以知道当前dbcontrol正在使用的端口,默认dbcontrol http端口1158,agent端口3938。如果要重新配置端口,可以使用如下命令: emca -reconfig ports -dbcontrol_http_port 1159 emca -reconfig ports -agent_port 3939
emctl常用命令语法: emctl start dbconsole启动EM console服务,使用前需要先设置ORACLE_SID环境变量 emctl stop dbconsole停止EM console服务,使用前需要先设置ORACLE_SID环境变量 |