更新OPatch中OCM报错

       2014年7月14日凌晨,天翼XXX系统打补丁,在更新OPatch的OCM报:

<span style="font-size:18px;">[oracle@db2 bin]$ ./emocmrsp 
JAVA_HOME does not contain java.
JAVA_HOME does not contain a valid JDK/JRE.
Redefine JAVA_HOME to refer to a JDK/JRE 1.2.2 or greater.</span>

      处理的办法:

<span style="font-size:18px;">[oracle@db2 bin]$ ll
total 12
-rwxr----- 1 oracle oinstall 9063 Nov 27  2009 emocmrsp*
[oracle@db2 bin]$ cd
[oracle@db2 ~]$ vi .bash_profile 
[oracle@db2 ~]$ export JAVA_HOME=$ORACLE_HOME/jdk
[oracle@db2 ~]$ cd $ORACLE_HOME
[oracle@db2 dbhome_1]$ cd OPatch
[oracle@db2 OPatch]$ ls
crs/   emdpatch.pl*  ocm/     opatch.bat*  opatchdiag.bat*  opatch.pl*	    oplan/	version.txt
docs/  jlib/	     opatch*  opatchdiag*  opatch.ini*	    opatchprereqs/  README.txt
[oracle@db2 OPatch]$ cd ocm/
[oracle@db2 ocm]$ ls
bin/  lib/  ocm_platforms.txt*	ocm.zip
[oracle@db2 ocm]$ cd bin/
[oracle@db2 bin]$ ls
emocmrsp*
[oracle@db2 bin]$ ./emocmrsp 
OCM Installation Response Generator 10.3.4.0.0 - Production
Copyright (c) 2005, 2010, Oracle and/or its affiliates.  All rights reserved.

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 http://www.oracle.com/support/policies.html 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
The OCM configuration response file (ocm.rsp) was successfully created.
[oracle@db2 bin]$ ls
emocmrsp*  ocm.rsp
[oracle@db2 bin]$ ll
total 16
-rwxr----- 1 oracle oinstall 9063 Nov 27  2009 emocmrsp*
-rw-r--r-- 1 oracle oinstall  623 Jul 15 00:30 ocm.rsp</span>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值