1. Trang chủ
  2. » Công Nghệ Thông Tin

2 Understanding the Oracle Data Guard Architecture

24 411 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 24
Dung lượng 359,5 KB

Nội dung

2 Copyright © 2006, Oracle. All rights reserved. Understanding the Oracle Data Guard Architecture Copyright © 2006, Oracle. All rights reserved. 2 - 2 Objectives After completing this lesson, you should be able to do the following: • 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 modes Copyright © 2006, Oracle. All rights reserved. 2 - 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. Copyright © 2006, Oracle. All rights reserved. 2 - 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. Copyright © 2006, Oracle. All rights reserved. 2 - 6 Oracle Data Guard: Architecture LGWR Primary database transactions Online redo logs ARC0 FAL RFS MRP or LSP Archived redo logs ARC0 Standby database Reports (MRP only) Standby redo logs Archived redo logs Backup Oracle net LNSn (Real-time apply) Copyright © 2006, Oracle. All rights reserved. 2 - 7 Primary Database Flow LGWR Primary database transactions Online redo logs ARC0 FAL RFS MRP or LSP Archived redo logs ARC0 Standby database Reports (MRP only) Standby redo logs Archived redo logs Backup Oracle net LNSn (Real-time apply) Copyright © 2006, Oracle. All rights reserved. 2 - 8 Standby Database Flow LGWR Primary database transactions Online redo logs ARC0 FAL RFS MRP or LSP Archived redo logs ARC0 Standby database Oracle net Reports (MRP only) Standby redo logs Archived redo logs Backup LNSn (Real-time apply) Copyright © 2006, Oracle. All rights reserved. 2 - 9 Standby Redo Logs Redo from primary database RFS ARC0 Standby redo logs Archived redo logs MRP/LSP Standby database Copyright © 2006, Oracle. All rights reserved. 2 - 10 Physical Standby Database: Redo Apply Architecture Physical standby database Primary database Production database Physical standby database Redo apply Redo stream Redo transport Backup Copyright © 2006, Oracle. All rights reserved. 2 - 12 Logical Standby Database: SQL Apply Architecture Primary database Redo transport Transform redo information into SQL SQL Apply Reports Production database Logical standby database Logical standby database [...]... 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 mode 2 - 26 Copyright © 20 06, Oracle All rights reserved Practice 2- 1: Architecture Review This practice covers the following topics: • Reviewing the Oracle Data Guard architecture • Reviewing the processes... processes that Data Guard uses to transport and apply redo logs • Reviewing the modes that are used to recover a primary database 2 - 27 Copyright © 20 06, Oracle All rights reserved Practice 2- 2: Installing the Oracle Management Agent This practice covers the following topics: • Installing the Oracle Management Agent • Configuring monitoring credentials for your database 2 - 28 Copyright © 20 06, Oracle All... selected 2 - 20 Copyright © 20 06, Oracle All rights reserved Standby Redo Log Configuration Online redo logs Standby redo logs Redo shipment RFS Primary database 2 - 21 Standby database Copyright © 20 06, Oracle All rights reserved 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',... (' /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 © 20 06, Oracle All rights reserved... Logs 2 - 23 Copyright © 20 06, Oracle All rights reserved 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 mode 2 - 24 Copyright © 20 06, Oracle All rights reserved Summary In this lesson, you should have learned how to describe the following: • Data. .. ARC0 Archived redo log files 2 - 14 Copyright © 20 06, Oracle All rights reserved Standby database Setting the DB_UNIQUE_NAME Parameter San Francisco SF1_DB DB_UNIQUE_NAME = SF1_DB 2 - 16 Copyright © 20 06, Oracle All rights reserved Specifying Role-Based Destinations Primary database Standby database Not used LOG_ARCHIVE_DEST _2= location= "/u01/app /oracle/ oradata/orcldg2/arc", valid_for=(STANDBY_LOGFILE,STANDBY_ROLE)... for your database 2 - 28 Copyright © 20 06, Oracle All rights reserved 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 configuration 2 - 29 Copyright © 20 06, Oracle All rights reserved ... Process: Architecture Reader Redo data from primary database Preparer Builder Shared pool Redo records Log Mining LCR LCR : Logical change records not grouped into transactions Transaction groups Apply processing Applier Data files 2 - 13 Coordinator Transactions to be applied Analyzer Transactions sorted in dependency order Copyright © 20 06, Oracle All rights reserved Real-Time Apply RFS Primary database... STANDBY_ROLE Ignored Valid Valid ALL_LOGFILES, ALL_ROLES 2 - 19 Primary Physical Logical Valid Valid Valid Copyright © 20 06, Oracle All rights reserved 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... Destinations Primary database Standby database Not used LOG_ARCHIVE_DEST _2= location= "/u01/app /oracle/ oradata/orcldg2/arc", valid_for=(STANDBY_LOGFILE,STANDBY_ROLE) DB_UNIQUE_NAME = HRDB2 2 - 17 Copyright © 20 06, Oracle All rights reserved Combinations for VALID_FOR Combination ONLINE_LOGFILE, PRIMARY_ROLE Valid Ignored Ignored ONLINE_LOGFILE, STANDBY_ROLE Ignored Ignored Valid ONLINE_LOGFILE, ALL_ROLES . 2 Copyright © 20 06, Oracle. All rights reserved. Understanding the Oracle Data Guard Architecture Copyright © 20 06, Oracle. All rights reserved. 2 - 2. be able to do the following: • Describe the Data Guard architecture • Explain the operational requirements of Data Guard • Describe how Data Guard processes,

Ngày đăng: 26/10/2013, 20:15

TỪ KHÓA LIÊN QUAN