Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1531489
  • 博文数量: 341
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 3793
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(341)

文章存档

2021年(72)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

分类: Oracle

2017-02-21 17:50:24

应该是有人用nmap扫描端口呢,不幸的是导致em agent 高cpu。
需要下载patch 18502187,这个补丁不含在12.1.0.3.11的PSU中(这是.3的最后一个PSU,其它的没查),打补丁过程中会自动卸载16087066。
详见EM 12c : Agent Consumes High CPU due to Threads Stuck in "jdbc.driver.NTFConnection.run" "NTFConnection.readFromNetwork" (Doc ID 1474263.1)

详细过程


$ export ORACLE_HOME=/u03/agent/core/12.1.0.3.0
$ $ORACLE_HOME/bin/emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
Agent is Not Running
$ ps -ef|grep java
    root  5308580  6488088   0   Dec 14      - 13:38 /var/opt/tivoli/ep/_jvm/jre/bin/java -Xmx384m -Xminf0.01 -Xmaxf0.4 -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Xbootclasspath/a:/var/opt/tivoli/ep/runtime/core/eclipse/plugins/com.ibm.rcp.base_6.2.1.20091117-1800/rcpbootcp.jar:/var/opt/tivoli/ep/lib/com.ibm.logging.icl_1.1.1.jar:/var/opt/tivoli/ep/lib/jaas2zos.jar:/var/opt/tivoli/ep/lib/jaasmodule.jar:/var/opt/tivoli/ep/lib/lwinative.jar:/var/opt/tivoli/ep/lib/lwinl.jar:/var/opt/tivoli/ep/lib/lwirolemap.jar:/var/opt/tivoli/ep/lib/lwisecurity.jar:/var/opt/tivoli/ep/lib/lwitools.jar:/var/opt/tivoli/ep/lib/passutils.jar:../../runtime/agent/lib/cas-bootcp.jar -Xverify:none -cp eclipse/launch.jar:eclipse/startup.jar:/var/opt/tivoli/ep/runtime/core/eclipse/plugins/com.ibm.rcp.base_6.2.1.20091117-1800/launcher.jar com.ibm.lwi.LaunchLWI
pconsole  8847400  8781954   0   Dec 14      -  9:09 /usr/java5/bin/java -Xmx512m -Xms20m -Xscmx10m -Xshareclasses -Dfile.encoding=UTF-8 -Xbootclasspath/a:/pconsole/lwi/runtime/core/eclipse/plugins/com.ibm.rcp.base_6.2.1.20091117-1800/rcpbootcp.jar:/pconsole/lwi/lib/ISCJaasModule.jar:/pconsole/lwi/lib/com.ibm.logging.icl_1.1.1.jar:/pconsole/lwi/lib/jaas2zos.jar:/pconsole/lwi/lib/jaasmodule.jar:/pconsole/lwi/lib/lwinative.jar:/pconsole/lwi/lib/lwinl.jar:/pconsole/lwi/lib/lwirolemap.jar:/pconsole/lwi/lib/lwisecurity.jar:/pconsole/lwi/lib/lwitools.jar:/pconsole/lwi/lib/passutils.jar -Xverify:none -cp eclipse/launch.jar:eclipse/startup.jar:/pconsole/lwi/runtime/core/eclipse/plugins/com.ibm.rcp.base_6.2.1.20091117-1800/launcher.jar com.ibm.lwi.LaunchLWI
$ pwd
/u01/backup/18502187
$ $ORACLE_HOME/OPatch/opatch apply
Oracle Interim Patch Installer version 11.1.0.12.9
Copyright (c) 2017, Oracle Corporation.  All rights reserved.

Oracle Home       : /u03/agent/core/12.1.0.3.0
Central Inventory : /u01/app/oracle/oraInventory
   from           : /u03/agent/core/12.1.0.3.0/oraInst.loc
OPatch version    : 11.1.0.12.9
OUI version       : 11.1.0.11.0
Log file location : /u03/agent/core/12.1.0.3.0/cfgtoollogs/opatch/18502187_Feb_21_2017_17_28_49/apply2017-02-21_17-28-49PM_1.log

Applying interim patch '18502187' to OH '/u03/agent/core/12.1.0.3.0'
Verifying environment and performing prerequisite checks...
Patch 18502187: Optional component(s) missing : [ oracle.dbjava.jdbc, 11.1.0.7.0 ] 

