Java could not be located. OPatch cannot proceed!.OPatch failed

EBS R12.1.3  ,  opatch
[applgerput@ts02-or ~]$ opatch
Oracle Interim Patch Installer version 1.0.0.0.63
Copyright (c) 2009 Oracle Corporation. All Rights Reserved..
Oracle recommends you to use the latest OPatch version
and read the OPatch documentation available in the OPatch/docs
directory for usage. For information about the latest OPatch and
other support-related issues, refer to document ID 293369.1
available on My Oracle Support ( https://myoraclesupport.oracle.com)
 Usage: opatch [ -h[elp] ] [ -r[eport] ] [ command ]
            command := apply

--------------------------------------------------------------------------
ORACLE 11.2.0.2   , opatch
erp1@mr103-ts:SID=GERPUT> opatch
Invoking OPatch 11.2.0.1.3
Oracle Interim Patch Installer version 11.2.0.1.3
Copyright (c) 2010, Oracle Corporation.  All rights reserved.
Syntax Error... No command specified.
 Usage: opatch [ -help ] [ -r[eport] ] [ command ]

--------------------------------------------------------------------------
opatch不正常,  SOA Suite 11.1.1.6.0  , weblogic 10.3.6 

[oracle@gtsv222-lx OPatch]$ pwd
/data01/oracle/soa_suit/Middleware/oracle_common/OPatch
[oracle@gtsv222-lx OPatch]$ ls
crs  docs  emdpatch.pl  jlib  ocm  opatch  opatch.bat  opatchdiag  opatchdiag.bat  opatch.ini  opatch.pl  opatchprereqs
[oracle@gtsv222-lx OPatch]$ ./opatch
Java could not be located. OPatch cannot proceed!
OPatch returns with error code = 1

解决方法:
ERROR : "Java could not be located. OPatch cannot proceed!.OPatch failed with error code = 1" [ID 417177.1]
Cause
Opatch is not able to find “java”.
 
Solution
Use the “–jre” option to specify location of java.
For example:
$ opatch lsinventory –jre %ORACLE_HOME%\jdk
 
[oracle@gtsv222-lx OPatch]$ ./opatch  -jre  /data01/oracle/jdk1.6.0_32        之后OK 
 
 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-744473/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/35489/viewspace-744473/

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值