implementing oracle9i data guard

27

Upload: thisbe

Post on 09-Feb-2016

59 views

Category:

Documents


0 download

DESCRIPTION

Session id: 36226. Implementing Oracle9i Data Guard. Michael New Senior Technical Consultant ThinkSpark. Data Guard - Outline. Concepts Architecture Best practices Implementation. Concepts. Differentiate High Availability approaches Enhanced protection modes Maximum Protection - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Implementing Oracle9i Data Guard
Page 2: Implementing Oracle9i Data Guard

Implementing Oracle9i Data Guard

Michael NewSenior Technical Consultant

ThinkSpark

Session id: 36226

Page 3: Implementing Oracle9i Data Guard

Data Guard - Outline

Concepts Architecture Best practices Implementation

Page 4: Implementing Oracle9i Data Guard

Concepts

Differentiate High Availability approaches Enhanced protection modes

– Maximum Protection– Maximum Availability– Maximum Performance

Standby Redo Logs (SRLs) Automatic gap resolution Data Guard broker

– Data Guard Manager (OEM)– Command-line interface (CLI)

Page 5: Implementing Oracle9i Data Guard

Concepts

Protection Mode Data loss Divergence

Maximum Protection

Maximum Availability

Maximum Performance

None

Some

None

None

YesMinimal

Page 6: Implementing Oracle9i Data Guard

Architecture

Source: Oracle9i Data Guard Concepts and Administration

Page 7: Implementing Oracle9i Data Guard

Architecture

Log Transport (LGWR, ARC, FAL, RFS)– Archive log permissions, destinations, transmission,

reception & transmission failure resolution– LGWR or ARC can write from primary to standby

Log Apply (MRP or LSP)– Managed recovery (not read-only) mode– SQL apply mode

Role Management– Primary or Standby– Switchovers, graceful or forced failovers

Data Guard Broker (DMON)

Page 8: Implementing Oracle9i Data Guard

Best Practices

FORCE LOGGING mode Identical sites Initialization parameters Oracle network Standby redo logs (SRLs) Monitoring

FORCE LOGGINGIdentical sitesinit.oraOracle NetSRLsMonitoring

Page 9: Implementing Oracle9i Data Guard

FORCE LOGGING Mode New feature to Release 9.2 Prevents unlogged direct writes from

propagating to standby Overrides NOLOGGING transactions

FORCE LOGGINGIdentical sitesinit.oraOracle NetSRLsMonitoring

Page 10: Implementing Oracle9i Data Guard

Identical Sites

Logical structures – partition names, directories/files, privileges, accounts, etc.

Network configurations– Oracle– O/S

Hardware environments

FORCE LOGGINGIdentical sitesinit.oraOracle NetSRLsMonitoring

Page 11: Implementing Oracle9i Data Guard

Initialization Parameters…. Use SPFILE Initialization settings (except 4) No environment variables STANDBY_ARCHIVE_DEST=LOG_ARCHIVE_DEST1 LOG_ARCHIVE_DEST_3 = … ALTERNATE … LOG_ARCHIVE_DEST_1 = … ARCH … Disable ARCHIVE_LAG_TARGET Unset DB_CREATE_ONLINE_LOG_DEST_n Tune CONTROL_FILE_RECORD_KEEP_TIME

FORCE LOGGINGIdentical sitesinit.oraOracle NetSRLsMonitoring

Page 12: Implementing Oracle9i Data Guard

Initialization Parameters

LOG_ARCHIVE_DEST_2 attributes– OPTIONAL– LGWR– ASYNC– NOAFFIRM– REOPEN– MAX_FAILURE– DELAY– NET_TIMEOUT

FORCE LOGGINGIdentical sitesinit.oraOracle NetSRLsMonitoring

Page 13: Implementing Oracle9i Data Guard

Oracle Network…

Static SID registration Connect-time failover Alternate standby location Session Data Unit (SDU) setting

FORCE LOGGINGIdentical sitesinit.oraOracle NetSRLsMonitoring

Page 14: Implementing Oracle9i Data Guard

Oracle Network

Same network file structure Listeners

– Database clients – stop stby lsnr– Redo log & DBA traffic

tnsnames.ora files– Local node– database clients– DBAs

FORCE LOGGINGIdentical sitesinit.oraOracle NetSRLsMonitoring

Page 15: Implementing Oracle9i Data Guard

