hello
Posting for first time
Actually I have written a shell script to take RMAN backup..
But when I execut it I get an error as
"syntax error: unexpected end of file"
Script:
if [ -n $1 ]; then
echo $1
backup=$1
fi
if [ $1="full" ]; then
rman target / <<ST
run {
allocate channel ch0 type sbt_tape;
backup full database;
release channel ch0;
}
ST
echo backup completed
fi
Can someone please help me out..
Actually m new at shell scripting