再遇EM错误,监听正常,EM不能使用

再遇EM错误,监听正常,EM不能使用

最近一台测试机,我在做Gateway测试时对listener.ora文件作了修改,导致EM不能使用,EM启动后在浏览器中输入:http://10.182.x.x:1158/em,显示ORA-15241错误,对这个错误我感觉很奇怪,因为我通过plsqldeveloper可以连接到数据库.emctl start dbconsole启动信息INFO: >>>>>>>>>>> The Database Control URL is http://localhost.localdomain:1158/em <<<<<<<<<<<这里不是我的主机名,问题出 在这时.查看/etc/hosts文件,发现IP和现在的IP不对应,这台测试机在我安装完系统安装oracle前改过IP,hosts的文件没有修改.由于我的疏忽导致了这次错误

 

完全删除EM

cd $ORACLE_HOME/sysman/admin/emdrep/bin

ORACLE_SID:test >RepManager 10.182.x.x  1521 test -repos_user SYSMAN  -action drop

Enter SYS user's password :

Enter repository user password :

Getting temporary tablespace from database...

Found temporary tablespace: TEMP

Checking SYS Credentials ... OK.

Dropping the repository..

Quiescing DB ... Done.

Checking for Repos User ... Exists.

Repos User exists..

Clearing EM Contexts ... OK.

Dropping EM users ...

Done.

Dropping Repos User ... Done.

Dropping Roles/Synonymns/Tablespaces ... Done.

Unquiescing DB ... Done.

Dropped Repository Successfully.

RepManager不会删除$ORACLE_HOME/oc4j/j2ee目录下的OC4J_DBConsole__目录,需要手动删除,要不在配置dbcontrol_http_port默认端口1158时会说端口正在使用

$ORACLE_HOME目录下的

_目录

 

你完全可以使用emca -deconfig all db -repos drop进行删除,上面的两个目录也不需要手动删除

使用emca重建EM,在重建时指定host

ORACLE_SID:test >emca -config all db -repos create -host test

 

你可使用emca -reconfig ports 修改端口号

这次由hosts文件配置错误导致EM不能使用,解决的在指定host

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

转载于:http://blog.itpub.net/7419833/viewspace-586698/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值