2.3.1 Deciding Which User Should Run Oracle ORAchk or Oracle EXAchk
Run health checks as root
. Also, run health checks as the Oracle Database home owner or the Oracle Grid Infrastructure home owner.
Most health checks do not require root
access. However, you need root
privileges to run a subset of health checks.
To run root
privilege checks, Oracle ORAchk uses the script root_orachk.sh
and Oracle EXAchk uses the script root_exachk.sh
.
By default, the root_orachk.sh
and root_exachk.sh
scripts are created in the $HOME
directory used by Oracle ORAchk and Oracle EXAchk. Change the directory by setting the environment variable RAT_ROOT_SH_DIR
.
export RAT_ROOT_SH_DIR=/mylocation
oracle ALL=(root) NOPASSWD:/mylocation/root_orachk.sh
For security reasons, create the root
scripts outside of the standard temporary directory in a custom directory.
To decide which user to run Oracle ORAchk and Oracle EXAchk:
Parent topic: Configuring Oracle ORAchk and Oracle EXAchk