Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

DataGuard_architecture

2,309 views

Published on

Published in: Education, Technology
  • Be the first to comment

DataGuard_architecture

  1. 1. 2Understanding the OracleData Guard Architecture Copyright © 2006, Oracle. All rights reserved.
  2. 2. ObjectivesAfter completing this lesson, you should be able to do thefollowing: • Describe the Data Guard architecture • Explain the operational requirements of Data Guard • Describe how Data Guard processes, transports, and applies redo logs • Describe standby database modes2-2 Copyright © 2006, Oracle. All rights reserved.
  3. 3. Data Guard Operational Requirements: Hardware and Operating System • The hardware can be different for the primary and standby databases. • The operating system and platform architecture for the primary and standby databases must be the same. • The operating system releases for the primary and standby databases can be different. • If all databases are on the same system, verify that the OS allows you to mount more than one database with the same name.2-3 Copyright © 2006, Oracle. All rights reserved.
  4. 4. Data Guard Operational Requirements: Oracle Database Software • Same release of Oracle Database Enterprise Edition must be installed for all databases. • SYSDBA privileges are required for the accounts used to manage the database instances. • Each database must have its own control file. • Primary database must operate in ARCHIVELOG mode. • Enable FORCE LOGGING on the primary database before taking data file backups for standby creation. • If any databases use ASM and/or OMF, all should use the same combination.2-4 Copyright © 2006, Oracle. All rights reserved.
  5. 5. 2-5 Copyright © 2006, Oracle. All rights reserved.
  6. 6. Oracle Data Guard: Architecture Primary database MRP or Standby LSP transactions database (MRP only) LGWR LNSn RFS (Real-time Oracle net apply) Online redo Standby redo logs Backup logs FAL Reports ARC0 ARC0 Archived redo Archived redo logs logs2-6 Copyright © 2006, Oracle. All rights reserved.
  7. 7. Primary Database Flow Primary database MRP or Standby LSP transactions database (MRP only) LGWR LNSn RFS (Real-time Oracle net apply) Online redo Standby redo logs Backup logs FAL Reports ARC0 ARC0 Archived redo Archived redo logs logs2-7 Copyright © 2006, Oracle. All rights reserved.
  8. 8. Standby Database Flow Primary database MRP or Standby LSP transactions database (MRP only) LGWR LNSn RFS (Real-time Oracle net apply) Online redo Standby redo logs Backup logs FAL Reports ARC0 ARC0 Archived redo Archived redo logs logs2-8 Copyright © 2006, Oracle. All rights reserved.
  9. 9. Standby Redo Logs Standby Archived Redo from redo logs redo logs primary database RFS ARC0 MRP/LSP Standby database2-9 Copyright © 2006, Oracle. All rights reserved.
  10. 10. Physical Standby Database: Redo Apply Architecture Production Physical standby database database Redo Redo transport apply Redo stream Backup Primary Physical standby database database2 - 10 Copyright © 2006, Oracle. All rights reserved.
  11. 11. 2 - 11 Copyright © 2006, Oracle. All rights reserved.
  12. 12. Logical Standby Database: SQL Apply Architecture Production Logical standby database database SQL Redo transport Apply Transform redo information into SQL Reports Primary Logical standby database database2 - 12 Copyright © 2006, Oracle. All rights reserved.
  13. 13. SQL Apply Process: Architecture LCR Reader Preparer LCR Builder : Redo Shared records pool Redo data from Logical change records notprimary database Log Mining grouped into transactions Transaction groups Apply processing Applier Coordinator Analyzer Transactions to Transactions be applied sorted in Data files dependency order 2 - 13 Copyright © 2006, Oracle. All rights reserved.
  14. 14. Real-Time Apply RFS Primary MRP or LSP database Standby redo log files ARC0 Archived redo log Standby files database2 - 14 Copyright © 2006, Oracle. All rights reserved.
  15. 15. 2 - 15 Copyright © 2006, Oracle. All rights reserved.
  16. 16. Setting the DB_UNIQUE_NAME Parameter San Francisco SF1_DB DB_UNIQUE_NAME = SF1_DB2 - 16 Copyright © 2006, Oracle. All rights reserved.
  17. 17. Specifying Role-Based Destinations Primary Standby database database Not used LOG_ARCHIVE_DEST_2= location= "/u01/app/oracle/oradata/orcldg2/arc", valid_for=(STANDBY_LOGFILE,STANDBY_ROLE) DB_UNIQUE_NAME = HRDB22 - 17 Copyright © 2006, Oracle. All rights reserved.
  18. 18. 2 - 18 Copyright © 2006, Oracle. All rights reserved.
  19. 19. Combinations for VALID_FOR Combination Primary Physical Logical ONLINE_LOGFILE, PRIMARY_ROLE Valid Ignored Ignored ONLINE_LOGFILE, STANDBY_ROLE Ignored Ignored Valid ONLINE_LOGFILE, ALL_ROLES Valid Ignored Valid STANDBY_LOGFILE,STANDBY_ROLE Ignored Valid Valid STANDBY_LOGFILE, ALL_ROLES Ignored Valid Valid ALL_LOGFILES, PRIMARY_ROLE Valid Ignored Ignored ALL_LOGFILES, STANDBY_ROLE Ignored Valid Valid ALL_LOGFILES, ALL_ROLES Valid Valid Valid2 - 19 Copyright © 2006, Oracle. All rights reserved.
  20. 20. Identifying Destination Settings SQL> SELECT DEST_ID,VALID_TYPE,VALID_ROLE,VALID_NOW 2 FROM V$ARCHIVE_DEST; DEST_ID VALID_TYPE VALID_ROLE VALID_NOW ------- --------------- ------------ -------------- 1 ALL_LOGFILES ALL_ROLES YES 2 STANDBY_LOGFILE STANDBY_ROLE WRONG VALID_TYPE 3 ONLINE_LOGFILE STANDBY_ROLE WRONG VALID_ROLE 4 ALL_LOGFILES ALL_ROLES UNKNOWN 5 ALL_LOGFILES ALL_ROLES UNKNOWN 6 ALL_LOGFILES ALL_ROLES UNKNOWN 7 ALL_LOGFILES ALL_ROLES UNKNOWN 8 ALL_LOGFILES ALL_ROLES UNKNOWN 9 ALL_LOGFILES ALL_ROLES UNKNOWN 10 ALL_LOGFILES ALL_ROLES UNKNOWN 11 ALL_LOGFILES ALL_ROLES YES 11 rows selected.2 - 20 Copyright © 2006, Oracle. All rights reserved.
  21. 21. Standby Redo Log Configuration Online Standby redo redo Redo logs shipment logs RFS Primary Standby database database2 - 21 Copyright © 2006, Oracle. All rights reserved.
  22. 22. Using SQL to Add Standby Redo Logs • Use the ALTER DATABASE statement to create the standby redo log files: SQL> ALTER DATABASE ADD STANDBY LOGFILE 2 (/oracle/oradata/orcl/log1c.rdo, 3 /oracle/oradata/orcl/log2c.rdo) SIZE 500K; • Add members to a group with the following statement: SQL> ALTER DATABASE ADD STANDBY LOGFILE MEMBER 2 /oracle/oradata/orcl/log2b.rdo TO GROUP 2; • View information about the groups as follows: SQL> SELECT * FROM v$standby_log; SQL> SELECT * FROM v$logfile 2 WHERE type = STANDBY;2 - 22 Copyright © 2006, Oracle. All rights reserved.
  23. 23. Using Enterprise Manager to Add Standby Redo Logs2 - 23 Copyright © 2006, Oracle. All rights reserved.
  24. 24. Standby Database Modes You can maintain the standby data in one of the following modes: • For physical standby databases – Redo Apply – Open read-only mode • For logical standby databases – Open read/write mode2 - 24 Copyright © 2006, Oracle. All rights reserved.
  25. 25. 2 - 25 Copyright © 2006, Oracle. All rights reserved.
  26. 26. Summary In this lesson, you should have learned how to describe the following: • Data Guard architecture processes • Operational requirements of a Data Guard environment • How Data Guard processes, transports, and applies redo logs • Modes of standby databases and when to use each mode2 - 26 Copyright © 2006, Oracle. All rights reserved.
  27. 27. Practice 2-1: Architecture Review This practice covers the following topics: • Reviewing the Oracle Data Guard architecture • Reviewing the processes that Data Guard uses to transport and apply redo logs • Reviewing the modes that are used to recover a primary database2 - 27 Copyright © 2006, Oracle. All rights reserved.
  28. 28. Practice 2-2: Installing the Oracle Management Agent This practice covers the following topics: • Installing the Oracle Management Agent • Configuring monitoring credentials for your database2 - 28 Copyright © 2006, Oracle. All rights reserved.
  29. 29. Practice 2-3: Configuring Your Primary Database This practice covers the following topics: • Reviewing your primary database configuration • Configuring your primary database in preparation for creating a Data Guard configuration2 - 29 Copyright © 2006, Oracle. All rights reserved.
  30. 30. 2 - 30 Copyright © 2006, Oracle. All rights reserved.

×