Oracle DataGuard Online Training in USA | INDIA

65

Transcript of Oracle DataGuard Online Training in USA | INDIA

Page 2: Oracle DataGuard Online Training in USA | INDIA

ORACLE DATA GUARD:

MAXIMUM DATA PROTECTION AT MINIMUM COST

Page 3: Oracle DataGuard Online Training in USA | INDIA

AGENDAAGENDA• Oracle Data Guard – a Quick Introduction• Data Guard Features in Oracle Database 10g• Customer Success Story – Sun Microsystems• Summary & Q/A

Page 4: Oracle DataGuard Online Training in USA | INDIA

WHAT IS ORACLE DATA GUARD??

• Oracle’s disaster recovery solution for Oracle data

• Feature of Oracle Database Enterprise Edition

• Automates the creation and maintenance of one or more transaction ally consistent copies (standby) of the production (or primary) database

Page 5: Oracle DataGuard Online Training in USA | INDIA

ORACLE DATA GUARD FOCUSORACLE DATA GUARD FOCUS• Data Failures & Site Disasters:Data Failures & Site Disasters:

• Also addresses human errors & planned maintenances

– Data Protection– Data Availability– Data Recovery

Data is the core asset of the enterprise!All 3 are important!

Page 6: Oracle DataGuard Online Training in USA | INDIA

ORACLE DATA GUARD ORACLE DATA GUARD ARCHITECTUREARCHITECTURE

Network Broker

ProductionDatabase

Logical StandbyDatabase Open for

Reports

SQLApply

Transform Redo to SQL

AdditionalIndexes & MVs

Physical StandbyDatabase

DIGITAL DATA STORAGE

DIGITAL DATA STORAGE

Backup

Redo Apply

Sync or Async Redo Shipping

Page 7: Oracle DataGuard Online Training in USA | INDIA

DATA GUARD REDO APPLYDATA GUARD REDO APPLY

Physical Standby Database is a block-for-block copy of the primary database Uses the database recovery functionality to apply changes Can be opened in read-only mode for reporting/queries Can also be used for backups, offloading production database

PrimaryDatabase

Physical StandbyDatabase

Redo Shipment

Network

Redo Apply

DIGITAL DATA STORAGE

Backup

Standby Redo Logs

Data Guard Broker

Page 8: Oracle DataGuard Online Training in USA | INDIA

DATA GUARD SQL APPLYDATA GUARD SQL APPLY

Logical Standby Database is an open, independent, active database Contains the same logical information (rows) as the production database Physical organization and structure can be very different Can host multiple schemas

Can be queried for reports while logs are being applied via SQL Can create additional indexes and materialized views for better query performance

AdditionalIndexes &

Materialized Views

Redo Shipment

NetworkContinuously

Open for Reports

Transform Redo to SQL and Apply

Data Guard Broker

PrimaryDatabase

Logical StandbyDatabase

Standby Redo Logs

Page 9: Oracle DataGuard Online Training in USA | INDIA

AGENDAAGENDA• Oracle Data Guard – a Quick IntroductionOracle Data Guard – a Quick Introduction• Data Guard Features in Oracle Database 10gData Guard Features in Oracle Database 10g• Customer Success Story – Sun MicrosystemsCustomer Success Story – Sun Microsystems• Summary & Q/ASummary & Q/A

Page 10: Oracle DataGuard Online Training in USA | INDIA

ORACLE DATA GUARD 10G ORACLE DATA GUARD 10G OBJECTIVESOBJECTIVES

• Establish Data Guard as an extremelyEstablish Data Guard as an extremely• easy-to-useeasy-to-use• low-costlow-cost• comprehensivecomprehensive• reliablereliable

• Disaster Recovery solution for Disaster Recovery solution for enterprise data enterprise data

Page 11: Oracle DataGuard Online Training in USA | INDIA

OVERVIEW OF OBJECTIVESOVERVIEW OF OBJECTIVES• Ease of useEase of use – simplified SQL, easy to create, – simplified SQL, easy to create,

manage and administer standby databases, manage and administer standby databases, simplified GUI focused on best practicessimplified GUI focused on best practices

