Today when trying to open my Oracle EM url, I can not open it. So I thought may be the network is having issue. I use the tenlet to try to identifiy if the network is ok. The command is telnet racnode1 1158 and it shows the network is ok. So I go to the the rac server to check.

First I use emctl status dbconsole. The output is wired because it stuck here

[oracle@racnode1 ~]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.
Copyright (c) , Oracle Corporation. All rights reserved.
https://racnode1:1158/em/console/aboutApplication

after I issue ctrl+c to stop the command. The who output came out.

^COracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2./dbhome_1/racnode1_orcl/sysman/log

As it said the dbconsole is running. So I think I might need to restart it first.

[oracle@racnode1 log]$ emctl stop dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.
Copyright (c) , Oracle Corporation. All rights reserved.
https://racnode1:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 11g Database Control ... ... Stopped.
[oracle@racnode1 log]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.
Copyright (c) , Oracle Corporation. All rights reserved.
https://racnode1:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ..... .....^C started.
------------------------------------------------------------------

As you can see, the stop command workds fine but start command stuck.

I try to read the logs to find out why. So I go to the log directory

/u01/app/oracle/product/11.2.0/dbhome_1/racnode1_orcl/sysman/log

There are logs below

[oracle@racnode1 log]$ ls -ltr
total
-rw-r-----. oracle oinstall Sep : emdctl.log
-rw-r-----. oracle oinstall Sep : patchAgtStPlugin.log
-rw-r-----. oracle oinstall Sep : nfsPatchPlug.log
-rw-r-----. oracle oinstall Sep : emagentfetchlet.log
-rw-r-----. oracle oinstall Sep : emagentfetchlet.trc
drwxr-----. oracle oinstall Sep : pafLogs
-rw-r-----. oracle oinstall Sep : secure.log
-rw-r-----. oracle oinstall Sep : emoms.trc.
-rw-r-----. oracle oinstall Sep : emctl.msg
-rw-r-----. oracle oinstall Sep : emdctl.trc
-rw-r-----. oracle oinstall Sep : emdb.nohup
-rw-r-----. oracle oinstall Sep : emagent_perl.trc
-rw-r-----. oracle oinstall Sep : emagent.log
-rw-r-----. oracle oinstall Sep : emoms.trc
-rw-r-----. oracle oinstall Sep : emoms.log
-rw-r-----. oracle oinstall Sep : emagent.trc

I tail -100f emdb.nohup found below information.

----- Mon Sep  :: ::Checking status of DBConsole :  -----
----- Mon Sep :: ::DBConsole exited at Mon Sep :: with return value . -----
----- Mon Sep :: ::Restarting DBConsole. -----
----- Mon Sep :: ::Console Launched with PID at time Mon Sep :: -----
----- Mon Sep :: ::osname is linux -----
----- Mon Sep :: ::heap size used is - -----
----- Mon Sep :: ::perm size used is - -----
----- Mon Sep :: ::joptions used are -server -Xmx192M -XX:MaxPermSize=200M -XX:MinHeapFreeRatio= -XX:MaxHeapFreeRatio= -----
// :: Error starting ORMI server racnode1 port ,: Address already in use
// :: Shutting down OC4J...

It said the 5,520 port are being used. So I try to use netstat to find out what is the process using this port.

[oracle@racnode1 log]$ netstat -ap | grep
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp *: *:* LISTEN /java
udp 169.254.166.63: *:* /asm_psp0_+ASM1
[oracle@racnode1 log]$ ps -ef | grep
oracle Sep21 ? :: /u01/app/oracle/product/11.2./dbhome_1/jdk/bin/java -server -Xmx192M -XX:MaxPermSize=200M -XX:MinHeapFreeRatio= -XX:MaxHeapFreeRatio= -DORACLE_HOME=/u01/app/oracle/product/11.2./dbhome_1 -Doracle.home=/u01/app/oracle/product/11.2./dbhome_1/oc4j -Doracle.oc4j.localhome=/u01/app/oracle/product/11.2./dbhome_1/racnode1_orcl/sysman -DEMSTATE=/u01/app/oracle/product/11.2./dbhome_1/racnode1_orcl -Doracle.j2ee.dont.use.memory.archive=true -Djava.protocol.handler.pkgs=HTTPClient -Doracle.security.jazn.config=/u01/app/oracle/product/11.2./dbhome_1/oc4j/j2ee/OC4J_DBConsole_racnode1_orcl/config/jazn.xml -Djava.security.policy=/u01/app/oracle/product/11.2./dbhome_1/oc4j/j2ee/OC4J_DBConsole_racnode1_orcl/config/java2.policy -Djavax.net.ssl.KeyStore=/u01/app/oracle/product/11.2./dbhome_1/sysman/config/OCMTrustedCerts.txt-Djava.security.properties=/u01/app/oracle/product/11.2./dbhome_1/oc4j/j2ee/home/config/jazn.security.props -DEMDROOT=/u01/app/oracle/product/11.2./dbhome_1/racnode1_orcl -Dsysman.md5password=true -Drepapi.oracle.home=/u01/app/oracle/product/11.2./dbhome_1 -Ddisable.checkForUpdate=true -Doracle.
sysman.ccr.ocmSDK.websvc.keystore=/u01/app/oracle/product/11.2./dbhome_1/jlib/emocmclnt.ks -Dice.pilots.html4.ignoreNonGenericFonts=true -Djava.awt.headless=true -jar /u01/app/oracle/product/11.2./dbhome_1/oc4j/j2ee/home/oc4j.jar -config /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_racnode1_orcl/config/server.xml

