For Windows:
C:\test> echo "SUCCESS" > SAMPLE_%date:~0,3%.LOG
C:\test> dir
10/17/2012 01:18 PM 12 SAMPLE_Wed.LOG
C:\test> rman @c:\rman_bkp.sql > c:\rman_bkp%date:~10,4%%date:~7,2%%date:~4,2%.log
For Linux:
rman @/home/oracle/scripts/rman_bkp.sql > /home/oracle/scripts/log/rman`date +%y%m%d`.log
No comments:
Post a Comment