How to SUDO from Grid
This was originally posted on the Database thread.
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, when we "sudo Oracle" to run the jobs, we 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=
I am testing a simple script scheduled on GRID to do a list: 'ls -l'. The user Grid is running the script from GRID Control and has to 'su oracle' to execute the script own by Oracle on the server.
Thanks