Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Oracle Data Guard 11gR2 Administration : Beginner's Guide

You're reading from  Oracle Data Guard 11gR2 Administration : Beginner's Guide

Product type Book
Published in Jun 2013
Publisher Packt
ISBN-13 9781849687904
Pages 404 pages
Edition 1st Edition
Languages

Table of Contents (19) Chapters

Oracle Data Guard 11gR2 Administration Beginner's Guide
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Pop Quiz Answers
Getting Started Configuring the Oracle Data Guard Physical Standby Database Configuring Oracle Data Guard Logical Standby Database Oracle Data Guard Broker Data Guard Protection Modes Data Guard Role Transitions Active Data Guard, Snapshot Standby, and Advanced Techniques Integrating Data Guard with the Complete Oracle Environment Data Guard Configuration Patching Common Data Guard Issues Data Guard Best Practices Index

Time for action – changing the Database Guard setting


As we mentioned before, the default Database Guard mode for a logical standby database is set to ALL. Let's try to insert data into the HR.REGIONS table, which is out of the replication scope because of the skip rule we created.

  1. Connect the logical standby database with SYS user. Check the Database Guard mode and skip rules with the following query:

    SQL> SELECT GUARD_STATUS FROM V$DATABASE;
    
    GUARD_S
    -------
    ALL
    
    SQL> SELECT OWNER, NAME,STATEMENT_OPT, PROC  FROM DBA_LOGSTDBY_SKIP  WHERE STATEMENT_OPT <> 'INTERNAL SCHEMA';
    
    OWNER    NAME         STATEMENT_OPT   PROC
    -------- ------------ --------------- ------------------
                          DIRECTORY
    HR       %            DML
                          TABLESPACE      SYS.CHANGE_TS_DDL 

    Database Guard mode is ALL and all HR tables are skipped by SQL Apply.

  2. Now connect with the HR user and insert a row to the REGIONS table:

    SQL> CONN HR/HR
    Connected.
    SQL> INSERT INTO HR.REGIONS...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}