Friday, August 7, 2015

Fusion Middleware Home is corrupted (Common Env Script missing or Not executable)!

While running the opatch apply or opatch lsinventory we got below error.

Error :

/app/oracle/middleware/Oracle_SOA1/OPatch/opatch
Fusion Middleware Home is corrupted (Common Env Script missing or Not executable)!
/app/oracle/middleware/Oracle_SOA1/jdk/bin/java is not a valid executable for this platform.
OPatch cannot proceed!


./opatch lsinventory -invPtrLoc ../oraInst.loc
Fusion Middleware Home is corrupted (Common Env Script missing or Not executable)!
/app/oracle/middleware/Oracle_SOA1/jdk/bin/java is not a valid executable for this platform. OPatch cannot proceed!
OPatch returns with error code = 1


Solution :

1. Keep a backup of existing commEnv.sh file 
2. Restore from backup valid commEnv.sh file
3.Change the file permission of commEnv.sh file
4. Execute the opatch commands again to confirm everything works fine.

Thanks,
Arihant