![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
8.1.6, NT, with catalog 1. Is there a way to add the current date to the backup file or is there a way to derive the date from the value of %t? |
|
2. How do you delete the obsolete backup file (backupset) automatically? Say I do a full backup to disk daily. I only want to keep the past 7 days backupset. I did not find a commend which allows me to delete backupset that are older than 7 days. For archivelog file I can issue "change archivelog until time='sysdate-7' delete;" but not the backupset. |
|
Thanks |
#2
| |||
| |||
|
|
Sure you can report the obsolete but how do you delete them automatically? |
#3
| |||
| |||
|
|
8.1.6, NT, with catalog 1. Is there a way to add the current date to the backup file or is there a way to derive the date from the value of %t? 2. How do you delete the obsolete backup file (backupset) automatically? Say I do a full backup to disk daily. I only want to keep the past 7 days backupset. I did not find a commend which allows me to delete backupset that are older than 7 days. For archivelog file I can issue "change archivelog until time='sysdate-7' delete;" but not the backupset. Thanks |
#4
| |||
| |||
|
|
Sure you can report the obsolete but how do you delete them automatically? |
|
2. How do you delete the obsolete backup file (backupset) automatically? Say I do a full backup to disk daily. I only want to keep the past 7 days backupset. I did not find a commend which allows me to delete backupset that are older than 7 days. For archivelog file I can issue "change archivelog until time='sysdate-7' delete;" but not the backupset. |
#5
| |||
| |||
|
|
Have a look at the following files: $ORACLE_HOME/rdbms/demo/rman1.sh $ORACLE_HOME/rdbms/demo/rman2.sh HTH, Brian |
#6
| |||
| |||
|
|
Brian Peasland <oracle_dba (AT) remove_spam (DOT) peasland.com> wrote Have a look at the following files: $ORACLE_HOME/rdbms/demo/rman1.sh $ORACLE_HOME/rdbms/demo/rman2.sh HTH, Brian You would think Oracle should have the command available to delete the backuppiece instead of making us to build it on the fly. Not everyone is running on Unix. Window DOS scripting does not take "<<" command if I am not mistaken. |
#7
| |||
| |||
|
|
bcjm wrote: Brian Peasland <oracle_dba (AT) remove_spam (DOT) peasland.com> wrote Have a look at the following files: $ORACLE_HOME/rdbms/demo/rman1.sh $ORACLE_HOME/rdbms/demo/rman2.sh HTH, Brian You would think Oracle should have the command available to delete the backuppiece instead of making us to build it on the fly. Not everyone is running on Unix. Window DOS scripting does not take "<<" command if I am not mistaken. You're right. That's why in 9i, Oracle added the command DELETE OBSOLETE to rman. You only need to use the above scripts in 8i, not 9i. Cheers, Dave |
#8
| |||
| |||
|
|
On Wed, 25 Jun 2003 20:41:59 GMT, Brian Peasland oracle_dba (AT) remove_spam (DOT) peasland.com> wrote: Personally, I wish that they'd just let me remove stuff that is 90 days or older. And why do I have to perform a crosscheck? Shouldn't I have to power to just remove a backup set if I deem it is no longer necessary? I'm not sure whether I want to be capable to go back and roll forward for 90 days for the databases I am using RMAN on. That would pose a real disaster as all databases are interrelated *on application* level, and I would be forced to roll forward 8 databases for 90 days. I think for most purposes 30 days is fine, and requiring to go back longer is just for people who want their DBAs to retire. Sybrand Bakker, Senior Oracle DBA To reply remove -verwijderdit from my e-mail address |
![]() |
| Thread Tools | |
| Display Modes | |
| |