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
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
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.
4. Execute the opatch commands again to confirm everything works fine.
Thanks,
Arihant
I am very glad to thank you for such kind of rich and informative blog.i really enjoyed while reading your ideas.
ReplyDeleteLoadrunner Training in Chennai
JAVA Training in Chennai
Hadoop Training in Chennai
Selenium Training in Chennai
German Classes in chennai
SEO Training in Chennai
Selenium Training in OMR