Oracle的EM打不开!

[复制链接]
查看11 | 回复9 | 2014-2-19 11:55:14 | 显示全部楼层 |阅读模式
我装的是Oracle10g,可能在装的时候没有插上网线,但面在插上了,所以打不开了,我在网上看到有些朋友说是IP问题,于是我也在windows的hosts文件中加入了IP映射:
127.0.0.1 localhost
192.168.0.16 Oracleserver
但还是不行,启动OracleDBConsole服务时,仍弹出错误提示:Windows不能在本地计算机启动OracleDBConsolezb。有关更多信息,查阅系统事件日志。如果这是非Microsoft服务,请与服务厂商联系,并参考特定服务器代码2。
但如果我拨掉网线,就能登上去了,怎么解决这个问题呀??
回复

使用道具 举报

千问 | 2014-2-19 11:55:14 | 显示全部楼层
插上网线后,首先ping你的hostname看能通么,如果能通,再
emca -config dbcontrol db重新配置一下dbcontrol应该就可以了
你拔掉网线装的,那么当时应该配置的是127.0.0.1的localhost,插上后使用了则是实际的hostname和实际的IP,可能是这个问题,重新配置host应该是可以的
回复

使用道具 举报

千问 | 2014-2-19 11:55:14 | 显示全部楼层
能针对我上面的情况写出具体的命令吗?我试了,好像命令使用错误!
回复

使用道具 举报

千问 | 2014-2-19 11:55:14 | 显示全部楼层
用法不正确:
oracle.sysman.emcp.EMConfigAssistant [options] [list of parameters]
Options:

-a
:configure for an ASM database

-b
:configure for automatic backup

-c
:configure a cluster database

-d
:run EMCA from within the development view

-e:remove a node from the cluster

-f:specify the file name that contains parameter values

-h
:help

-m
:configure for central mode

-n:add a new node to the cluster

-r
:skip creation of repository schema

-s
:silent mode (no user prompts

-x:deletion of a SID or DB
The script will prompt for any required data that is not specified in a configuration file.The script always prompts for all required passwords.If you use a configuration file, the file may contain any of the following specifications, as shown, with the specified values correctly filled in:
Parameters for single instance databases:

HOST=

SID=

PORT=

ORACLE_HOME=

LISTENER=

HOST_USER=

HOST_USER_PWD=

BACKUP_HOUR=

BACKUP_MINUTE=

ARCHIVE_LOG=

EMAIL_ADDRESS=

MAIL_SERVER_NAME=

ASM_OH=

ASM_SID=

ASM_PORT=

ASM_USER_ROLE=

ASM_USER_NAME=

ASM_USER_PWD=

EM_HOME=

DBSNMP_PWD=

SYSMAN_PWD=

SYS_PWD=
Parameters for cluster databses:

HOST=

PORT=

LISTENER=

ORACLE_HOME=

CLUSTER_NAME=

DB_NAME=

SERVICE_NAME=

HOST_USER=

HOST_USER_PWD=

BACKUP_HOUR=

BACKUP_MINUTE=

ARCHIVE_LOG=

EMAIL_ADDRESS=

MAIL_SERVER_NAME=

ASM_OH=

ASM_PORT=

ASM_USER_ROLE=

ASM_USER_NAME=

ASM_USER_PWD=

EM_HOME=

DBSNMP_PWD=

SYSMAN_PWD=

SYS_PWD=
回复

使用道具 举报

千问 | 2014-2-19 11:55:14 | 显示全部楼层
emca -r
回复

使用道具 举报

千问 | 2014-2-19 11:55:14 | 显示全部楼层
不行,我的计算机名是athlon01 , 数据库名是zb,SID是: oraclezb
命令怎么写都是用法错误!
回复

使用道具 举报

千问 | 2014-2-19 11:55:14 | 显示全部楼层
建立、删除、重建的命令如下:
emca -config dbcontrol db -repos create
emca -deconfig dbcontrol db -repos drop
emca -config dbcontrol db -repos recreate
回复

使用道具 举报

千问 | 2014-2-19 11:55:14 | 显示全部楼层
emca -config dbcontrol db重新配置一下dbcontrol应该就可以了,repository不需要重建
回复

使用道具 举报

千问 | 2014-2-19 11:55:14 | 显示全部楼层
C:>emca -config dbcontrol db
EMCA 开始于 2007-3-1 11:24:05
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 用户的口令:
SYSMAN 用户的口令:
通知的电子邮件地址 (可选): [email protected]
通知的发件 (SMTP) 服务器 (可选):
-----------------------------------------------------------------
已指定以下设置
数据库 ORACLE_HOME ................ D

racleproduct10.2.0db_1
数据库主机名 ................ JX02
监听程序端口号 ................ 1521
数据库 SID ................ orcl
通知的电子邮件地址 ............... [email protected]
通知的发件 (SMTP) 服务器 ...............
-----------------------------------------------------------------
是否继续? [yes(Y)/no(N)]: y
2007-3-1 11:24:51 oracle.sysman.emcp.EMConfig perform
信息: 正在将此操作记录到 D

racleproduct10.2.0db_1cfgtoollogsemcaorclemc
a_2007-03-01_11-24-05-上午.log。
2007-3-1 11:24:52 oracle.sysman.emcp.DatabaseChecks performReposChecks
警告: 'shared_pool_size' 必须大于等于 80 MB。
2007-3-1 11:24:54 oracle.sysman.emcp.util.DBControlUtil stopOMS
信息: 正在停止 Database Control (此操作可能需要一段时间)...
2007-3-1 11:25:53 oracle.sysman.emcp.util.DBControlUtil startOMS
信息: 正在启动 Database Control (此操作可能需要一段时间)...
2007-3-1 11:26:33 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: 已成功启动 Database Control
2007-3-1 11:26:34 oracle.sysman.emcp.EMDBPostConfig performConfiguration
警告: 无法创建 Database Control 快捷方式
2007-3-1 11:26:34 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: >>>>>>>>>>> Database Control URL 为 http://JX02:1158/em emctl start dbconsole em
Environment variable ORACLE_SID not defined. Please define it.
C:>set oracle_sid=orcl
C:>emctl start dbconsole em
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://JX02:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ...请求的服务已经启动。
请键入 NET HELPMSG 2182 以获得更多的帮助
回复

使用道具 举报

千问 | 2014-2-19 11:55:14 | 显示全部楼层
如果不使用用REPOSITORY呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行