• Low costLow cost – businesses can leverage existing – businesses can leverage existing resources to implement Data Guard, zero resources to implement Data Guard, zero integration costsintegration costs

• ComprehensiveComprehensive – feature-rich and flexible – feature-rich and flexible• ReliableReliable – a rock-solid solution for protection of – a rock-solid solution for protection of

mission critical business datamission critical business data

Page 12: Oracle DataGuard Online Training in USA | INDIA

DATA GUARD 10G NEW DATA GUARD 10G NEW FEATURESFEATURES• General new featuresGeneral new features

• Real Time ApplyReal Time Apply• Flashback Database IntegrationFlashback Database Integration

• SQL Apply new features SQL Apply new features • Zero Downtime InstantiationZero Downtime Instantiation• Rolling UpgradesRolling Upgrades• Additional DatatypesAdditional Datatypes

• Data Guard Broker & Enterprise Manager new features Data Guard Broker & Enterprise Manager new features • RAC integrationRAC integration• Simplified browser-based interface focused on best practicesSimplified browser-based interface focused on best practices

Page 13: Oracle DataGuard Online Training in USA | INDIA

REAL TIME APPLYREAL TIME APPLY• Redo data is applied to the standby database as soon Redo data is applied to the standby database as soon

as it is received from the primary databaseas it is received from the primary database• In Oracle9In Oracle9ii Data Guard this apply has to wait till an Data Guard this apply has to wait till an

archivelog is created on the standby databasearchivelog is created on the standby database• For Redo Apply:For Redo Apply:

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILECURRENT LOGFILE

• For SQL Apply:For SQL Apply:ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATEALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE

• When real time apply is enabled, When real time apply is enabled, RECOVERY_MODERECOVERY_MODE column in column in V$ARCHIVE_DEST_STATUSV$ARCHIVE_DEST_STATUS displays “ displays “MANAGED MANAGED REAL TIME APPLYREAL TIME APPLY””

Page 14: Oracle DataGuard Online Training in USA | INDIA

An up-to-date Physical/Logic

al Standby

DatabaseMRP/ LSPRFS

StandbyRedo Logs

ARCH

REAL TIME APPLY ARCHITECTUREREAL TIME APPLY ARCHITECTURE

Archived Redo Logs

Archived Redo Logs

PrimaryDatabase

Transactions

LGWR

Online Redo Logs

ARCH

Oracle Net

Real Time Apply

Page 15: Oracle DataGuard Online Training in USA | INDIA

REAL TIME APPLY – BENEFITSREAL TIME APPLY – BENEFITS

• Standby databases now more closely synchronized with Standby databases now more closely synchronized with the primarythe primary

• More up-to-date, real-time reportingMore up-to-date, real-time reporting• Faster switchover and failover timesFaster switchover and failover times

• Reduces planned and unplanned downtimeReduces planned and unplanned downtime• Better Recovery Time Objective (RTO) for DRBetter Recovery Time Objective (RTO) for DR

Page 16: Oracle DataGuard Online Training in USA | INDIA

EXISTING SITE RECOVERY EXISTING SITE RECOVERY TRADEOFFSTRADEOFFS

• Log apply may be delayed to protect from user errors but:Log apply may be delayed to protect from user errors but:• Switchover/Failover gets delayedSwitchover/Failover gets delayed• Reports run on old dataReports run on old data

• After failing over to standby, production DB must be rebuiltAfter failing over to standby, production DB must be rebuilt

Primary Database Standby DatabaseRedo

Shipment

DelayedApply

Reporting on delayed data

Page 17: Oracle DataGuard Online Training in USA | INDIA

FLASHBACK DATABASEFLASHBACK DATABASE• A new strategy for point in time recoveryA new strategy for point in time recovery• Eliminate the need to restore a whole Eliminate the need to restore a whole

database backupdatabase backup• Integrated seamlessly with RMANIntegrated seamlessly with RMAN

• Think of it as a continuous backupThink of it as a continuous backup• Restores just Restores just changedchanged blocks blocks

• It’s It’s fastfast - recover in minutes, not hours - recover in minutes, not hours• It’s It’s easyeasy - single command restore - single command restore

