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

tolywang發表於2012-09-20
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 ()
 Usage: opatch [ -h[elp] ] [ -r[eport] ] [ command ]
            command := apply

--------------------------------------------------------------------------
ORACLE 11.2.0.2   , opatch
> 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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章