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/

你可能感兴趣的:(Java could not be located. OPatch cannot proceed!.OPatch failed)