Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Add date to backup controlfile to trace command

623368Mar 23 2009 — edited Mar 24 2009
A little background:
I'm writting a rman script and want to include a controlfile to trace and a pfile.

The commands I'm using are:
alter database backup controlfile to trace as 'd:\oracle\backup\controlfile.bak';
create pfile='d:\oracle\backup\pfile.bak' from spfile;

However, I want the file to be controlfile.bak.theDate, ie controlfile.bak.20090323, as I want to keep so many days worth and not overwrite the file.
How can I add the date in this way?

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 21 2009
Added on Mar 23 2009
3 comments
1,602 views