When installing the Performance Analysis agent, got the error message:
Failed to install the Performance Analysis agent.
Please validate that the current logged-in OS user account has WRITE
privileges on directory:
All components in a directory path name must have write access.
Directory permissions are sometimes misunderstood.
It is not sufficient just to have write access to lower directories in a directory path. For example, to write to /topdir/subdir/target, write access must be given to topdir, subdir and target. Just having write access to target will not be sufficient.
When installing PA, make sure each level in the directory path name has write access, including the top level directory.
If the directory is already owned by the Oracle software owner (usually user oracle group dba), then chmod ug+w <directory> is sufficient to give write to the oracle user and dba group.
If the directory is not owned by the Oracle software owner, then it might need chmod a+w in order to give sufficient write access.
Also, it is possible to see this message when trying to install over a failed collector install attempt. If the directory named in the message already exists due to a failed installation attempt, remove the failed install path (see SOL44712) and try the installation again.