here is a piece of my windows batch file,
rman target 'sys/***** as sysdba' cmdfile='d:\script.cmd' log='d:\log1.log'
now how can i fetch the result of,
SQL>select status from v$rman_backup_job_details to the rman log.
Edited by: Levi Pereira on Jan 17, 2013 11:30 AM
SQL> spool d:\log2.log select status from v$rman_backup_job_details; spool off C:\> type d:\log2.log >> d:\log1.log