RMAN> FLASHBACK DATABASE TIMESTAMP to_timestamp ('2003-08-15 16:00:00', 'YYYY-MM-DD HH24:MI:SS');

Page 18: Oracle DataGuard Online Training in USA | INDIA

ENHANCED DR WITH FLASHBACK ENHANCED DR WITH FLASHBACK DATABASEDATABASE

• Flashback DB removes the need to delay application of logsFlashback DB removes the need to delay application of logs• Flashback DB removes the need to reinstantiate primary after failoverFlashback DB removes the need to reinstantiate primary after failover• Real-time apply enables real-time reporting on standbyReal-time apply enables real-time reporting on standby

Real Time Apply

No Delay!

Real TimeReporting

Flashback Log

Flashback Log

Primary: No reinstantiation after failover!

RedoShipment

Primary Database Standby Database

Page 19: Oracle DataGuard Online Training in USA | INDIA

SQL APPLY: ZERO DOWNTIME SQL APPLY: ZERO DOWNTIME INSTANTIATIONINSTANTIATION

• Logical standby database can now be created from an online Logical standby database can now be created from an online backup of the primary database, without shutting down or backup of the primary database, without shutting down or quiescing the primary databasequiescing the primary database

• No shutdown implies no downtime of production systemNo shutdown implies no downtime of production system• No quiesce implies no wait on quiesce and no dependence on No quiesce implies no wait on quiesce and no dependence on

Resource ManagerResource Manager

Page 20: Oracle DataGuard Online Training in USA | INDIA

ROLLING UPGRADESROLLING UPGRADES

Major ReleaseUpgrades

Patch SetUpgrades

Cluster Software & Hardware Upgrades

Initial SQL Apply Config

Clients Redo

Version X Version X1

BA

Switchover to B, upgrade A

Redo

4

Upgrade

X+1X+1

BA

Run in mixed mode to test

Redo

3X+1X

A B

Upgrade node B to X+1

Upgrade

LogsQueue

X2

X+1

A B

Page 21: Oracle DataGuard Online Training in USA | INDIA

SQL APPLY: ADDITIONAL DATA SQL APPLY: ADDITIONAL DATA TYPESTYPES

• SQL Apply now supports the following additional data types:SQL Apply now supports the following additional data types:• Multi-byte CLOBMulti-byte CLOB• NCLOBNCLOB• LONGLONG• LONG RAWLONG RAW• BINARY_FLOATBINARY_FLOAT• BINARY_DOUBLEBINARY_DOUBLE• IOT-s (without overflows and without LOB columns)IOT-s (without overflows and without LOB columns)

• Allows logical standby databases to recover and protect a Allows logical standby databases to recover and protect a wider variety of data, thus increasing the overall database wider variety of data, thus increasing the overall database protection and recovery options for Data Guardprotection and recovery options for Data Guard

Page 22: Oracle DataGuard Online Training in USA | INDIA

ENTERPRISE MANAGER NEW ENTERPRISE MANAGER NEW FEATURESFEATURES

• Streamlined browser-based interface that enables Streamlined browser-based interface that enables complete standby database lifecycle managementcomplete standby database lifecycle management

• Focus on:Focus on:• Ease of useEase of use• Management based on best practicesManagement based on best practices• Pre-built integration with other HA featuresPre-built integration with other HA features

Page 23: Oracle DataGuard Online Training in USA | INDIA

RAC SUPPORT – BROKERRAC SUPPORT – BROKER

• Now possible to use the Broker to create and Now possible to use the Broker to create and manage configurations that contain RAC primary manage configurations that contain RAC primary and RAC standby databasesand RAC standby databases

• Data Guard Broker interfaces with Oracle Data Guard Broker interfaces with Oracle Clusterware such that it has control over critical Clusterware such that it has control over critical operations during specific Data Guard state operations during specific Data Guard state transitions transitions

• Switchovers, failovers, protection mode changes, state Switchovers, failovers, protection mode changes, state changeschanges

Page 24: Oracle DataGuard Online Training in USA | INDIA

RAC Primary

Two standby dbs

Page 25: Oracle DataGuard Online Training in USA | INDIA

Instance specific

