Monday, October 15, 2012

[OEM12c] Agent Initialization Error "stty: standard input: Invalid argument"

If you are trying to add an host target to you Oracle Enterprise Manager 12c Release 2 and in the Initialization stage appears an error containing the message "stty: standard input: Invalid argument", then you will have to check for stty lines on the files .bashrc.

To avoid this problem modify these files to suppress all output on STDERR:
if [ -t 0 ]; then
   stty intr ^C
fi
Another alternative is to comment the lines containing the stty command.

After that Retry the agent deployment process. Problem solved!