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

 


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


相关文章
|
编解码 Linux 开发工具
ffmpeg的基本用法(下)
ffmpeg的基本用法的下篇来喽!
1218 0
|
SQL 数据采集 存储
基于clickhouse做用户画像,标签圈选
基于clickhouse做用户画像,标签圈选
1456 0
基于clickhouse做用户画像,标签圈选
|
4月前
|
存储 机器学习/深度学习 数据库
阿里云服务器X86/ARM/GPU/裸金属/超算五大架构技术特点、场景适配参考
在云计算技术飞速发展的当下,云计算已经渗透到各个行业,成为企业数字化转型的关键驱动力。选择合适的云服务器架构对于提升业务效率、降低成本至关重要。阿里云提供了多样化的云服务器架构选择,包括X86计算、ARM计算、GPU/FPGA/ASIC、弹性裸金属服务器以及高性能计算等。本文将深入解析这些架构的特点、优势及适用场景,以供大家了解和选择参考。
830 61
|
8月前
|
存储 缓存 运维
“网”罗天下,一键搞定:netsh命令的花式玩法与超实用攻略
`netsh`是Windows系统中强大的网络配置和管理工具,支持本地或远程修改网络设置。常用功能包括:显示和配置网络接口、无线网络管理、防火墙规则设置、网络配置备份与还原、远程管理等。通过`netsh`命令,用户可以轻松管理IP地址、启用/禁用网络接口、添加或删除无线网络配置文件、配置防火墙规则,并进行网络故障排查。掌握这些命令能大幅提升网络管理和维护效率。
802 11
|
10月前
|
存储 架构师 Java
内存溢出原因与解决方案(4大主流方案详解)
本文详解内存溢出(OOM)的原因及解决方案。关注【mikechen的互联网架构】,10年+BAT架构经验倾囊相授。
内存溢出原因与解决方案(4大主流方案详解)
|
SQL 存储 分布式计算
【Hive】Hive优化有哪些?
【4月更文挑战第16天】【Hive】Hive优化有哪些?
|
Web App开发 Linux Android开发
常见浏览器User-Agent大全
下面是工作中需要用到的常见浏览器User-Agent字符串的收集整理,不断更新中。 OperaMozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.
12286 2
|
Ubuntu NoSQL Linux
查看linux操作系统版本:Ubuntu?Centos?还是其他?
查看linux操作系统版本:Ubuntu?Centos?还是其他?
25960 2
查看linux操作系统版本:Ubuntu?Centos?还是其他?
|
存储 前端开发 JavaScript
登录系统及表结构设计
登录系统及表结构设计
1162 0
|
SQL 缓存 安全
Python web 框架对比:Flask vs Django
Python web 框架对比:Flask vs Django