Page 26: Oracle DataGuard Online Training in USA | INDIA

EXAMPLE – EASE OF USEEXAMPLE – EASE OF USE

• Switchover using Enterprise Manager is now literally two Switchover using Enterprise Manager is now literally two mouse clicksmouse clicks

Page 27: Oracle DataGuard Online Training in USA | INDIA
Page 28: Oracle DataGuard Online Training in USA | INDIA
Page 29: Oracle DataGuard Online Training in USA | INDIA
Page 30: Oracle DataGuard Online Training in USA | INDIA
Page 31: Oracle DataGuard Online Training in USA | INDIA
Page 32: Oracle DataGuard Online Training in USA | INDIA

Switched!

Page 33: Oracle DataGuard Online Training in USA | INDIA

AGENDAAGENDA• Oracle Data Guard – a Quick IntroductionOracle Data Guard – a Quick Introduction• Data Guard & Features in Oracle Database 10gData Guard & Features in Oracle Database 10g• Customer Success Story – Sun MicrosystemsCustomer Success Story – Sun Microsystems• Summary & Q/ASummary & Q/A

Page 34: Oracle DataGuard Online Training in USA | INDIA

CASE STUDYCASE STUDY

• Oracle Data Guard at Sun MicrosystemsOracle Data Guard at Sun MicrosystemsDarl KuhnDarl KuhnSenior DBA, Staff EngineerSenior DBA, Staff Engineer

• Business decision considerationsBusiness decision considerations• ArchitectureArchitecture• ImplementationImplementation• Features we useFeatures we use

Page 35: Oracle DataGuard Online Training in USA | INDIA

PROJECT REQUIREMENTSPROJECT REQUIREMENTS• Patch and Knowledge databases for Sun Support Patch and Knowledge databases for Sun Support

ServicesServices• 7x24 High Availability7x24 High Availability

• Minimize scheduled downtimeMinimize scheduled downtime• Minimize unscheduled downtimeMinimize unscheduled downtime

• Disaster Recovery (DR) protectionDisaster Recovery (DR) protection• Do more with less resourcesDo more with less resources• Minimize costsMinimize costs• Minimize complexityMinimize complexity

Page 36: Oracle DataGuard Online Training in USA | INDIA

SOLUTIONS WE INVESTIGATEDSOLUTIONS WE INVESTIGATED

• Backup the database, restore from tapeBackup the database, restore from tape• Operating System failoverOperating System failover• Remote MirroringRemote Mirroring• Quest’s SharePlexQuest’s SharePlex• Oracle Advanced Replication (OAR)Oracle Advanced Replication (OAR)• Oracle Real Application Clusters (RAC)Oracle Real Application Clusters (RAC)• Oracle Data Guard (Standby)Oracle Data Guard (Standby)

Page 37: Oracle DataGuard Online Training in USA | INDIA

WE CHOSE DATA GUARDWE CHOSE DATA GUARD

• 7x24 DR protection7x24 DR protection• Simple to implementSimple to implement• Requires DBA with B&R skillsRequires DBA with B&R skills• Didn’t need special System Administration skills or Didn’t need special System Administration skills or

consultantsconsultants• Low maintenance (do more w/less DBAs)Low maintenance (do more w/less DBAs)• No extra licensing (built into Oracle9No extra licensing (built into Oracle9ii))

Page 38: Oracle DataGuard Online Training in USA | INDIA

IMPLEMENTATION DECISIONSIMPLEMENTATION DECISIONS

• Which data protection mode?Which data protection mode?• Maximum ProtectionMaximum Protection• Maximum AvailabilityMaximum Availability• Maximum PerformanceMaximum Performance

• We chose Maximum PerformanceWe chose Maximum Performance• Two identical serversTwo identical servers• Directory structures the sameDirectory structures the same• Database name the sameDatabase name the same• Introduce a delay in application of redoIntroduce a delay in application of redo

Page 39: Oracle DataGuard Online Training in USA | INDIA

MAXIMUM PERFORMANCEMAXIMUM PERFORMANCE

..

PrimaryDatabase

Primary DatabaseProduction Site

LocalArchiveRedo

ARCn

