Does the PreJob run on the media server or on the Oracle server (if they are different)
If you logon to the appropriate server as the BackupExec service account, does the script file still run OK?
Does the script file rely on mapped drives or search paths? (remember that when the Pre job runs, there is only the default environment, no mapped drives or search paths etc.)