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]$

Comments

Popular posts from this blog

Installing DBMS_JAVA package in Oracle and calling UTL_DBWS web services through Oracle database

stick the job to the specific instance in Oracle RAC

finding fragmentation at table level and tablespace level in Oracle and steps to remove them