10.2.0.5啟動enterprise manager
OEM作為一個實用工具,随着10g和11g的普及,OEM功能越來越強大,oem也應用越來越廣泛。但是如果是10.2.0.5的版本,并且安裝時間在2010年1月之後,可能會遇到OEM無法啟動的情況,這是應該實用更新檔包8350262,進行修複,具體我們來看一下。
# su - oracle
$ emctl start dbconsole 啟動OEM
Oracle Enterprise Manager 10g Database Control Release 10.2.0.5.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
https://ipapdb1:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ............................................................................................. failed.
------------------------------------------------------------------
Logs are generated in directory /oracle/db/ipapdb2_ipapweb2/sysman/log
$ /oracle/crs/OPatch/opatch lsinventory 檢視oem軟體實用情況,可以看到沒有對應的patch包被使用
Invoking OPatch 10.2.0.4.9
Oracle Interim Patch Installer version 10.2.0.4.9
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/db
Central Inventory : /oracle/oraInventory
from : /etc/oraInst.loc
OPatch version : 10.2.0.4.9
OUI version : 10.2.0.5.0
OUI location : /oracle/db/oui
Log file location : /oracle/db/cfgtoollogs/opatch/opatch2013-11-21_12-33-57PM.log
Patch history file: /oracle/db/cfgtoollogs/opatch/opatch_history.txt
Lsinventory Output file location : /oracle/db/cfgtoollogs/opatch/lsinv/lsinventory2013-11-21_12-33-57PM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (2):
Oracle Database 10g 10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 4 10.2.0.5.0
There are 2 products installed in this Oracle Home.
There are no Interim patches installed in this Oracle Home.
Rac system comprising of multiple nodes
Local node = ipapdb1
Remote node = ipapdb2
OPatch succeeded.
$ emctl stop dbconsole 停止oem
Stopping Oracle Enterprise Manager 10g Database Control ...
... Stopped.
$ ls
crs emdpatch.pl ocm opatch.ini opatchprereqs
docs jlib opatch opatch.pl p8350262_10205_Generic.zip
上傳更新檔包到/oracle/crs/OPatch安裝叢集OEM,上傳到/oracle/db/OPatch則安裝單機OEM,然後解壓安裝即可。
$ unzip p8350262_10205_Generic.zip解壓更新檔檔案
Archive: p8350262_10205_Generic.zip
creating: 8350262/
inflating: 8350262/killDBConsole
creating: 8350262/files/
creating: 8350262/files/sysman/
creating: 8350262/files/sysman/jlib/
creating: 8350262/files/sysman/jlib/emCORE.jar/
creating: 8350262/files/sysman/jlib/emCORE.jar/oracle/
creating: 8350262/files/sysman/jlib/emCORE.jar/oracle/sysman/
creating: 8350262/files/sysman/jlib/emCORE.jar/oracle/sysman/eml/
creating: 8350262/files/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/
creating: 8350262/files/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/fsc/
inflating: 8350262/files/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/fsc/FSWalletUtil.class
creating: 8350262/files/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/util/
inflating: 8350262/files/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/util/RootCert.class
inflating: 8350262/files/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/util/SecConstants.class
creating: 8350262/files/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/rep/
inflating: 8350262/files/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/rep/RepWalletUtil.class
creating: 8350262/files/sysman/jlib/emd_java.jar/
creating: 8350262/files/sysman/jlib/emd_java.jar/oracle/
creating: 8350262/files/sysman/jlib/emd_java.jar/oracle/sysman/
creating: 8350262/files/sysman/jlib/emd_java.jar/oracle/sysman/eml/
creating: 8350262/files/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/
creating: 8350262/files/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/fsc/
inflating: 8350262/files/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/fsc/FSWalletUtil.class
creating: 8350262/files/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/util/
inflating: 8350262/files/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/util/RootCert.class
inflating: 8350262/files/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/util/SecConstants.class
creating: 8350262/files/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/rep/
inflating: 8350262/files/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/rep/RepWalletUtil.class
inflating: 8350262/killDBConsole.pl
inflating: 8350262/README.txt
creating: 8350262/etc/
creating: 8350262/etc/xml/
inflating: 8350262/etc/xml/ShiphomeDirectoryStructure.xml
inflating: 8350262/etc/xml/GenericActions.xml
creating: 8350262/etc/config/
inflating: 8350262/etc/config/inventory
inflating: 8350262/etc/config/actions
inflating: ?Ζ拖屍-??txt
$cd 8350262 進入更新檔目錄
$ ./killDBConsole 確定OEM程序是關閉的
ORACLE_HOME=/oracle/db
ORACLE_SID=ipapweb2
State directory = /oracle/db/ipapdb2_ipapweb2
WatchDog is already stopped
DBConsole is already stopped
EMAgent is already stopped
$ /oracle/crs/OPatch/opatch apply 應用更新檔
Log file location : /oracle/db/cfgtoollogs/opatch/opatch2013-11-21_13-55-51PM.log
ApplySession applying interim patch '8350262' to OH '/oracle/db'
Running prerequisite checks...
OPatch detected the node list and the local node from the inventory. OPatch will patch the local system then propagate the patch to the remote nodes.
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '8350262' for restore. This might take a while...
Backing up files affected by the patch '8350262' for rollback. This might take a while...
Patching component oracle.sysman.agent.core, 10.2.0.5.0a...
Updating jar file "/oracle/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/fsc/FSWalletUtil.class"
Updating jar file "/oracle/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/rep/RepWalletUtil.class"
Updating jar file "/oracle/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/util/RootCert.class"
Updating jar file "/oracle/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/util/SecConstants.class"
Updating jar file "/oracle/db/sysman/jlib/emd_java.jar" with "/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/fsc/FSWalletUtil.class"
Updating jar file "/oracle/db/sysman/jlib/emd_java.jar" with "/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/rep/RepWalletUtil.class"
Updating jar file "/oracle/db/sysman/jlib/emd_java.jar" with "/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/util/RootCert.class"
Updating jar file "/oracle/db/sysman/jlib/emd_java.jar" with "/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/util/SecConstants.class"
ApplySession adding interim patch '8350262' to inventory
Verifying the update...
Inventory check OK: Patch ID 8350262 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 8350262 are present in Oracle Home.
Patching in rolling mode.
Updating nodes 'ipapdb2'
Apply-related files are:
FP = "/oracle/db/.patch_storage/8350262_Sep_13_2010_14_09_12/rac/copy_files.txt"
DP = "/oracle/db/.patch_storage/8350262_Sep_13_2010_14_09_12/rac/copy_dirs.txt"
MP = "/oracle/db/.patch_storage/8350262_Sep_13_2010_14_09_12/rac/make_cmds.txt"
RC = "/oracle/db/.patch_storage/8350262_Sep_13_2010_14_09_12/rac/remote_cmds.txt"
Instantiating the file
OPatch failed to copy directories to remote nodes 'ipapdb2' . Detail: Error while copying files inside directory '/oracle/db' based on listed file '/oracle/db/.patch_storage/8350262_Sep_13_2010_14_09_12/rac/copy_dirs.txt.instantiated' with excludeListFile 'null' to nodes 'ipapdb2'. [PRKC-1078 : Failed to transfer directories listed in "/oracle/db/.patch_storage/8350262_Sep_13_2010_14_09_12/rac/copy_dirs.txt.instantiated" to any of the given nodes "ipapdb2 ":
Error on node ipapdb2:PRKC-1044 : Failed to check remote command execution setup for node ipapdb2 using shells /usr/bin/ssh and /usr/bin/rsh
rshd: 0826-813 Permission is denied.]
OPatch failed to copy directories to remote nodes 'ipapdb2' .
Do you want to proceed? [y|n]
Y 确認一下
User Responded with: Y
The following warnings have occurred during OPatch execution:
1) OUI-67188:
OPatch Session completed with warnings.
OPatch completed with warnings.
$ /oracle/crs/OPatch/opatch lsinventory 檢視oem軟體實用情況
$ emctl start dbconsole 再次啟動服務
端口被打開進入網頁檢視
https://IP:1158/em/console/aboutApplication
<a href="http://blog.51cto.com/attachment/201311/150325986.png"></a>
本文轉自zsaisai 51CTO部落格,原文連結:http://blog.51cto.com/3402313/1330054