10.2.0.5启动enterprise manager

  1. 云栖社区>
  2. 博客>
  3. 正文

10.2.0.5启动enterprise manager

科技小能手 2017-11-14 03:17:00 浏览520
展开阅读全文

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

 


本文转自zsaisai 51CTO博客,原文链接:http://blog.51cto.com/3402313/1330054


网友评论

登录后评论
0/500
评论
科技小能手
+ 关注