Sie sind auf Seite 1von 14

11

Using Data Guard in a Real Application


Clusters Configuration

Copyright 2006, Oracle. All rights reserved.


Objectives

After completing this lesson, you should be able to deploy


Data Guard in a Real Application Clusters environment.

11 - 2 Copyright 2006, Oracle. All rights reserved.


Real Application Clusters and Data Guard

Possible combinations of instances in the primary and


standby databases:

Primary Single-Instance Multi-Instance


Instance Standby Database Standby Database

Single-Instance Yes Yes

Multi-Instance Yes Yes

11 - 3 Copyright 2006, Oracle. All rights reserved.


Configuration Considerations with RAC

Format for archived redo log file names: Thread variable


(%t or %T) of LOG_ARCHIVE_FORMAT is mandatory.
Data protection modes: Maximum protection or
maximum availability mode; all instances could stop
shipping redo.

11 - 4 Copyright 2006, Oracle. All rights reserved.


Multi-Instance Primary Database with a
Single-Instance Standby Database

Primary database Standby database

11 - 6 Copyright 2006, Oracle. All rights reserved.


Multi-Instance Primary Database with a
Multi-Instance Standby Database

Primary database Standby database

11 - 7 Copyright 2006, Oracle. All rights reserved.


Redo Transport with RAC to RAC

Primary instance A Standby instance C


Archived logs

LGWR
Standb Physical
y standby
redo database
Online files
redo
Primary files
database
LGWR RFS ARCn

Archived
Archived logs logs MRP
Primary instance B Standby recovery instance D

11 - 8 Copyright 2006, Oracle. All rights reserved.


Setting Up a Primary Database with RAC

Primary instance A
Archived logs

LGWR

Online
redo
Primary files
database
LGWR

Archived logs
Primary instance B

11 - 9 Copyright 2006, Oracle. All rights reserved.


Setting Up a Standby Database with RAC

Standby instance C

Standby Physical
redo standby
files database

RFS ARCn

Archived
logs MRP
Standby recovery instance D

11 - 10 Copyright 2006, Oracle. All rights reserved.


Assigning Threads to
Standby Redo Log Groups

Standby
database

Primary Standby
database redo logs

SQL> ALTER DATABASE ADD STANDBY LOGFILE


2 THREAD 1 'STBY_LOGFILE_1.SRL' SIZE 50M;

11 - 11 Copyright 2006, Oracle. All rights reserved.


Apply Instance Failover

If the apply instance fails, transport of redo is also


halted by default.
Broker configuration:
Set ApplyInstanceTimeout to avoid downtime.

Default is 120 seconds.

Set to 0 (zero) to disable.
Optionally set PreferredApplyInstance.
Non-broker configuration: Set up a list of destination
connect identifiers.

11 - 12 Copyright 2006, Oracle. All rights reserved.


Role Transitions with RAC

Switchovers: Only one primary instance and one


standby instance can be active during a switchover.
Failovers: Before performing a failover to a RAC
standby database, shut down all but one standby
instance.

11 - 14 Copyright 2006, Oracle. All rights reserved.


Troubleshooting

Switchover failure
Avoiding downtime during a network outage

11 - 15 Copyright 2006, Oracle. All rights reserved.


Summary

In this lesson, you should have learned how to deploy Data


Guard in a Real Application Clusters environment.

11 - 17 Copyright 2006, Oracle. All rights reserved.

Das könnte Ihnen auch gefallen