Standby DatabaseServer

Users

StandbyDatabase

CopiedArchiveRedo

ManagedRecovery

Process (MRP)

LGWR

On-lineRedoOnlineRedo

Remote FileServer (RFS)

Fetch ArchiveLog (FAL)

OracleNet

CopiedArchiveRedo

LocalArchiveRedo

Page 40: Oracle DataGuard Online Training in USA | INDIA

DATABASE ARCHITECTUREDATABASE ARCHITECTURE• 50M archive redo logs50M archive redo logs• 1 Gig of redo per day1 Gig of redo per day• Primary in ColoradoPrimary in Colorado• Standbys in North Carolina, Holland and SingaporeStandbys in North Carolina, Holland and Singapore• Database size currently 60 Gig Database size currently 60 Gig • Hardware Sun 6500, 280R, 4500Hardware Sun 6500, 280R, 4500• Storage T3 partner pair fiber channelStorage T3 partner pair fiber channel

Page 41: Oracle DataGuard Online Training in USA | INDIA

IMPLEMENTATION OF PHYSICAL IMPLEMENTATION OF PHYSICAL STANDBYSTANDBY

1. Ensure primary database is in archive log mode1. Ensure primary database is in archive log mode

Note: In Data Guard 10g, you also need to implement a Note: In Data Guard 10g, you also need to implement a password file for both Primary and Standbypassword file for both Primary and Standby

2. Take backup of primary database datafiles – options:2. Take backup of primary database datafiles – options:• RMANRMAN• HotHot• ColdCold• Do not backup controlfiles or online redo logsDo not backup controlfiles or online redo logs

Page 42: Oracle DataGuard Online Training in USA | INDIA

USING RMAN TO BUILD STANDBYUSING RMAN TO BUILD STANDBY

On Primary:On Primary:a)a) RMAN> backup database;RMAN> backup database;b)b) Copy backup pieces to StandbyCopy backup pieces to Standbyc)c) Create a Standby controlfile and copy to StandbyCreate a Standby controlfile and copy to Standby

Then on Standby:Then on Standby:a)a) SQL> startup nomount;SQL> startup nomount;b)b) SQL> alter database mount standby database;SQL> alter database mount standby database;c)c) RMAN> restore database;RMAN> restore database;d)d) SQL> alter database recover managed standby SQL> alter database recover managed standby

database disconnect;database disconnect;

Page 43: Oracle DataGuard Online Training in USA | INDIA

IMPLEMENTATION OF PHYSICAL IMPLEMENTATION OF PHYSICAL STANDBYSTANDBY

3. Copy backup datafiles to standby server3. Copy backup datafiles to standby server

4. Create a standby controlfile4. Create a standby controlfile

5. Copy the standby controlfile to standby server5. Copy the standby controlfile to standby server

6. Configure primary init.ora or spfile6. Configure primary init.ora or spfile

7. Copy primary database init.ora file to standby 7. Copy primary database init.ora file to standby server and make modifications for standby databaseserver and make modifications for standby database

8. Configure Oracle Net8. Configure Oracle Net

Page 44: Oracle DataGuard Online Training in USA | INDIA

IMPLEMENTATION OF PHYSICAL IMPLEMENTATION OF PHYSICAL STANDBYSTANDBY

9. Startup and mount standby database9. Startup and mount standby databaseSQL> startup nomount;SQL> startup nomount;SQL> alter database mount standby database;SQL> alter database mount standby database;

• Startup syntax is simplified in Oracle Data Guard Startup syntax is simplified in Oracle Data Guard 10g10gSQL> startup mount;SQL> startup mount;

• In Data Guard 10g, the “startup” will put the In Data Guard 10g, the “startup” will put the Standby into read-only modeStandby into read-only modeSQL> startup;SQL> startup;

Page 45: Oracle DataGuard Online Training in USA | INDIA

IMPLEMENTATION OF PHYSICAL IMPLEMENTATION OF PHYSICAL STANDBYSTANDBY

10. Enable managed recovery mode on Standby10. Enable managed recovery mode on StandbySQL> alter database recover managed standby SQL> alter database recover managed standby database disconnect;database disconnect;

