soyizi 发表于 2015-11-9 13:06:56

更新OPatch中OCM报错

         2014年7月14日凌晨,天翼XXX系统打补丁,在更新OPatch的OCM报:
  <span style=&quot;font-size:18px;&quot;>$ ./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=&quot;font-size:18px;&quot;>$ ll
total 12
-rwxr----- 1 oracle oinstall 9063 Nov 272009 emocmrsp*
$ cd
$ vi .bash_profile
$ export JAVA_HOME=$ORACLE_HOME/jdk
$ cd $ORACLE_HOME
$ cd OPatch
$ ls
crs/   emdpatch.pl*ocm/   opatch.bat*opatchdiag.bat*opatch.pl*    oplan/version.txt
docs/jlib/   opatch*opatchdiag*opatch.ini*    opatchprereqs/README.txt
$ cd ocm/
$ ls
bin/lib/ocm_platforms.txt*ocm.zip
$ cd bin/
$ ls
emocmrsp*
$ ./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 (es, o) :y
The OCM configuration response file (ocm.rsp) was successfully created.
$ ls
emocmrsp*ocm.rsp
$ ll
total 16
-rwxr----- 1 oracle oinstall 9063 Nov 272009 emocmrsp*
-rw-r--r-- 1 oracle oinstall623 Jul 15 00:30 ocm.rsp</span>





版权声明:本文为博主原创文章,未经博主允许不得转载。
页: [1]
查看完整版本: 更新OPatch中OCM报错