Can't use 'sudo' to execute oracle commands
Hello Administrators,
I have granted sudo privilege to user accounts and users are able to execute certain commands, but not all.
+ASM2 > sudo -u oracle crsctl check crsCRS-4638: Oracle High Availability Services is onlineCRS-4537: Cluster Ready Services is onlineCRS-4529: Cluster Synchronization Services is onlineCRS-4533: Event Manager is online+ASM2 > sudo -u oracle asmcmd lsdgASMCMD-00001: ORACLE_HOME environment variable not set
Somehow 'crsctl' works, but when I try to run 'asmcmd' 'm getting the OH not set error. What env setting 'm missing?
Thanks
aBBy
PS: Oracle binaries are 12.2.0.1 and RHEL 7.5