My script is not running

I have wriiten the following scripts in UNIX. The file name is bk.ksh

rman target=/ << EOF
RUN {
SHUTDOWN IMMEDIATE
STARTUP MOUNT
ALLOCATE CHANNEL ch1 device TYPE
DISK FORMAT '/u01/oradata/ora/%U';
BACKUP DATABASE PLUS ARCHIVELOG;
SQL'ALTER DATABASE OPEN'
;}

EXIT;
EOF
when i try to run by chmod u+x /u01/oradata/ora/bk.ksh, i cant see if it ran successfully or not. i go to /u01/oradata/ora directory to see if the above scripts generated any output, i dont see nothing. How i can find out why my script is not running? Why it does not generated any output? Is there any way in UNIX to find out the mistakes? Please help.

Please help guys. I am new in UNIX.

At the top of your script put this in:

set -x

This will help you debug.

Don't bump your thread up like that. It often takes hours or days to get a response. If you need immediate response, hire an expert.

chmod only sets the permission bit so it could be run. To run it you would then type:
./bk.ksh

If your interactive shell is ksh as well, it might work, but the first line really should be something like:
#! /usr/bin/ksh

but your path to ksh may be different. "which ksh" should show you the path if you don't know it. And if you have any further questions, post your version of unix which you can find with "uname -a".

I am sorry dude. I am apologized for that.

$ uname-a
Sun os devdb 5.10 generic_125100-10 sun4U SUNW, SUN -FIRE-V445

Will i put this in allway top or after starting with <<EOF command?

when i try to run the program it says not found
$ chmod u+x /u01/oradata/u.ksh
$ ./u.ksh

It says not found.

Use the path of the script
/u01/oradata/u.ksh
if you cd to /u01/oradata, then
.
would be the path.