DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: How to sudo in GRID Control

  1. #1
    Join Date
    Oct 2007
    Posts
    37

    How to sudo in GRID Control

    I'm running Oracle database 11.2.0.2.5 on Linux Redhat 2.6.18-x86-64

    We have a user, Grid for the Oracle GRID Control and our daily jobs are scheduled on the GRID Control. But the scripts, owned by Oracle are on the servers and we want to run the jobs as Oracle.

    On the GRID Control, we "sudo Oracle" to run the jobs but get the below error. I need your input on how to resolve this and perhaps, to set up sudo on GRID.

    stty: : Invalid argument
    stty: : Invalid argument
    Must be attached to terminal for 'am I' option
    DISPLAY=

    Thanks,

    Lucky

  2. #2
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,492

    Wink

    You should set up "preferred credentials" for that host for the "oracle" account.

    Top right hand menu -> Preferences -> Preferred Credentials
    "The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb

  3. #3
    Join Date
    Oct 2007
    Posts
    37
    I reset the PAM_Tally for the user Oracle on the server and then update the SUDO on Grid:

    Setup>Manage Privilege Delegation Setings>Edit>SUDO>add this line: '/usr/local/bin/sudo su - %RUNAS%'

    The jobs are running flawlessly.


    Thanks for your help!
    Last edited by Lucky A; 02-14-2012 at 03:18 PM. Reason: Solution was found

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width