Data Guard tips and tricks

If you don’t know about Data Guard, it is something that everyone should know about. A few tips and tricks from the session

  1. network bandwidth is important. There are a bunch of tuning metrics that can be done at the TCP layer level
  2. low latency, low problems. high latency, problems start to creep in.
  3. async redo transport – no async buffer to fill up. LNS can fall behind and will go into archive log if it is too slow.
  4. gap resolution – increase the number of arch processes from 2 to 4. Also use MAX_CONNECTIONS to 2. this reduces the overall time needed to resolve a gap by transferring an archive log using multiple processes.
  5. if the gap between primary and physical gets very large, use incremental backup to speed up gap resolution. Stop redo apply process, determine the current SCN of physical, take incremental backup of primary, catalog and recovery the incremental to physical, restart redo.
  6. automate archive log management. move backups to a physical standby. use RMAN to setup the archive log retention. requires flash recovery area on all databases
  7. this is slightly different for SQL apply. For 10.1, it required a manual purge applied to archive logs. For 10R2 they are automatic. This can be disabled on 10R2 but why?

switchover

  • multiple standby configurations is not that difficult and works well. It is recommended to define standby machines on the standby just incase it becomes the primary.This does require more redo being shipped between systems.
  • switchover stops all xactions and the redo log is drained. Once the log is cleared, the switchover will happen. You can make a physical standby in a logical switchover reinitiate itself as a physical standby but this is a manual process.
  • always try to failover to your physical standby. If you must switchover to a logical, use flashback to recovery primary and process redo logs to bring it back in sync.
  • switchover should not take more than a few minutes. you can speed this up by using real time apply.
  • in 10r2, DB_ROLE_CHANGE can fire a trigger when roles change

If I want to run a report on a standby I can suspend redo apply, flash back the database to a point in time, and run the report. This will allow you to write data to the database then flush the changed when you flash it back to a restore point and turn on the redo apply.

Like I said, there is a good reason to understand Data Guard. It is a very powerful tool that allows you to offload your production server and have a live standby backup of your system.