Conflicts/Supersets for each patch are:

Patch : 18502187

        Bug Superset of 16087066
        Super set bugs are:
        13583799,  6895422
Interim patch 18502187 is a superset of the patch(es) [  16087066 ] in the Oracle Home
OPatch will roll back the subset patches and apply the given patch.
All checks passed.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit for details.
Email address/User Name: 

You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:  y

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u03/agent/core/12.1.0.3.0')

Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Rolling back interim patch '16087066' from OH '/u03/agent/core/12.1.0.3.0'

Patching component oracle.dbjava.ic, 11.1.0.7.0...
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc6.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc6.jar/oracle/jdbc/aq/AQNotificationEvent$EventType.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc6.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc6.jar/oracle/jdbc/aq/AQNotificationEvent.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc6.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc6.jar/oracle/jdbc/dcn/DatabaseChangeEvent$AdditionalEventType.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc6.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc6.jar/oracle/jdbc/dcn/DatabaseChangeEvent$EventType.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc6.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc6.jar/oracle/jdbc/dcn/DatabaseChangeEvent.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc6.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc6.jar/oracle/jdbc/driver/NTFAQEvent.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc6.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc6.jar/oracle/jdbc/driver/NTFConnection.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc6.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc6.jar/oracle/jdbc/driver/NTFDCNEvent.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc6.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc6.jar/oracle/jdbc/driver/NTFManager.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc6.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc6.jar/oracle/jdbc/driver/T4CConnection.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc6.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc6.jar/oracle/jdbc/driver/T4CTTIokpn.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc5.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc5.jar/oracle/jdbc/aq/AQNotificationEvent$EventType.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc5.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc5.jar/oracle/jdbc/aq/AQNotificationEvent.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc5.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc5.jar/oracle/jdbc/dcn/DatabaseChangeEvent$AdditionalEventType.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc5.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc5.jar/oracle/jdbc/dcn/DatabaseChangeEvent$EventType.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc5.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc5.jar/oracle/jdbc/dcn/DatabaseChangeEvent.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc5.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc5.jar/oracle/jdbc/driver/NTFAQEvent.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc5.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc5.jar/oracle/jdbc/driver/NTFConnection.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc5.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc5.jar/oracle/jdbc/driver/NTFDCNEvent.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc5.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc5.jar/oracle/jdbc/driver/NTFManager.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc5.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc5.jar/oracle/jdbc/driver/T4CConnection.class"
Updating jar file "/u03/agent/core/12.1.0.3.0/jdbc/lib/ojdbc5.jar" with "/u03/agent/core/12.1.0.3.0/.patch_storage/16087066_Feb_4_2013_04_52_18/files//jdbc/lib/ojdbc5.jar/oracle/jdbc/driver/T4CTTIokpn.class"
RollbackSession removing interim patch '16087066' from inventory

OPatch back to application of the patch '18502187' after auto-rollback.

Patching component oracle.dbjava.ic, 11.1.0.7.0...

Verifying the update...
Patch 18502187 successfully applied
Log file location: /u03/agent/core/12.1.0.3.0/cfgtoollogs/opatch/18502187_Feb_21_2017_17_28_49/apply2017-02-21_17-28-49PM_1.log

OPatch succeeded.
$ cd  /u03/agent/
$ ls
agent_inst             core                   plugins                plugins.txt.status
agentimage.properties  oneoffs                plugins.txt            sbin
$ cd agent_inst
$ cd sysman
$ cd config
$ ls
OUIinventories.add                  classpath.lst                       emd.properties.bak                  private.properties.bak
autotune.properties                 clientlogging.properties            emd.properties.tzbak                s_jvm_options.opt
b64InternetCertificate.txt          cwallet.sso                         montrust                            server
b64LocalCertificate.txt             emd.properties                      monwallet
b64WLS12xDemoTrustCACert.txt        emd.properties.2015-03-10-10-58-42  nmxc.properties
b64WLSDemoTrustCACert.txt           emd.properties.2015_03_10_11_00_15  private.properties
$ cp s_jvm_options.opt s_jvm_options.opt.bak
$ vi s_jvm_options.opt
"s_jvm_options.opt" 8 lines, 345 characters 
# This file contains static jvm options specific to the jvm shipped on a platform.
# Each option must be in its own line:
# This file cannot contain dynamic properties like max/min heap size etc that can be affected by auto-tuning
-server
-Djava.security.egd=file:///dev/./urandom
-Dsun.lang.ClassLoader.allowArraySyntax=true
-Xgcpolicy:gencon
-XX:ParallelGCThreads=4
-XX:-UseLWPSynchronization
~
~
~
"s_jvm_options.opt" 9 lines, 395 characters 
$ $ORACLE_HOME/OPatch/opatch lsinventory -details | grep 10203435
Patch  10203435     : applied on Sun Jun 23 08:31:35 CST 2013
     10203435
     /u03/agent/core/12.1.0.3.0/inventory/oneoffs/10203435
     /u03/agent/core/12.1.0.3.0/.patch_storage/10203435_Feb_7_2013_18_06_13
