PROBLEM:
While applying patch to binary using opatch utility got below error.
ZOP-51: The patch location is not valid for apply, because it doesn’t have correct metadata, or it points to a patch directory.
Argument(s) Error… Patch location is not valid for apply
Please check the arguments and try again.
OPatch failed with error code 135
SOLUTION:
This error comes, if we are running opatch command from a directory other than patch directory.
So,Make sure we are running the opatch command for patch directory.
unzip p16056266_11203_linux.zip
cd 16056266 – >> current patch directory
./opatch apply
Now it worked successfully, without any error.
This error could be present due to multiple patches and you are using simply apply.
In that case use napply to get rid off this error.
Thanks for response Sujit.
Hello I continue to receive these errors, “opatch” is not recognized as an internal or external command. I am sitting in the d:\Patches directory.
in addition:
ZOP-51: The patch location is not valid for apply, because it doesn’t have correct metadata, or it points to a patch directory.
Argument(s) Error… Patch location is not valid for apply
Please check the arguments and try again.
OPatch failed with error code = 135
Dear Larry,
You need to unzip the patch you downloaded and run opatch command from that patch location. like this.
unzip p16056266_11203_linux.zip
cd 16056266 – >> current patch directory
So your case it should be inside D:/patch/16056266 – > something like this.