8,264 thoughts on “Data Guard tips and tricks”

  1. I wanted to write down a brief note in order to appreciate you for the pleasant tricks you are sharing on this site. My rather long internet lookup has now been honored with wonderful facts and strategies to exchange with my friends and classmates. I ‘d claim that we site visitors are undeniably blessed to live in a wonderful community with very many wonderful people with good tips. I feel very privileged to have seen your website page and look forward to many more thrilling moments reading here. Thanks a lot again for everything.

  2. My spouse and i were absolutely excited Jordan managed to round up his web research because of the precious recommendations he obtained when using the web site. It is now and again perplexing to simply find yourself making a gift of instructions a number of people could have been selling. We discover we have got the writer to appreciate for this. Most of the illustrations you’ve made, the simple site navigation, the friendships your site give support to foster – it is most unbelievable, and it is letting our son and the family believe that this content is brilliant, which is extremely vital. Thank you for everything!

  3. I must show thanks to the writer for rescuing me from this matter. As a result of researching through the search engines and coming across tips which are not pleasant, I figured my life was over. Living without the presence of solutions to the difficulties you have sorted out all through this blog post is a crucial case, and the kind which may have in a negative way affected my entire career if I had not noticed the website. Your main skills and kindness in maneuvering every part was precious. I’m not sure what I would’ve done if I hadn’t discovered such a stuff like this. I can also now look forward to my future. Thank you very much for your skilled and sensible help. I will not be reluctant to endorse your blog post to anyone who would need guidance on this situation.

  4. A lot of thanks for your entire effort on this blog. Kate take interest in setting aside time for investigations and it’s obvious why. A lot of people notice all concerning the dynamic means you provide efficient tips and hints via your website and as well attract contribution from other ones on this concern plus my child is really understanding a whole lot. Have fun with the remaining portion of the new year. You are conducting a wonderful job.

  5. I together with my buddies were studying the excellent tactics on your site and then immediately developed a horrible feeling I never expressed respect to the web blog owner for those strategies. Most of the young men are already for this reason joyful to read through all of them and have in actuality been loving these things. Appreciation for indeed being considerably thoughtful and for making a choice on certain essential subject matter millions of individuals are really desirous to be informed on. Our sincere apologies for not expressing appreciation to you earlier.

  6. Thank you so much for giving everyone an exceptionally wonderful opportunity to read from this blog. It’s usually so fantastic and also jam-packed with a lot of fun for me and my office friends to visit your website at minimum 3 times weekly to read the new guides you have got. Not to mention, I’m just actually happy with your cool tips served by you. Some 2 points on this page are unquestionably the simplest we have ever had.

  7. I really wanted to develop a simple message to be able to appreciate you for the stunning secrets you are sharing at this website. My long internet investigation has finally been rewarded with reasonable information to write about with my close friends. I would repeat that most of us site visitors are definitely blessed to live in a fine community with many lovely individuals with valuable suggestions. I feel really grateful to have come across your entire site and look forward to so many more excellent minutes reading here. Thanks again for a lot of things.

  8. I precisely had to thank you very much once again. I do not know the things that I might have accomplished without these ideas contributed by you about such topic. Entirely was a real distressing crisis in my opinion, nevertheless encountering your specialised style you processed it forced me to leap for delight. Extremely happy for your work and in addition sincerely hope you really know what a powerful job your are doing educating most people using your website. More than likely you haven’t come across all of us.

  9. My spouse and i were now fulfilled Ervin could finish off his investigation through your ideas he gained when using the site. It is now and again perplexing just to possibly be giving away instructions that other people could have been trying to sell. And we consider we need the website owner to give thanks to for that. The most important explanations you’ve made, the simple web site navigation, the friendships your site assist to instill – it is all incredible, and it’s assisting our son and the family feel that that issue is satisfying, which is very serious. Many thanks for everything!

  10. I am commenting to make you know of the great discovery my cousin’s girl enjoyed using yuor web blog. She picked up such a lot of details, including what it is like to possess a great giving spirit to get others without difficulty learn several grueling things. You really exceeded people’s expected results. I appreciate you for distributing those insightful, safe, educational not to mention cool tips on your topic to Lizeth.

  11. Thank you a lot for providing individuals with an exceptionally breathtaking opportunity to read from this web site. It is usually very ideal and jam-packed with a lot of fun for me personally and my office colleagues to visit your blog the equivalent of three times a week to read through the fresh guides you have got. And definitely, I’m just certainly motivated for the tremendous things you give. Certain 4 tips in this article are surely the most beneficial I have ever had.

  12. I actually wanted to write a brief remark to be able to say thanks to you for these amazing instructions you are showing here. My incredibly long internet investigation has at the end of the day been recognized with beneficial content to go over with my relatives. I ‘d declare that many of us site visitors actually are undeniably lucky to live in a fantastic community with many awesome professionals with interesting tactics. I feel pretty grateful to have discovered your entire webpages and look forward to many more awesome times reading here. Thank you once again for a lot of things.

  13. I precisely wished to appreciate you again. I do not know the things that I would have undertaken without these strategies contributed by you about my topic. It absolutely was a very horrifying situation for me personally, nevertheless being able to see your skilled approach you treated it forced me to jump over happiness. Now i’m grateful for the help and wish you recognize what an amazing job you happen to be accomplishing training many people by way of your website. Probably you’ve never encountered all of us.

  14. I not to mention my guys happened to be reading through the excellent recommendations found on your web page and then then I had a terrible suspicion I never expressed respect to the web blog owner for those techniques. All of the young men were certainly joyful to see them and have now clearly been taking advantage of them. Thank you for indeed being well helpful as well as for settling on variety of exceptional topics most people are really wanting to know about. My very own sincere apologies for not expressing gratitude to you earlier.

  15. I am writing to let you understand what a superb encounter our child found reading the blog. She realized lots of things, including what it’s like to have an excellent coaching nature to make many more quite simply know precisely a variety of complicated issues. You truly did more than my desires. Thank you for rendering such invaluable, trustworthy, informative and in addition easy tips on your topic to Kate.

  16. I needed to write you a bit of note just to say thanks once again just for the pleasing guidelines you’ve shared above. This is simply surprisingly generous of people like you to convey unhampered what exactly many of us could have offered as an e-book to generate some cash for themselves, most importantly given that you could possibly have done it if you ever considered necessary. Those guidelines in addition acted to be the great way to fully grasp that other individuals have the identical keenness just like my own to know significantly more concerning this issue. I’m certain there are millions of more pleasurable situations up front for individuals that read your site.

  17. Pingback: 3draughts
  18. My husband and i have been happy Ervin managed to finish off his basic research from your ideas he came across in your weblog. It is now and again perplexing to simply possibly be handing out hints that some others could have been selling. We remember we need the website owner to appreciate for that. All the explanations you have made, the simple blog menu, the relationships you will help create – it is mostly unbelievable, and it’s leading our son in addition to the family understand this theme is satisfying, and that is tremendously important. Thanks for the whole thing!

  19. My wife and i got very thankful Emmanuel could conclude his reports by way of the ideas he got through your web site. It is now and again perplexing just to always be releasing information and facts that others could have been making money from. And now we grasp we need you to thank because of that. The type of explanations you have made, the straightforward site menu, the friendships your site help to create – it’s mostly awesome, and it is assisting our son and our family recognize that that content is excellent, which is certainly truly mandatory. Many thanks for the whole lot!

  20. Thank you so much for giving everyone such a nice chance to read in detail from this site. It is often very kind and as well , jam-packed with amusement for me personally and my office peers to search your web site nearly three times in 7 days to study the newest stuff you have got. Not to mention, I’m just actually satisfied concerning the gorgeous solutions you serve. Some 2 points in this posting are essentially the most suitable we’ve had.

  21. I have to show some thanks to you for rescuing me from such a predicament. Right after looking out through the the net and finding methods which were not powerful, I believed my entire life was gone. Existing minus the approaches to the difficulties you have sorted out by means of the short article is a serious case, as well as the ones which might have badly damaged my entire career if I hadn’t discovered your web blog. That natural talent and kindness in handling all the stuff was valuable. I am not sure what I would have done if I had not come across such a step like this. I can at this moment relish my future. Thanks for your time so much for this impressive and effective guide. I will not think twice to recommend your web blog to anyone who should receive direction on this matter.

  22. I wanted to put you the tiny observation just to thank you very much as before for these wonderful knowledge you have shown here. It is seriously open-handed with you in giving unreservedly what a number of us might have marketed for an ebook in making some profit for their own end, and in particular since you could have tried it if you considered necessary. These guidelines as well worked to be a good way to recognize that someone else have similar keenness the same as mine to see very much more on the subject of this issue. I think there are a lot more enjoyable situations up front for those who take a look at your blog.

  23. My wife and i got ecstatic when Raymond managed to deal with his analysis through the ideas he had when using the weblog. It’s not at all simplistic just to continually be giving away hints that many most people may have been selling. We really do know we now have the writer to give thanks to for this. These illustrations you have made, the easy blog menu, the friendships your site make it possible to create – it’s everything astonishing, and it is leading our son in addition to us imagine that the idea is exciting, and that is pretty serious. Many thanks for all!

  24. I have to convey my affection for your kind-heartedness in support of those people that should have help on the situation. Your very own dedication to passing the message across ended up being quite good and have surely allowed regular people just like me to realize their targets. Your own helpful instruction entails a lot to me and far more to my fellow workers. Thanks a lot; from each one of us.

  25. I and my pals ended up checking the great thoughts found on your website and before long developed a horrible suspicion I never thanked you for those strategies. All the people were absolutely very interested to read them and now have absolutely been loving those things. Thanks for truly being quite thoughtful and also for using certain superb subjects millions of individuals are really desperate to learn about. My honest apologies for not saying thanks to earlier.

  26. I’m writing to make you know what a really good discovery my daughter experienced studying your webblog. She discovered some issues, including what it is like to have an incredible helping mindset to make many others without difficulty fully understand a variety of extremely tough subject matter. You really surpassed her expected results. Thank you for churning out those productive, trustworthy, edifying and as well as unique tips on your topic to Tanya.

  27. My husband and i got joyous that John managed to do his homework using the precious recommendations he discovered while using the blog. It is now and again perplexing just to choose to be giving freely information and facts which usually other people have been selling. And now we take into account we have the blog owner to thank because of that. These illustrations you made, the straightforward website menu, the friendships you will give support to engender – it is all wonderful, and it is leading our son and the family recognize that the matter is excellent, and that is tremendously serious. Many thanks for the whole thing!

  28. I simply needed to say thanks again. I am not sure what I might have implemented in the absence of the entire information discussed by you regarding my area. It became a real daunting situation in my position, nevertheless spending time with the very expert fashion you resolved it forced me to weep over happiness. I am just happy for this assistance and even expect you comprehend what a great job you are always putting in educating people thru a web site. Probably you’ve never encountered all of us.

  29. Thanks a lot for providing individuals with an exceptionally marvellous chance to read critical reviews from this website. It’s usually very enjoyable plus stuffed with a lot of fun for me and my office peers to visit your web site the equivalent of thrice per week to learn the latest items you have got. And of course, I’m always astounded with the eye-popping hints served by you. Some two areas in this posting are really the very best I’ve ever had.

  30. I wish to get across my love for your kindness supporting visitors who absolutely need guidance on the theme. Your special dedication to passing the message up and down has been unbelievably productive and has without exception permitted employees just like me to realize their desired goals. Your amazing interesting useful information signifies a great deal a person like me and still more to my peers. Best wishes; from all of us.

  31. I precisely wanted to say thanks yet again. I’m not certain the things that I might have taken care of in the absence of those tactics contributed by you directly on such theme. It absolutely was a troublesome problem for me personally, nevertheless noticing the very skilled fashion you managed that made me to weep with gladness. Now i’m happy for the advice and in addition expect you realize what an amazing job you were putting in training the mediocre ones thru a site. I’m certain you haven’t got to know all of us.