10.2.0.5啓動enterprise manager

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

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

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  應用補丁

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_13-55-51PM.log

Patch history file: /oracle/db/cfgtoollogs/opatch/opatch_history.txt

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 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 Session completed with warnings.

OPatch completed with warnings.

$ /oracle/crs/OPatch/opatch lsinventory 查看oem軟件實用情況

emctl start dbconsole        再次啓動服務

端口被打開進入網頁查看

https://IP:1158/em/console/aboutApplication

150325986.png

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章