what is data guard

18
DATA GUARD DATA GUARD PRESENTATION PRESENTATION FOR FOR SIX MONTHS INDUSTRIAL TRAINING SIX MONTHS INDUSTRIAL TRAINING FROM FROM SQL TECHNOLOGIES SQL TECHNOLOGIES ON ON 22 22 ND ND APRIL 2010 APRIL 2010 PRESENTED BY, PRESENTED BY, RAMAN BRAR RAMAN BRAR G.T.B.K.I.E.T(MALOUT) G.T.B.K.I.E.T(MALOUT) BATCH 06 BATCH 06

Upload: jainpiyush

Post on 09-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 1/18

DATA GUARDDATA GUARD

PRESENTATIONPRESENTATION

FOR FOR 

SIX MONTHS INDUSTRIAL TRAININGSIX MONTHS INDUSTRIAL TRAINING

FROMFROM

SQL TECHNOLOGIESSQL TECHNOLOGIES

ONON2222NDND APRIL 2010APRIL 2010

PRESENTED BY,PRESENTED BY,

RAMAN BRAR RAMAN BRAR 

G.T.B.K.I.E.T(MALOUT)G.T.B.K.I.E.T(MALOUT)

BATCH 06BATCH 06

Page 2: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 2/18

What is Data Guard?What is Data Guard?

It is the management, monitoring andIt is the management, monitoring and

automation s/w that works with a productionautomation s/w that works with a production

database and one or more standby databases todatabase and one or more standby databases toprotect your data against failures,errors andprotect your data against failures,errors and

corruptions that might otherwise destroy your corruptions that might otherwise destroy your 

database.database.

Page 3: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 3/18

Disaster R ecovery Food chainDisaster R ecovery Food chain

users applicationsnetworks servers databases

DA

T

A

G

U

A

D

Page 4: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 4/18

Advantages of Proposed System Advantages of Proposed System 

Aga

inst

Existing

Sy

stem

Aga

inst

Existing

Sy

stem

TThis system provides high availability for DBhis system provides high availability for DB

serversservers

R R educe the human intervention required toeduce the human intervention required toswitch DBs at disaster recoveryswitch DBs at disaster recovery

TThis system reduces the manpower his system reduces the manpower 

TThis system acts as an automation toolhis system acts as an automation tool

IIt provides complete data protectiont provides complete data protection

Page 5: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 5/18

Need of ProjectNeed of Project

LLower cost and complexityower cost and complexity

MMaximum return on investmentaximum return on investment

MMaximum protectionaximum protection MMaximum availabilityaximum availability

MMaximum performanceaximum performance

Page 6: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 6/18

Project ObjectivesProject Objectives

IIt provides an efficient and comprehensive disaster t provides an efficient and comprehensive disaster 

recovery and high availability sol¶nrecovery and high availability sol¶n

IIt provides an effective safeguard against datat provides an effective safeguard against data

corruptions and user errorscorruptions and user errors

IIf connectivity is lost b/w primary and standbyf connectivity is lost b/w primary and standby

databases Data Guard will automatically reconnectdatabases Data Guard will automatically reconnect

and resynchronize the standby databaseand resynchronize the standby database IIt is available as an integrated feature of the oraclet is available as an integrated feature of the oracle

database at no extra costdatabase at no extra cost

Page 7: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 7/18

Types of Standby DatabasesTypes of Standby Databases

Supported

By

Data

Guard

Supported

By

Data

Guard

A Logical standby database is logically identical tothe primary database and can be used as a productiondatabase if the primary database is taken offline for routine maintenance or is damaged through human

error, corruption, or a disaster. A Physical standby database has its roots in media

recovery. It must be physically identical to theprimary database.The database schema, including

indexes, must be the same, and the database cannot beopened for updates. If opened for updates, thestandby database would have different row IDs,making continued recovery impossible.

Page 8: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 8/18

Log Apply Services For Physical &Log Apply Services For Physical &

Logical

Sta

nd

by

Data

ba

ses

Logical

Sta

nd

by

Data

ba

ses

Page 9: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 9/18

Advantages of Standby DatabaseAdvantages of Standby Database

VVery low failure rateery low failure rate

VVery short downtimeery short downtime

SSignificant decrease of load on the productionignificant decrease of load on the productionhosthost

AApplying redo log files to standby databasepplying redo log files to standby database

immediately verifies their consistencyimmediately verifies their consistency

Page 10: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 10/18

Disadvantages of Standby DatabaseDisadvantages of Standby Database

HHigh costigh cost

HHigh system administration epenseigh system administration epense

HHigh requirement for switch over and failover igh requirement for switch over and failover s/ws/w

Page 11: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 11/18

Data Guard Conf igurationData Guard Conf iguration

Page 12: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 12/18

Physical Standby differs from Physical Standby differs from 

Logical

sta

nd

by

 a

s:Log

ical

sta

nd

by

 a

s:--

PPhysical standby schema matches exactly thehysical standby schema matches exactly the

source databasesource database

AArchived redo logs and FTP'ed directly to therchived redo logs and FTP'ed directly to thestandby database which is always running instandby database which is always running in

"recover" mode.  Upon arrival, the archived"recover" mode.  Upon arrival, the archived

redo logs are applied directly to the standbyredo logs are applied directly to the standby

databasedatabase

Page 13: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 13/18

Logical Standby is different from Logical Standby is different from 

Phy

sical

Sta

nd

by

 a

s:Phy

sical

Sta

nd

by

 a

s:--

LLogical standby database does not have to match theogical standby database does not have to match the

schema structure of the source databaseschema structure of the source database

LLogical standby transform the archived redo logs intoogical standby transform the archived redo logs into

native DML statements (insert, update, delete).  Thisnative DML statements (insert, update, delete).  This

DML is transported and applied to the standbyDML is transported and applied to the standby

databasedatabase

LLogical standby tables can be open for SQL queriesogical standby tables can be open for SQL queries

(read only), and all other standby tables can be open(read only), and all other standby tables can be open

for updatesfor updates

Page 14: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 14/18

Data Guard ArchitectureData Guard Architecture

Page 15: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 15/18

R ole ExchangeR ole Exchange

On Primary m/cOn Primary m/c

Alter database commit Alter database commit 

to switchover toto switchover to

physical standby withphysical standby with

session shutdown;session shutdown;

On Standby m/cOn Standby m/c

Alter database recover Alter database recover 

managed standbymanaged standby

database cancel;database cancel;

Alter database commit Alter database commit 

to switchover to primaryto switchover to primary

with session shu;with session shu;

Page 16: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 16/18

Operational R equirementsOperational R equirements

The primary database must run in archive log mode

Use the same database release on the primaryand standby databases

The hardware and operating systemarchitecture on the primary and standby

locations must be the same Each primary database and standby database

must have its own control f ile.

Page 17: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 17/18

To protect against unlogged direct writes in

the primary database that cannot be propagated

to the standby database, turn on FORCE  

LOGGING at the primary database before

taking datafile backups for standby creation.

Keep the database FORCE LOGGING  mode

as long as the standby database is required.

Page 18: What is Data Guard

8/8/2019 What is Data Guard

http://slidepdf.com/reader/full/what-is-data-guard 18/18

TH ANK Y OU.TH ANK Y OU.