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:
You can run the command with proper logging using:Code:run { crosscheck backup completed before 'sysdate-30'; delete noprompt expired backup completed before 'sysdate-30'; }
For the spooling option, you can create a rman.cmd file as (notice NO 'spool log off'):Code:rman target / log=/tmp/rman.log @/tmp/rman.cmd
And run it as follows:Code:spool log to /tmp/rman.log; run { crosscheck backup completed before 'sysdate-30'; delete noprompt expired backup completed before 'sysdate-30'; }
Code:rman target / @/tmp/rman.cmd




Reply With Quote