ba6.us - Dave's Database Related Stuff

  • home
  • blog
  • notebooks
  • projects
  • recent
  • about
  • manifesto
  • !
Home › Blogs › dmann's blog

Tag Cloud

apex Application Express Auditing data dbi development export funnies HTML Java linux monitoring oem oracle performance perl rman scripting sql SQL Developer sqlplus tuning unix windows
more tags

Search

RSS Feed

Blog Posts :

Navigation

  • Feed aggregator

User login

  • Request new password

Stupid RMAN tricks...

dmann — Wed, 11/14/2007 - 18:03

So I've mentioned before about the replication product that we use that is based on Archived Redo Logs. Well sometimes the replication process abends before the RMAN backup. Since there is no communication between the two processes, RMAN happily removes archived logs that the replication process might need the next time it starts up. Because of this we usually like to keep a few hours worth of archived logs hanging around. Does this suck up disk space? Yes. Is it worth it sacrifice some disk space in order to save us some DBA time? Absolutely. If we leave some extra logs on disk then we can restart the process and don't have to figure out which logs are missing, fire up RMAN, restore the logs, and wait for RMAN to serve them up. Given that you have RMAN configured to only backup Archived Log copies once:
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
Then you can get this done in 2 steps. Step 1: Backup Archived Logs without Deleting Them
BACKUP ARCHIVELOG ALL
Step 2: Then run a 2nd command to back up logs up until (SYSDATE-1) and then delete the input. Since we just ran a BACKUP ARCHIVELOG ALL and BACKUP COPIES = 1, it will basically skip the backup part and just delete them.
BACKUP ARCHIVELOG UNTIL TIME 'SYSDATE -1' DELETE ALL INPUT 
-- Dave
  • oracle
  • rman
  • dmann's blog

Post new comment

The content of this field is kept private and will not be shown publicly.
Input format
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
11 + 6 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.


Cornify
  • home
  • blog
  • notebooks
  • projects
  • recent
  • about
  • manifesto
  • !

Content Copyright 2006-2010. Links are copyright of respective owners.