Professional Documents
Culture Documents
NY SIG Meeting
October 7th, 2003
Mr. Paranoid
(Its my job)
Larry M. Carpenter
Senior Principal Consultant
Data Guard Development
Server Technologies
Oracle Corporation
D
A
T
A
G
U
A
R
D
Users Networks
Simply put
Data Guard helps you protect your Data.
EM Data Guard
Manager
Production / Primary
Databases
ta
Physical and
Logical Standby
Databases
High Level
Data Guard comprises of two parts
Physical Standby
Database
Optional
Delay
Backup
Network
Sync or Async
Redo Shipping
Redo Apply
Additional
Indexes &
Materialized Views
Primary
Database
Logical Standby
Database
Optional
Delay
Continuously
Open for Reports
Network
Sync or Async
Redo Shipping
Transform Redo
to SQL and Apply
Can be queried for reports while logs are being applied via SQL
Can create additional indexes and materialized views for better query performance
Not all Data Types supported (See the manual for a list)
Standby
Database
Tape
Backups
Primary Site
Standby
Database
Production
Database
Optional Delayed Apply
TANSTAAFL
There Aint No Such Thing As A Free Lunch!
The Moon is a Harsh Mistress Robert Heinlein
Setup Overview
O
n
th
eS
ta
nd
b
n
O
th
im
r
eP
y
r
a
Were Done!
Well, I thought that was easy.
Minimum Database
Requirements
What do you need at a minimum?
A standby database
Same version as the primary
With Standby Redo Logs if its a Physical standby
Minimum Environment
Requirements
What else do you need?
Primary
Database
Location 2
Redo Data Enabled
Redo Data Deferred
LOG_ARCHIVE_DEST_1=LOCATION=location1_directory
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_2=SERVICE=location2
LOG_ARCHIVE_DEST_STATE_2=ENABLE
Physical
Standby
Database
LOG_ARCHIVE_DEST_1=LOCATION=location2_directory
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_2=SERVICE=location1
LOG_ARCHIVE_DEST_STATE_2=DEFER
One physical standby location provides basic disaster protection (a remote block-forblock copy of the primary database), but there is no additional protection in effect if
either location fails
Physical standby database can be used for reporting (redo apply must be
temporarily paused)
Location 1
Physical
Standby
Database
Primary
Database
Physical
Standby
Database
Location 3
Two physical standby locations maintain full disaster protection after any one
location (primary or standby) fails
One standby can be kept current with the primary database to facilitate fast
failover while the other can be configured with a redo apply delay to create a
window of protection against user error
Primary
Database
pply
A
L
Q
Red
o Ap
ply
Logical
Standby
Database
Physical
Standby
Database
Indexes
Materialized Views
Physical
Standby
Database
Logical
Standby
Database
Physical
Standby
Database
Physical
Standby
Database
Primary
Database
Location 3
ta
o Da
d
e
R
Primary
Database
Red
o
Logical
Standby
Database
Regenerated
Redo Data
Standby
Database
Retransmitted
Redo Data
Standby
Database
Data
Physical
Standby
Database
Q&
A
QUESTIONS
ANSWERS