• TroubleshootingTroubleshooting$ tail –f alert_BRDSTN.log$ tail –f alert_BRDSTN.log

• Almost all problems encountered were:Almost all problems encountered were:• TNS set up incorrectlyTNS set up incorrectly• Initialization parameters set wrongInitialization parameters set wrong

Page 46: Oracle DataGuard Online Training in USA | INDIA

PREVENTING USER ERRORSPREVENTING USER ERRORS• Logs copied but not applied for 60 minutesLogs copied but not applied for 60 minutes

• Used to have to manually script thisUsed to have to manually script thisSQL> alter database recover managed standby SQL> alter database recover managed standby database delay 60 disconnect;database delay 60 disconnect;

• To disable delay:To disable delay:SQL> alter database recover managed standby SQL> alter database recover managed standby database nodelay;database nodelay;

Page 47: Oracle DataGuard Online Training in USA | INDIA

USE OF READ-ONLY STANDBYUSE OF READ-ONLY STANDBY

• 7x24 business requirement for knowledge reporting7x24 business requirement for knowledge reporting• Primary database batch loaded once a dayPrimary database batch loaded once a day• How do we ensure that there will always be a database How do we ensure that there will always be a database

available?available?• Create two (or more) Standby databasesCreate two (or more) Standby databases• Shut down one at a time, apply redoShut down one at a time, apply redo

Page 48: Oracle DataGuard Online Training in USA | INDIA

USE OF READ-ONLY STANDBYUSE OF READ-ONLY STANDBY

..

PrimaryDatabase

Primary DatabaseProduction Site

ARCn

Two Separate Read-OnlyStandby Database Servers

DailyBatchLoad

Standby 2brdstn

OracleNet

Standby 1brdstn

Reports

l3srv1

l3srv2

Page 49: Oracle DataGuard Online Training in USA | INDIA

USE OF READ-ONLY STANDBYUSE OF READ-ONLY STANDBY• Let Oracle Net connection figure out which read-only Let Oracle Net connection figure out which read-only

physical Standby database availablephysical Standby database available

brdstn=brdstn=

(DESCRIPTION =(DESCRIPTION =

(LOAD_BALANCE=on) (ADDRESS=(PROTOCOL=tcp)(LOAD_BALANCE=on) (ADDRESS=(PROTOCOL=tcp)(HOST=l3srv1)(PORT=1521))(HOST=l3srv1)(PORT=1521))

(ADDRESS=(PROTOCOL=tcp)(HOST=l3srv2)(PORT=1521))(ADDRESS=(PROTOCOL=tcp)(HOST=l3srv2)(PORT=1521))

(CONNECT_DATA=(SERVICE_NAME=brdstn))(CONNECT_DATA=(SERVICE_NAME=brdstn))

))

Page 50: Oracle DataGuard Online Training in USA | INDIA

DISASTER HAPPENS…DISASTER HAPPENS…

• Haven’t had a “complete disaster”… yetHaven’t had a “complete disaster”… yet• We have had bad hardware cause failoversWe have had bad hardware cause failovers• We were able to easily failover to StandbyWe were able to easily failover to Standby

SQL> alter database activate standby database;SQL> alter database activate standby database;

• In Data Guard 9In Data Guard 9ii, we keep 9, we keep 9ii Primary init.ora on Standby Primary init.ora on Standby• In Data Guard 10g, VALID_FOR eliminates this needIn Data Guard 10g, VALID_FOR eliminates this need

Page 51: Oracle DataGuard Online Training in USA | INDIA

ARCHIVE GAP MANAGEMENTARCHIVE GAP MANAGEMENT

• This is one of our favorite Data Guard 9This is one of our favorite Data Guard 9ii features features• Addresses critical issues such as:Addresses critical issues such as:

• What if network or server is down?What if network or server is down?• After failure resolution, how is the standby caught up?After failure resolution, how is the standby caught up?

• In Oracle8In Oracle8ii Standby Database, we would manually fix Standby Database, we would manually fix• In Oracle9In Oracle9ii::

• Data Guard has automatic methods for gap resolutionData Guard has automatic methods for gap resolution• Fetch Archive Log (FAL) processesFetch Archive Log (FAL) processes• In our experience, very reliableIn our experience, very reliable

