opatchauto Patch Location not valid

I was patching an Oracle ASM grid oracle db standalone infrastructure and ran across the error with opatchauto “Patch Location not valid”.
The unix accounts, grid, oracle and root need read to the entire directory structure containing the patch.
you can do this as root, and I believe oracle or grid

mkdir /patches
cp p22191676*.zip /patches
unzip p22191676*.zip
chmod -R 777 /patches
./opatchauto apply /patches/22191676 -ocmrf /tmp/file.rsp

Note I added 777 – as root and oracle/grid are not in the same groups – change it back to something less open after running opatchauto.
fixed the issue for me.
The syntax for opatchauto from Oracle’s documentation is:
The OPatchauto commands are run from the product home out of the standard OPatch directory as the user root.  This implies – that root – and the Oracle users that own the product (usually oracle or grid) must have read and write access to the patch directory as specified above.
$PRODUCT_HOME/OPatch/OPatchauto apply <PATH_TO_PATCH_DIRECTORY> -ocmrf <path/responseFileName>
See the Oracle documentation for the command to create the response file.
Hope this helps, Mike

Leave a Comment

Scroll to Top