Sunday, July 18, 2010

java.lang.NoClassDefFoundError: OsInfo

After upgrading to following error could be seen when using opatch.
/opt/app/oracle/product/10.2.0/ent/OPatch/opatch version
Exception in thread "main" java.lang.NoClassDefFoundError: OsInfo
Invoking OPatch

OPatch Version:

OPatch succeeded.
Believe this is due to missing OsInfo class in the opatch binaries bundled with upgrade software.
Download the latest opatch from metalink and unzip into affected oracle home and error should disappear.