`
wsqian
  • 浏览: 40454 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

更改主机IP地址导致oracledbconsole不能打开

 
阅读更多
1.先手动修改oracle目录下 db_1\主机名_orcl  和  db_1\oc4j\j2ee\OC4J_DBConsole_主机名_ORCL 中的主机名;

再进入命令行执行以下语句:
-------------------------------
2.修改DBSNMP密码:
重新配置DBCONSOLE,需要输入DBSNMP密码,但任何密码都会显示错误,需要预先修改。
sql>alter user dbsnmp identified by xxx;
3,删除早期DBCONSOLE创建的用户:
sql>drop role MGMT_USER;
sql>drop user MGMT_VIEW cascade;
sql>drop user sysman cascade;
4,删除早期DBCONSOLE创建的对象:
sql>drop PUBLIC SYNONYM MGMT_TARGET_BLACKOUTS;
sql>drop public synonym SETEMVIEWUSERCONTEXT;
5,重新创建DBCONSOLE:(如果是在windows下,要先到注册还需要删除注册表Oracle选项下的表删除DBCONSOLE的服务regedit,搜索: ../SYSMAN/OracleDBConsole<SID>条目,重启电脑)
//SQL>$emca -config dbcontrol db -repos create
-----------------------------------
5.
SQL> $emca -repos recreate                              /*删除当前的Database Control 资料库并重新创建一个*/

EMCA 开始于 2011-2-14 10:40:03
EM Configuration Assistant 10.2.0.1.0 正式版
版权所有 (c) 2003, 2005, Oracle。保留所有权利。

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

是否继续? [yes(Y)/no(N)]: Y
2011-2-14 10:41:17 oracle.sysman.emcp.EMConfig perform
信息: 正在将此操作记录到 E:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc
a_2011-02-14_10-40-03-上午.log。
2011-2-14 10:41:22 oracle.sysman.emcp.EMReposConfig dropRepository
信息: 正在删除 EM 资料档案库 (此操作可能需要一段时间)...
2011-2-14 10:42:37 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功删除资料档案库
2011-2-14 10:42:37 oracle.sysman.emcp.EMReposConfig createRepository
信息: 正在创建 EM 资料档案库 (此操作可能需要一段时间)...
2011-2-14 10:45:54 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功创建资料档案库
已成功完成 Enterprise Manager 的配置
EMCA 结束于 2011-2-14 10:45:54

SQL> emctl start dbconsole
SP2-0734: 未知的命令开头 "emctl star..." - 忽略了剩余的行。              /*不知为什么出现这个错误,退出sql可以执行*/
SP2-0044: 要获取已知命令的列表, 请输入 HELP;
输入 EXIT 可退出。
SQL> quit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开

C:\Documents and Settings\Administrator>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://192.168.1.10:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsoleorcl
服务正在启动 .
OracleDBConsoleorcl 服务无法启动。

系统出错。

发生系统错误 3。

系统找不到指定的路径。


C:\Documents and Settings\Administrator>$ emca -config dbcontrol db
'$' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\Documents and Settings\Administrator>emca -config dbcontrol db /*配置数据库的Database Control*/

EMCA 开始于 2011-2-14 10:50:57
EM Configuration Assistant 10.2.0.1.0 正式版
版权所有 (c) 2003, 2005, Oracle。保留所有权利。

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

已指定以下设置

数据库 ORACLE_HOME ................ E:\oracle\product\10.2.0\db_1

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

-----------------------------------------------------------------
是否继续? [yes(Y)/no(N)]: y
2011-2-14 11:10:00 oracle.sysman.emcp.EMConfig perform
信息: 正在将此操作记录到 E:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc
a_2011-02-14_10-50-57-上午.log。
2011-2-14 11:10:11 oracle.sysman.emcp.DatabaseChecks performReposChecks
警告: 'shared_pool_size' 必须大于等于 80 MB。                                                                               ??
2011-2-14 11:10:42 oracle.sysman.emcp.util.DBControlUtil stopOMS
信息: 正在停止 Database Control (此操作可能需要一段时间)...
2011-2-14 11:11:52 oracle.sysman.emcp.util.DBControlUtil startOMS
信息: 正在启动 Database Control (此操作可能需要一段时间)...
2011-2-14 11:13:02 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: 已成功启动 Database Control
2011-2-14 11:13:11 oracle.sysman.emcp.EMDBPostConfig performConfiguration
警告: 无法创建 Database Control 快捷方式                                                                                          ??
2011-2-14 11:13:16 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: >>>>>>>>>>> Database Control URL 为 http://KQYY0003:1158/em <<<<<<<<<<<
已成功完成 Enterprise Manager 的配置
EMCA 结束于 2011-2-14 11:13:16

C:\Documents and Settings\Administrator>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://KQYY0003:1158/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        : E:\oracle\product\10.2.0\db_1\KQYY0003_ORCL
Agent binaries    : E:\oracle\product\10.2.0\db_1
Agent Process ID  : 1136
Agent Process ID  : 1136
Agent URL         : http://KQYY0003:3938/emd/main
Started at        : 2011-02-14 11:13:54
Started by user   : SYSTEM
Last Reload       : 2011-02-14 11:13:54
Last successful upload                       : 2011-02-14 11:18:28
Total Megabytes of XML files uploaded so far :     2.54
Number of XML files pending upload           :        0
Size of XML files pending upload(MB)         :     0.00
Available disk space on upload filesystem    :    79.97%
Agent is already started. Will restart the agent
This will stop the Oracle Enterprise Manager 10g Database Control process. Conti
nue [y/n] :y
OracleDBConsoleORCL 服务正在停止...............
OracleDBConsoleORCL 服务已成功停止。


C:\Documents and Settings\Administrator>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://KQYY0003:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsoleORCL
服务正在启动 .........................
OracleDBConsoleORCL 服务已经启动成功。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics