Oracle 11 G Data Guardv 2 PPT Oracle 11 G Data Guard
Oracle 11 G Data Guardv 2 PPT Oracle 11 G Data Guard
3
Agenda
4
What is Data Guard?
5
Oracle Data Guard Architecture
Dallas Physical Open R/O
Standby
Sync or Async
Redo Shipping
Production Redo
Database Apply
Network
Backup
Broker
DIGITAL DATA STORAGE
SQL
Apply
Boston
6
Data Guard Process Architecture
Redo Transport & Apply
Physical/Logical
Transactions Oracle Net Standby Database
MRP - physical
LGWR LNS RFS LSP - logical
sync
Standb
async y Transform Redo
Online Redo
Primary arch to SQL for
Redo Logs Logs
Logical Standby
Database
ARCH Queries,
Reports,
ARCH Testing,
Backups
Archived
Archived Redo Logs
Redo Logs
7
Data Guard Automatic Gap Resolution
Example - Maximum Availability (SYNC)
Physical/Logical
Transactions Oracle Net Standby Database
MRP - physical
LGWR LNS RFS LSP - logical
sync
Standb
y Transform Redo
Online Redo
Primary to SQL for
Redo Logs Logs
Logical Standby
Database
RFS ARCH Queries,
arch ping Reports,
ARCH Testing,
Backups
redo to resolve gap
Archived
Archived Redo Logs
Redo Logs
8
Physical Standby (Data Guard Redo Apply)
Open
Read-Only
Redo Apply
Network
Backup
Redo Shipment
Standby DIGITAL DATA STORAGE
Redo Logs
9
Logical Standby (Data Guard SQL Apply)
Additional
Indexes &
Materialized Views
Network Open
Read - Write
10
Physical or Logical Standby?
Physical Standby Logical Standby
• Physical, block-for-block copy • Logical, transaction-for-
of the primary transaction copy of the
• Can be open for read-only primary
queries – supports real-time • Allows creation of additional
reporting in 11g objects, modification of
• At role transition, offers objects
assurance that the standby • Able to skip apply on certain
database is an exact replica of objects
the old primary • Is open read-write (data in
• Can be used for fast backups tables maintained by SQL
– new in 11g Apply can not be changed)
• Higher performance • Supports real-time reporting
• Has datatype restrictions
11
Flexible Data Protection Modes
12
Protection from Human Errors
Flashback Database or Delayed Apply
Data Changes
13
Role Transition
• Switchover
• Planned role reversal
• No database reinstantiation required
• Used for maintenance of OS or hardware
• Failover
• Unplanned failure of primary
• Use Flashback Database to reinstante original primary
• Possible targets for transition
• Physical and logical standby
• Not snapshot standby
• Manually execute via simple SQL / GUI interface, or
• Automate failover using Data Guard Fast-Start Failover
14
Fast-Start Failover
Standby Site
Primary Site Primary
StandbySite
Site
Observer
Steady state - Data Guard Observer Process monitors the state of the configuration
Disaster strikes and an automatic failover is executed
When repaired - the Observer reinstates the original primary as a new standby
15
SQL Apply – Rolling Database Upgrades
Upgrade
Major
Version X Version X X X+1 Release
1 SQL Apply Config 2 Upgrades
Initial Upgrade node B to X+1
16
Data Guard Management Interfaces
17
Agenda
18
Data Guard 11g Enhancements
19
Traditional Physical Standby Databases
Investment in Disaster Recovery only
Real-time
Queries
Production Standby
Database Database
20
Active Data Guard 11g
Real-time Query
Real-time
Real-time
Query
Queries
Continuous Redo
Shipment and Apply
21
Active Data Guard 11g
Real-time Query
-- Physical standby database is mounted and being recovered.
-- Users can now run queries or reports on opened physical standby database
-- while recovery is active.
22
Active Data Guard 11g
Real-time Query
-- 2. Stop reporting on physical standby database and just run recovery.
23
Snapshot Standby
Use Standby Database for Testing
Updates Queries
Updates
• Preserves zero data loss – continuous redo transport while open read-write
• Similar to storage snapshots, but provides continuous DR using same storage
• Can also be done using Data Guard 10g Release 2 – but more manual steps
24
Snapshot Standby
Using Oracle 10g and 11g
10.2 – Steps Required 11.1 – Steps Required
Standby Standby
> alter database recover managed standby database > alter database convert to snapshot standby;
cancel; PERFORM TESTING, ARCHIVE LOGS CONTINUE TO BE
> create restore point before_lt guarantee flashback SHIPPED
database;
> alter database convert to physical standby;
Primary
> alter system archive log current;
> alter system set log_archive_dest_state_2=defer;
Standby
> alter database activate standby database;
> startup mount force;
> alter database set standby database to maximize
performance;
> alter system set log_archive_dest_state_2=defer;
> alter database open;
PERFORM TESTING, ARCHIVE LOGS NOT SHIPPED
> startup mount force;
> flashback database to restore point before_lt;
> alter database convert to physical standby;
> startup mount force;
> alter database recover managed standby database
disconnect from session;
Primary
> Alter system set log_archive_dest_state_2=enable
25
Network Compression for GAPs
Improved Data Protection
26
Lost Write Detection
27
Lost Write Detection
28
Enhanced Fast-Start Failover
High Availability
29
User-Configurable Fast-Start Failover
High Availability
• Faster Failover
• Failover in seconds with Fast-Start Failover
• Faster Redo Apply for physical standby
• Parallel media recovery optimization
• Benefits all workloads
• Faster SQL Apply for logical standby
• Performance benefit for certain workload profiles
• e.g. inserts & updates to tables that are not partitioned
• Support for executing DDL in parallel on standby database
31
Rolling Upgrade Using Physical Standby
High Availability
32
Logical Standby
Manageability
33
Enhanced RMAN Integration
Manageability
34
Enhanced Data Guard Security
Manageability
35
More Flexible Configurations
Manageability
36
Data Guard Broker
Manageability
37
Enterprise Manager Grid Control
Manageability
38
For More Information
39
For More Information
http://search.oracle.com
Data Guard
or
http://www.oracle.com/
40
41