If you are testing or working with the Oracle Enterprise Manager, and you are hitting the error-message "Connection to host as user Administrator failed. Bad SQL_SCRIPT at - line 227." when trying to define a backup, your Configuration for the Database has an error. This error means that a file or script in the configured directory can't be found.

The reason is that the database has a wrong not existent oracle-home defined you can check it if you go in the Oracle-Enterprise-Manager Console to "Targets" and choose the Tab "Databases" there choose your Database and press the button "configure". You will see that there is a wrong directory defined. If it can not be changed for any reasons a workaround would be to copy the Oracle home to the directory that the EM expects or define a link to this directory.