$ $ORACLE_HOME/bin/emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
Starting agent .......................... started.
$  $ORACLE_HOME/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 12.1.0.3.0
OMS Version       : 12.1.0.3.0
Protocol Version  : 12.1.0.1.0
Agent Home        : /u03/agent/agent_inst
Agent Binaries    : /u03/agent/core/12.1.0.3.0
Agent Process ID  : 5374162
Parent Process ID : 19791964
Agent URL         :
Repository URL    :
Started at        : 2017-02-21 17:31:50
Started by user   : oracle
Last Reload       : (none)
Last successful upload                       : 2017-02-21 17:32:15
Last attempted upload                        : 2017-02-21 17:32:15
Total Megabytes of XML files uploaded so far : 0.01
Number of XML files pending upload           : 2
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 74.05%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2017-02-21 17:32:08
Last successful heartbeat to OMS             : 2017-02-21 17:32:08
Next scheduled heartbeat to OMS              : 2017-02-21 17:33:08

---------------------------------------------------------------
Agent is Running and Ready
$ $ORACLE_HOME/OPatch/opatch lsinv
Oracle Interim Patch Installer version 11.1.0.12.9
Copyright (c) 2017, Oracle Corporation.  All rights reserved.

Oracle Home       : /u03/agent/core/12.1.0.3.0
Central Inventory : /u01/app/oracle/oraInventory
   from           : /u03/agent/core/12.1.0.3.0/oraInst.loc
OPatch version    : 11.1.0.12.9
OUI version       : 11.1.0.11.0
Log file location : /u03/agent/core/12.1.0.3.0/cfgtoollogs/opatch/opatch2017-02-21_17-32-41PM_1.log

Lsinventory Output file location : /u03/agent/core/12.1.0.3.0/cfgtoollogs/opatch/lsinv/lsinventory2017-02-21_17-32-41PM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1): 

EM Platform (Agent)                                                  12.1.0.3.0
There are 1 products installed in this Oracle Home.

Interim patches (3) :

Patch  18502187     : applied on Tue Feb 21 17:29:09 CST 2017
Unique Patch ID:  17615617
   Created on 6 May 2014, 06:29:08 hrs PST8PDT
   Bugs fixed:
     6895422, 16479818, 18421945, 13583799

Patch  19930706     : applied on Tue Feb 21 15:22:10 CST 2017
Unique Patch ID:  18494312
Patch description:  "EM-AGENT BUNDLE PATCH 12.1.0.3.11"
   Created on 19 Dec 2014, 04:34:56 hrs PST8PDT
   Bugs fixed:
     17073796, 16736989, 17293519, 17164400, 18476937, 17438375, 17872949
     18808236, 17220173, 17934454, 18021456, 17627031, 17784127, 17568149
     16890278, 17579501, 17433479, 17280495, 18158996, 18108877, 17420195
     17628057, 17534755, 17184775, 17998843, 17214597, 17185106, 17704432
     18449370, 17904776, 18294467, 17538100, 17707019, 18348200, 17731541
     16959018, 17002243, 17881707, 18098772, 17797024, 17454539, 17751439
     17589284, 17979766, 17990826, 18277098, 17506428, 19930706, 16312089
     16513768, 17506828, 18043257, 18939087, 17271088, 17995417, 18104218
     16982797, 18613325, 17156527, 18649402, 17560540, 18753189, 17239371, 17973244

Patch  10203435     : applied on Sun Jun 23 08:31:35 CST 2013
Unique Patch ID:  15915936.1
   Created on 7 Feb 2013, 18:06:13 hrs PST8PDT
   Bugs fixed:
     10203435

--------------------------------------------------------------------------------
OPatch succeeded.
阅读(1259) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~