Database Administration (MOSC)

MOSC Banner

Can't use 'sudo' to execute oracle commands

edited Jul 31, 2018 6:01PM in Database Administration (MOSC) 6 commentsAnswered ✓

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center