oracle 11g 更换主机名后引起dbcontrol 启动失败的解决办法

来源:互联网 发布:js invalid date 编辑:程序博客网 时间:2024/06/06 00:31

oracle 11g 更换主机名后引起dbcontrol 启动失败的解决办法

今天机器重新换了IP地址,EM的服务就启动不起来了,所以重建了EM的资料档案库,重新配置了dbconsole。步骤如下:
C:/Documents and Settings/new>set oracle_sid=ora10g
C:/Documents and Settings/new>emca -repos recreate

EMCA 开始于 2007-4-19 14:09:05
EM Configuration Assistant 10.2.0.1.0 正式版
版权所有 (c) 2003, 2005, Oracle。保留所有权利。

输入以下信息:
数据库 SID: ora10g
监听程序端口号: 1521
SYS 用户的口令:
SYSMAN 用户的口令:

是否继续? [yes(Y)/no(N)]: yes
2007-4-19 14:10:09 oracle.sysman.emcp.EMConfig perform
信息: 正在将此操作记录到 d:/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/e
mca_2007-04-19_02-09-05-下午.log。
2007-4-19 14:10:09 oracle.sysman.emcp.EMReposConfig dropRepository
信息: 正在删除 EM 资料档案库 (此操作可能需要一段时间)...
2007-4-19 14:13:18 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功删除资料档案库
2007-4-19 14:13:18 oracle.sysman.emcp.EMReposConfig createRepository
信息: 正在创建 EM 资料档案库 (此操作可能需要一段时间)...
2007-4-19 14:17:37 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功创建资料档案库
已成功完成 Enterprise Manager 的配置
EMCA 结束于 2007-4-19 14:17:37

C:/Documents and Settings/new>emca -config dbcontrol db

EMCA 开始于 2007-4-19 14:19:38
EM Configuration Assistant 10.2.0.1.0 正式版
版权所有 (c) 2003, 2005, Oracle。保留所有权利。

输入以下信息:
数据库 SID: ora10g
已为数据库 ora10g 配置了 Database Control
您已选择配置 Database Control, 以便管理数据库 ora10g
此操作将移去现有配置和默认设置, 并重新执行配置
是否继续? [yes(Y)/no(N)]: yes
监听程序端口号: 1521
SYS 用户的口令:
DBSNMP 用户的口令:
SYSMAN 用户的口令:
通知的电子邮件地址 (可选):
通知的发件 (SMTP) 服务器 (可选):
-----------------------------------------------------------------

已指定以下设置

数据库 ORACLE_HOME ................ d:/oracle/product/10.2.0/db_1

数据库主机名 ................ MICROSOF-029
监听程序端口号 ................ 1521
数据库 SID ................ ora10g
通知的电子邮件地址 ...............
通知的发件 (SMTP) 服务器 ...............

-----------------------------------------------------------------
是否继续? [yes(Y)/no(N)]: yes
2007-4-19 14:20:02 oracle.sysman.emcp.EMConfig perform
信息: 正在将此操作记录到 d:/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/e
mca_2007-04-19_02-19-38-下午.log。
2007-4-19 14:20:03 oracle.sysman.emcp.DatabaseChecks performReposChecks
警告: 'shared_pool_size' 必须大于等于 80 MB。
2007-4-19 14:20:05 oracle.sysman.emcp.util.DBControlUtil stopOMS
信息: 正在停止 Database Control (此操作可能需要一段时间)...
2007-4-19 14:20:16 oracle.sysman.emcp.util.DBControlUtil startOMS
信息: 正在启动 Database Control (此操作可能需要一段时间)...
2007-4-19 14:21:10 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: 已成功启动 Database Control
2007-4-19 14:21:17 oracle.sysman.emcp.EMDBPostConfig performConfiguration
警告: 无法创建 Database Control 快捷方式
2007-4-19 14:21:17 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: >>>>>>>>>>> Database Control URL 为 http://MICROSOF-029:5501/em <<<<<<<<<<
<
已成功完成 Enterprise Manager 的配置
EMCA 结束于 2007-4-19 14:21:18

C:/Documents and Settings/new>emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation.    All rights reserved.
http://MICROSOF-029:5501/em/console/aboutApplication
Agent Version       : 10.1.0.4.1
OMS Version         : 10.1.0.4.0
Protocol Version    : 10.1.0.2.0
Agent Home          : d:/oracle/product/10.2.0/db_1/MICROSOF-029_ora10g
Agent binaries      : d:/oracle/product/10.2.0/db_1
Agent Process ID    : 3836
Agent Process ID    : 3836
Agent URL           : http://MICROSOF-029:3938/emd/main
Started at          : 2007-04-19 14:21:56
Started by user     : SYSTEM
Last Reload         : 2007-04-19 14:21:56
Last successful upload                         : (none)
Last attempted upload                          : 2007-04-19 14:22:51
Total Megabytes of XML files uploaded so far :       0.00
Number of XML files pending upload             :          5
Size of XML files pending upload(MB)           :       2.31
Available disk space on upload filesystem      :      59.92%
Agent is already started. Will restart the agent
This will stop the Oracle Enterprise Manager 10g Database Control process. Conti
nue [y/n] :y
OracleDBConsoleora10g 服务正在停止.............
OracleDBConsoleora10g 服务已成功停止。


C:/Documents and Settings/new>emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation.    All rights reserved.
http://MICROSOF-029:5501/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsoleora10g
服务正在启动 ..............
OracleDBConsoleora10g 服务已经启动成功。

附上EMCA的常用命令:
创建一个EM资料库
emca -repos create
重建一个EM资料库
emca -repos recreate
删除一个EM资料库
emca -repos drop
配置数据库的 Database Control
emca -config dbcontrol db
删除数据库的 Database Control配置
emca -deconfig dbcontrol db
重新配置db control的端口,默认端口在1158
emca -reconfig ports
emca -reconfig ports -dbcontrol_http_port 1160
emca -reconfig ports -agent_port 3940
先设置ORACLE_SID环境变量后,启动EM console服务
emctl start dbconsole
先设置ORACLE_SID环境变量后,停止EM console服务
emctl stop dbconsole
先设置ORACLE_SID环境变量后,查看EM console服务的状态
emctl status dbconsole

配置dbconsole的步骤
emca -repos create
emca -config dbcontrol db
emctl start dbconsole
重新配置dbconsole的步骤
emca -repos drop
emca -repos create
emca -config dbcontrol db
emctl start dbconsole

 


 


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/wind__dance/archive/2009/02/20/3914171.aspx

原创粉丝点击