Standby Redo Logs SRLs on all sites Same # SRLs on all sites Same SRL names on all sites Redo logs & SRLs the same size # SRL groups = 1 + (# redo log groups) SRL groups < MAXLOGFILES SRL members < MAXLOGMEMBERS

FORCE LOGGINGIdentical sitesinit.oraOracle NetSRLsMonitoring

Page 16: Implementing Oracle9i Data Guard

Monitoring OEM Data Guard Diag Pack events Alert log ORA- errors Alert log non ORA- errors V$ views - scripts (White Paper, Appendix 3)

FORCE LOGGINGIdentical sitesinit.oraOracle NetSRLsMonitoring

Page 17: Implementing Oracle9i Data Guard

Implementation…. FORCE LOGGING Identical sites

– O/S clocks– /etc/hosts– Environment variables & DBA scripts

Initialization parameters (SPFILE) Oracle network configuration files ARCHIVELOG mode & automatic archiving Backup primary database Create standby control file

Page 18: Implementing Oracle9i Data Guard

Implementation Copy backup to standby site Recover standby database

– Mount standby database– Create SRLs– Start new listeners– Recover standby– Place standby in managed recovery mode– Enable LOG_ARCHIVE_DEST_STATE_2 on primary– Set protection mode on primary– Verify standby works

Enable Data Guard broker

Page 19: Implementing Oracle9i Data Guard

Next Steps….

Michael New, [email protected], 800-846-4082, ext. 104

Recommended sessions– Oracle Data Guard: Maximum Data Protection at

Minimum Cost– Data Guard SQL Apply: Back to the Future

Recommended demos and/or hands-on labs– Using Data Guard Manager to Manage a

Standby Database

Page 20: Implementing Oracle9i Data Guard

Next Steps…. See Your Business in Our Software

– Visit the DEMOgrounds for a customized architectural review, see a customized demo with Solutions Factory, or receive a personalized proposal. Visit the DEMOgrounds for more information.

Relevant web sites to visit for more information– Oracle High Availability Guidelines & Recommendations:

M. Burke, 2003, ThinkSpark – [email protected]– Data Guard Overview:

http://otn.oracle.com/deploy/availability/htdocs/odg_overview.html

Page 21: Implementing Oracle9i Data Guard

Next Steps

Relevant web sites to visit for more information– Data Guard Technical White Paper on OTN:

http://otn.oracle.com/deploy/availability/pdf/DG92_TWP.pdf– Data Guard Technology Overview Presentation on OTN:

http://otn.oracle.com/deploy/availability/pdf/DataGuardTechnologyOverview.pdf

– Data Guard Primary Site & Network Configuration Best Practices: http://otn.oracle.com/deploy/availability/pdf/MAA_DG_NetBestPrac.pdf

Page 22: Implementing Oracle9i Data Guard

Reminder – please complete the OracleWorld online session survey

Thank you.

Page 23: Implementing Oracle9i Data Guard

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

Page 24: Implementing Oracle9i Data Guard
Page 25: Implementing Oracle9i Data Guard

Implementing Oracle9i Data Guard

Michael NewSenior Technical Consultant

ThinkSpark

Session id: 36226

Page 26: Implementing Oracle9i Data Guard

Implement B&R – DG is HA (not B&R) Solution

B&R addresses database integrity & recovery DG is HA solution to reduce MTTR, premised on

reliable B&R solution Without B&R, data loss possible with DG because of

– Primary / secondary loss of network communication– Standby maintenance downtime – Hardware failure due to multiple devices– Hardware failure during role reversal– logical corruption (if propagated to the standby)

Page 27: Implementing Oracle9i Data Guard

ThinkSparkThinkSpark

For more than 15 years, ThinkSpark has been a world-class technology partner to those businesses that have invested in Oracle technologies and solutions. ThinkSpark has delivered unmatched Oracle database expertise, Oracle systems integration skills, Oracle education services and Oracle license management insights to thousands of businesses across the country and around the globe. Headquartered in Dallas, ThinkSpark's more than 100 professionals serve clients across all industries through facilities in Austin, Dallas, Houston, Las Vegas,

Oklahoma City and San Antonio. For more information about ThinkSpark, call (888) 262-6043 from the U.S., Canada and Mexico or visit

ThinkSpark on the World Wide Web at http://www.thinkspark.com/.