There do have one process using this port. One thing you need to be careful about is that if you are not root. The netstat may not return you all the result. Ok I checked the process found it is an OC4J process.  And the parent process id is 1. Means this process should have be exited. I killed it. Try to start em again.

[oracle@racnode1 log]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.
Copyright (c) , Oracle Corporation. All rights reserved.
https://racnode1:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ............ started.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2./dbhome_1/racnode1_orcl/sysman/log

Very smoothly. I started it without any problem.

one troubleshooting case about em access issue的更多相关文章

  1. 【Troubleshooting Case】Unable to delete Exchange database?

    在我们日常邮件系统运维管理或实施部署变更中,经常会遇到,删除Exchange 数据库DB时,提示无法删除. ------------------– Microsoft Exchange Error - ...

  2. 【Troubleshooting Case】Exchange Server 组件状态应用排错?

    在Exchange 2013中,引入了“服务器组件状态”的概念.服务器组件状态从运行环境的角度提供对组成Exchange Server的组件的状态的精细控制. 日常排错时,常常会把Exchange 服 ...

  3. network issue troubleshooting

    Today we troubleshooting a lot of network issue by using commands like: ping <ip>/<computer ...

  4. Attacking JavaScript Engines: A case study of JavaScriptCore and CVE-2016-4622(转)

    转:http://phrack.org/papers/attacking_javascript_engines.html Title : Attacking JavaScript Engines: A ...

  5. 10g异机恢复后EM无法启动故障处理一例

    之前在自己的測试环境上做了个异机恢复,原来的库上是配置过EM的,可是在恢复的库上去启动EM就报错了.以下看详细解决过程: PS:原主机名为zlm,恢复出来的主机名为bak [root@bak ~]# ...

  6. 电脑IP改变后oracle em无法登陆的解决办法(亲测)

    以下方法为本人亲测 情况:假设电脑初次安装oracle时的ip是192.168.133.110 那么进入em的地址就是http://192.168.133.110:1158/em/console/lo ...

  7. oracle em命令行配置及界面按钮乱码问题解决方法

    一.配置EM dbconsole db [oracle@rusky ~]$ lsnrctl start [oracle@rusky ~]$ emctl start dbconsoleTZ set to ...

  8. facebook api之Access and Authentication

    Access and Authentication There are three access levels to the Marketing APIs. You can upgrade acces ...

  9. Debugging JTAG Connectivity Problems

    2013-12-04 22:34:26 转自:http://processors.wiki.ti.com/index.php/Debugging_JTAG_Connectivity_Problems ...

随机推荐

  1. 视图解析器InternalResourceViewResolver在什么情况下需要配置?在什么情况下不需要配置?

    如果路径名是逻辑名的话,必须配置 -------------- 相对路径,即逻辑名称如果路径名是真实名的话,可选配置 若是绝对路径,则不用配置,即真实名称 注:试一下逻辑名和真实名的例子*****有用 ...

  2. 401 Binary Watch 二进制手表

    详见:https://leetcode.com/problems/binary-watch/description/ C++: class Solution { public: vector<s ...

  3. Laravel5.1学习笔记23 Eloquent 序列化

    Eloquent: Serialization Introduction Basic Usage Hiding Attributes From JSON Appending Values To JSO ...

  4. CF 334 div.2-D Moodular Arithmetic

    思路: 易知k = 0的时候答案是pp-1,k = 1的时候答案是pp. 当k >= 2的时候,f(0) = 0,对于 1 <= n <= p - 1,如果f(n)确定,由题意可知f ...

  5. WordPress极简主题Small Cat详细介绍

    主题特性: HTML5.CSS3 使用标准语言编写,支持IE10以上浏览器 响应式 在桌面.平板.手机端均以最佳状态显示.也可分享到微信显示哦! 自定义 超过60多个后台自定义设置,让你的站点与众不同 ...

  6. selenium学习第三天,新建一个测试用例(运行失败)。

    今天的意外收获,在找SELENIUM实例的时候,发现一个JS实例,功能各类非常全演示及代码都有,谢谢大神的分享:http://www.miniui.com/demo/#src=datagrid/pag ...

  7. (转)版本管理工具介绍——SVN篇(一)

    http://blog.csdn.net/yerenyuan_pku/article/details/72620101 SVN是何物 SVN是Subversion的简称,是一款集中式的开源版本控制系统 ...

  8. [iOS]查看苹果支持的所有字库

    有时候,在开发的时候,想换个字体更加优雅的显示.但是不知道苹果本身到底支持了那些字体,怎么办? 没关系,打开这个网址:http://iosfonts.com/ 所见即所得,非常方便,而且还表明了从那个 ...

  9. DiscuzX2.5数据库字典 值得学习

    pre_common_admincp_cmenu – 后台菜单收藏表title => ‘菜单名称’url => ‘菜单地址’sort => ’0′ COMMENT ‘菜单类型,备用’ ...

  10. MySql (二)入门语句和基本操作

    mysql的入门语句:查看服务器下的库 show databases; 创建库(数据库被创建后它的名字是不可以更改的) create database 数据库名; 2.1.插看当前所在的库 selec ...