Home > ASM, Redhat Administration > Eanble sudo to access 11gR2 ASM instance in redhat

Eanble sudo to access 11gR2 ASM instance in redhat

1. Add the entry below into /etc/sudoers

oracle  ALL=(grid)      NOPASSWD: ALL

2. Testing the

[oracle@wcsvmuatdb01 ~]$ sudo -i -u grid asmcmd ( -i : simulate initial login to read shell configuration files: .profile, bash_profile etc)
ASMCMD> exit
[oracle@wcsvmuatdb01 ~]$ sudo -i -u grid asmcmd ls
ACFSDG1/
DATADG1/
OCRVOTEDG/

 

Advertisements
Categories: ASM, Redhat Administration
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: