Managing dataguard – monitoring scripts « Oracle DBA – A lifelong learning experience

Page 1 of 4

Oracle DBA – A lifelong learning experience
• Home • About •

Meta
◦ ◦ ◦ ◦ ◦ Register Log in Entries RSS Comments RSS WordPress.com

Categories
◦ ◦ ◦ ◦ ◦ ◦ ◦ ◦ 11g new features addm ASM Grid control and agents Oracle RMAN scripts security

Blog Stats
◦ 166,056 hits

Email Subscription
Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Sign me up!

Top Posts
◦ RMAN backup script - example - logging output ◦ Applying the 10.2.0.4.1 Patch Set Update (PSU) ◦ ORA-19809: limit exceeded for recovery files - db_recovery_file_dest_size and archiver error ◦ Reducing RMAN backup time for unevenly sized tablespaces ◦ How not to set up remote log shipping - Dataguard and Streams

http://jhdba.wordpress.com/2009/07/16/managing-dataguard-monitoring-scripts/

9/13/2010

null.1 Patch Set Update (PSU) » Managing dataguard – monitoring scripts Posted by John Hallas on July 16. 2009 I am providing three scripts which I find useful in ensuring that the standby database is keeping up with the primary database in Dataguard setup. to_char(next_time.'DD-MON-YY:HH24:MI:SS') Time      from v$archived_log      where sequence# = (select max(sequence#) from v$archived_log where applied='YES')      union      select 'Last received : ' Logs. to_char(next_time.Managing dataguard – monitoring scripts « Oracle DBA – A lifelong learning experience Page 2 of 4 ◦ ◦ ◦ ◦ ◦ Identifying corrupt blocks Where has consistent=y gone when using Datapump export Recovering from a cold backup using RMAN Using Grid to display database CPU usage Purging statistics from the SYSAUX tablespace « bug 8525592 – SGA memory leak during db shutdown Applying the 10. @last 1 2 3 4 LOGS             TIME  ---------------- ------------------  Last applied   :  16-JUL-09:09:24:16  Last received :  16-JUL-09:09:28:36 1 2 3 4 5 6 7     select 'Last applied  : ' Logs.0.2         day(2) to second(1) interval  apply lag              +00 00:01:59           day(2) to second(0) interval  estimated startup time 16                     second  standby has been open  N  transport lag          +00 00:00:00           day(2) to second(0) interval                                                   Time Computed: 16-JUL-2009 09:33:16 01 02 03 04 05 06 07 select      NAME Name. @dg_stats 1 2 3 4 5 6 7 8 9 NAME                   VALUE                  UNIT  ---------------------- ---------------------- -----------------------------------  apply finish time      +00 00:02:07.      VALUE Value.com/2009/07/16/managing-dataguard-monitoring-scripts/ 9/13/2010 .2.' ' from dual  http://jhdba.4.wordpress.'DD-MON-YY:HH24:MI:SS') Time      from v$archived_log     where sequence# = (select max(sequence#) from v$archived_log).      UNIT Unit      from v$dataguard_stats      union      select null.

You can leave a response. Thanks to colleague Simon Ryan for pulling them together.hds. You can follow any responses to this entry through the RSS 2. v$dataguard_stats.com/2009/07/16/managing-dataguard-monitoring-scripts/ 9/13/2010 . www. v$archived_log. A final option is to use v$standby_log @last_redo 1 2 3 Redo onsite  --------------------  16-JUL-2009 09:42:44 1 2 select to_char(max(last_time). but all of them are useful.'Time Computed: '||MIN(TIME_COMPUTED)     from v$dataguard_stats. standby.Managing dataguard – monitoring scripts « Oracle DBA – A lifelong learning experience Page 3 of 4 08 09 10     union      select null. or trackback from your own site. Share this: 0 Possibly related posts: (automatically generated) • Adventures in Moving • Rolls Royce plc v Unite the Union – Times Law Reports Ads by Google Storage Economics Play our game and see how Hitachi can design your ideal architecture.0 feed. primary.wordpress. Tagged: dataguard. Leave a Reply Name (required) E-mail (required) http://jhdba.'DD-MON-YYYY HH24:MI:SS') "Redo onsite"       from v$standby_log None of them that clever.com This entry was posted on July 16.null. v$standby_log. 2009 at 8:49 am and is filed under Oracle.

com. Notify me of new posts via email. « bug 8525592 – SGA memory leak during db shutdown Applying the 10.Managing dataguard – monitoring scripts « Oracle DBA – A lifelong learning experience Page 4 of 4 Website XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Submit Comment Notify me of follow-up comments via email.1 Patch Set Update (PSU) » Blog at WordPress.com/2009/07/16/managing-dataguard-monitoring-scripts/ 9/13/2010 .4.0. http://jhdba.wordpress.2. | Theme: Andreas09 by Andreas Viklund.

Sign up to vote on this title
UsefulNot useful