Page 52: Oracle DataGuard Online Training in USA | INDIA

PROPAGATION OF DATAFILE PROPAGATION OF DATAFILE OPERATIONSOPERATIONS

• Another task automated in Data Guard 9Another task automated in Data Guard 9ii

• In Oracle8In Oracle8ii Standby Database, add/drop Standby Database, add/drop tablespace/datafile commands not tablespace/datafile commands not automatically propagatedautomatically propagated

• DBA had to interveneDBA had to intervene

• In Oracle9In Oracle9ii Data Guard Data Guard• Fully automatedFully automated• In Standby initialization file:In Standby initialization file:

standby_file_management = autostandby_file_management = auto

Page 53: Oracle DataGuard Online Training in USA | INDIA

PROPAGATION OF DATAFILE PROPAGATION OF DATAFILE OPERATIONSOPERATIONS

Example:Example:SQL> drop tablespace HRM_SALA including contents SQL> drop tablespace HRM_SALA including contents and datafiles;and datafiles;

• On standby the tablespace HRM_SALA will be On standby the tablespace HRM_SALA will be automatically dropped and all datafiles will be automatically dropped and all datafiles will be deleted from diskdeleted from disk

• Note: If you rename a datafile, DBA must interveneNote: If you rename a datafile, DBA must intervene

Page 54: Oracle DataGuard Online Training in USA | INDIA

ORACLE DATA GUARD 10G BETA ORACLE DATA GUARD 10G BETA FEEDBACKFEEDBACK

• Logical Standby easier to setupLogical Standby easier to setup• Simplified SQL syntaxSimplified SQL syntax• More helpful, feature-rich initialization parametersMore helpful, feature-rich initialization parameters

Page 55: Oracle DataGuard Online Training in USA | INDIA

AGENDAAGENDA• Oracle Data Guard – a Quick IntroductionOracle Data Guard – a Quick Introduction• Data Guard & Features in Oracle Database 10gData Guard & Features in Oracle Database 10g• Customer Success Story – Sun MicrosystemsCustomer Success Story – Sun Microsystems• Summary & Q/ASummary & Q/A

Page 56: Oracle DataGuard Online Training in USA | INDIA

MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY ARCHITECTUREARCHITECTURE

• Best Practices on:Best Practices on: General Data Guard configurationGeneral Data Guard configuration Redo data transport mechanismsRedo data transport mechanisms Protection modesProtection modes Switchover/FailoverSwitchover/Failover Media recoveryMedia recovery SQL Apply configurationSQL Apply configuration Network configurationNetwork configuration Integration with other HA technologiesIntegration with other HA technologies

White papers1: MAA – detailed Media Recovery Site/Network configuration Fast-Start Checkpointing SQL Apply Best Practices Role Management

1. Ref. http://otn.oracle.com/deploy/availability/htdocs/maa.htm for latest updates

Page 57: Oracle DataGuard Online Training in USA | INDIA

DATA GUARD CUSTOMERSDATA GUARD CUSTOMERS

Health Care

Financial/Insurance

e-CommerceOther Industries

Manufacturing

Government

Utilities

TelecomTransportation

Page 58: Oracle DataGuard Online Training in USA | INDIA

CUSTOMER TESTIMONIALSCUSTOMER TESTIMONIALS

• ““Data Guard automates disaster-recovery procedures Data Guard automates disaster-recovery procedures and reduces Fidelity's exposure to data loss by an order and reduces Fidelity's exposure to data loss by an order of magnitude compared to previous approaches.”of magnitude compared to previous approaches.”

Jonathan Schapiro Jonathan Schapiro Vice President Vice President Data Architecture & Services Data Architecture & Services Global Equity Trading & Technology Global Equity Trading & Technology

Page 59: Oracle DataGuard Online Training in USA | INDIA

CUSTOMER TESTIMONIALSCUSTOMER TESTIMONIALS

• ““We needed to consider the safe-keeping of our We needed to consider the safe-keeping of our data, but we also needed to look at cost. Oracle data, but we also needed to look at cost. Oracle Data Guard provides everything for a high Data Guard provides everything for a high availability solution at a lower cost than other availability solution at a lower cost than other alternatives”alternatives”

