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.
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".