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. yii int

    @echo off rem ------------------------------------------------------------- rem Yii command line ini ...

  2. java 键盘输入多种方法

    转! 分类: java学习2012-11-04 09:58 8427人阅读 评论(1) 收藏 举报 一.java不像C中拥有scanf这样功能强大的函数,大多是通过定义输入输出流对象.常用的类有Buf ...

  3. 【转】MySQL常见的运算符及使用

    转自:http://www.linuxidc.com/Linux/2016-03/129672.htm MySQL中有4类运算符,它们是: 算术运算符 比较运算符 逻辑运算符 位操作运算符 算术操作符 ...

  4. Integer / BigInteger / BigDecimal 方法

    import java.math.BigDecimal; import java.math.*; public class Main{ public static void main(String[] ...

  5. ARP劫持处理指令集

    第一组(据传xp有效,未实验) arp -a arp -d arp -s IP地址 MAC地址 第二组(windows2008R2有效,已实验) netsh i i show in (记住其中本地连接 ...

  6. jQuery之基本选择器Practice

    一.在输入框中输入数字,点击按钮,实现对应事件的功能. html代码: <input id="txt1" type="text" value=" ...

  7. Java 基础入门随笔(10) JavaSE版——单例设计模式

    设计模式:对问题行之有效的解决方式.其实它是一种思想. 1.单例设计模式. 解决的问题:就是可以保证一个类在内存中的对象唯一性.(单个实例) 使用单例设计模式需求:必须对于多个程序使用同一个配置信息对 ...

  8. OpenTSDB监控

    OpenTSDB监控

  9. 弹性分布式数据集(RDD)

    spark围绕弹性分布式数据集(RDD)的概念展开的,RDD是一个可以并行操作的容错集合. 创建RDD的方法: 1.并行化集合(并行化驱动程序中现有的集合) 调用SparkContext的parall ...

  10. 题解 洛谷P1501/BZOJ2631【[国家集训队]Tree II】

    Link-Cut-Tree 的懒标记下传正确食用方法. 我们来逐步分析每一个操作. 1:+ u v c:将u到v的路径上的点的权值都加上自然数c; 解决方法: 很显然,我们可以 split(u,v) ...