Thanks for posting back your results.
Not exactly sure how you are executing the RMAN script, but two examples to get logging to occur are as follows:
If you have a file called rman.cmd as:
Code:
run {
crosscheck backup completed before 'sysdate-30';
delete noprompt expired backup completed before 'sysdate-30';
}
You can run the command with proper logging using:
Code:
rman target / log=/tmp/rman.log @/tmp/rman.cmd
For the spooling option, you can create a rman.cmd file as (notice NO 'spool log off'):
Code:
spool log to /tmp/rman.log;
run {
crosscheck backup completed before 'sysdate-30';
delete noprompt expired backup completed before 'sysdate-30';
}
And run it as follows:
Code:
rman target / @/tmp/rman.cmd