Ann Collins Ann Collins Technical Director Technical Director

Page 60: Oracle DataGuard Online Training in USA | INDIA

CUSTOMER TESTIMONIALSCUSTOMER TESTIMONIALS

• ““We don't have to baby-sit it – it just We don't have to baby-sit it – it just works!”works!”

Darl Kuhn Darl Kuhn Senior DBA & Staff Engineer Senior DBA & Staff Engineer Database ServicesDatabase ServicesSun Services Global EngineeringSun Services Global Engineering

Page 61: Oracle DataGuard Online Training in USA | INDIA

WHY ORACLE DATA GUARD?WHY ORACLE DATA GUARD?1.1. Disaster Recovery & High AvailabilityDisaster Recovery & High Availability

• Easy failover/switchover between primary and standby databasesEasy failover/switchover between primary and standby databases

2. Complete data protection– Enables zero data loss, safeguard against data corruptions

3. Efficient utilization of system resources– Standby databases can be used for reporting, backups, queries

4. Balance data availability against performance– Flexible data protection/synchronization modes

6. Centralized and simple management– Push-button graphical interface for management and monitoring

5. Automatic resynchronization after restoration of network connectivity– Automatic archive gap detection and resolution with no manual intervention

Page 62: Oracle DataGuard Online Training in USA | INDIA

NEXT STEPSNEXT STEPSHIGH AVAILABILITYHIGH AVAILABILITY SESSIONS FROM ORACLESESSIONS FROM ORACLE

11:00 AM11:00 AM

How Oracle Database 10g How Oracle Database 10g Revolutionizes Availability and Revolutionizes Availability and

Enables the GridEnables the Grid

3:30 PM3:30 PM

Oracle Recovery Manager (RMAN) Oracle Recovery Manager (RMAN) 10g: Reloaded10g: Reloaded

5:00 PM5:00 PM

Proven Techniques for Maximizing Proven Techniques for Maximizing AvailabilityAvailability

8:30 AM8:30 AM

Oracle Database 10g - RMAN and ATA Oracle Database 10g - RMAN and ATA Storage in Action Storage in Action

    11:00 AM11:00 AM

Oracle Data Guard: Maximum Data Oracle Data Guard: Maximum Data Protection at Minimum CostProtection at Minimum Cost

  1:00 PM1:00 PM

Oracle Database 10g Time Navigation: Oracle Database 10g Time Navigation: Human-Error CorrectionHuman-Error Correction

  4:30 PM4:30 PM

Data Guard SQL Apply: Back to the Data Guard SQL Apply: Back to the FutureFuture

Wednesday in Moscone Room 304

Tuesday in Moscone Room 304

For More Info On : http://www.xoomtrainings.com/course/oracle-dataguard

Page 63: Oracle DataGuard Online Training in USA | INDIA

NEXT STEPSNEXT STEPSHIGH AVAILABILITYHIGH AVAILABILITY SESSIONS FROM ORACLESESSIONS FROM ORACLE

8:30 AM in Moscone Room 304Oracle Database 10g Data

Warehouse Backup and Recovery: Automatic, Simple, Reliable

8:30 AM in Moscone Room 104Building RAC Clusters over

InfiniBand

Thursday

For More Info On : http://www.xoomtrainings.com/course/oracle-dataguard

Real Application Clusters

Data Guard

Database Backup & Recovery

Flashback Recovery

LogMiner, Online Redefinition, and Cross Platform Transportable

Tablespaces

Database HA Demos All Four Days

In The Oracle Demo Campground

Page 64: Oracle DataGuard Online Training in USA | INDIA

REMINDER – REMINDER – PLEASE COMPLETE THE PLEASE COMPLETE THE

ORACLEWORLD ONLINE SESSION ORACLEWORLD ONLINE SESSION SURVEYSURVEY

THANK YOU.THANK YOU.

Page 65: Oracle DataGuard Online Training in USA | INDIA

AQ&Q U E S T I O N SQ U E S T I O N SA N S W E R SA N S W E R S