Generate New name of backup file
I'm taking a backup of Oracle DB controlfile through script that working file. When I run this script second time it's given error file already exists.
I want to know that how I can make a time stamp of backup file? so every time no need to change the backup file name.
sqlplus /nolog <<@
connect /as sysdba
alter database backup controlfile to '/ora/crs/oracle/product/10/contrlbinary.bk';
sqlplus /nolog <<@
connect /as sysdba
alter database backup controlfile to '/ora/crs/oracle/product/10/contrlbinary.bk';
Regs