Scenario:
Patching an Oracle 10g AS environment using opatch utility.
Platform: Windows
Error:
Updating inventory...
OPATCH_JAVA_ERROR : Wrong number of arguments
Files on system are patched but Inventory Update has failed. Please run 'opatch
lsinventory' to check if the patch has been recorded in Inventory.(1)
Verifying patch...
OPATCH_JAVA_ERROR: Wrong number of arguments. VerifyPatch needs ORACLE_HOME, OUI location, patch location, patch ID and path to 'ar' command, no_inventory, OS_ID.
java.lang.Exception: Wrong number of arguments. VerifyPatch needs ORACLE_HOME,OUI location, patch location, patch ID and path to 'ar' command, no_inventory, OS_ID. at opatch.VerifyPatch.main(VerifyPatch.java:803)
Exception in thread "main" Verification of the patch failed.
ERROR: OPatch failed as verification of the patch failed.
OPatch returns with error code = 240
Verification:
The patch application was succesfull, but updating the inventory was not happening.
opatch lsinventory command failed to report the new patch.
Fixing:
The directory location at which the patch was placed had space(" ") in it.
For eg: I staged the patche under "C:\Stage\AS Softwares".
It is advisable to keep patch in a directory with out any space in its name.
I later moved the patch to C:\Stage and extracted it.
Later the patch application was succesfull.
Patching an Oracle 10g AS environment using opatch utility.
Platform: Windows
Error:
Updating inventory...
OPATCH_JAVA_ERROR : Wrong number of arguments
Files on system are patched but Inventory Update has failed. Please run 'opatch
lsinventory' to check if the patch has been recorded in Inventory.(1)
Verifying patch...
OPATCH_JAVA_ERROR: Wrong number of arguments. VerifyPatch needs ORACLE_HOME, OUI location, patch location, patch ID and path to 'ar' command, no_inventory, OS_ID.
java.lang.Exception: Wrong number of arguments. VerifyPatch needs ORACLE_HOME,OUI location, patch location, patch ID and path to 'ar' command, no_inventory, OS_ID. at opatch.VerifyPatch.main(VerifyPatch.java:803)
Exception in thread "main" Verification of the patch failed.
ERROR: OPatch failed as verification of the patch failed.
OPatch returns with error code = 240
Verification:
The patch application was succesfull, but updating the inventory was not happening.
opatch lsinventory command failed to report the new patch.
Fixing:
The directory location at which the patch was placed had space(" ") in it.
For eg: I staged the patche under "C:\Stage\AS Softwares".
It is advisable to keep patch in a directory with out any space in its name.
I later moved the patch to C:\Stage and extracted it.
Later the patch application was succesfull.
No comments:
Post a Comment