Tuesday, 16 December 2014

opatch version /bin/java is not a valid executable for this platform. OPatch cannot proceed

[oracle@standby OPatch]$ opatch version
/bin/java is not a valid executable for this platform. OPatch cannot proceed!
OPatch returns with error code = 1

[oracle@standby OPatch]$ cd /usr/bin/j
jade         join         jpegicc      jpegtran     jscal        jv-convert   jwhois
java         jpeg2ktopam  jpegtopnm    jsattach     jstest       jvmjar

[oracle@standby OPatch]$ su -
Password:

[root@standby ~]# ln -s /usr/bin/java /bin/java

[root@standby ~]# exit
logout

[oracle@standby OPatch]$ opatch version
OPatch Version: 11.2.0.3.6

OPatch succeeded.

[oracle@standby OPatch]$