Deploying Active-Active Data Centers Using Oracle Database Solutions



Similar documents
Disaster Recovery for Oracle Database

Maximum Availability Architecture

Module 14: Scalability and High Availability

Daniela Milanova Senior Sales Consultant

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into

Oracle Maximum Availability Architecture with Exadata Database Machine. Morana Kobal Butković Principal Sales Consultant Oracle Hrvatska

DISASTER RECOVERY STRATEGIES FOR ORACLE ON EMC STORAGE CUSTOMERS Oracle Data Guard and EMC RecoverPoint Comparison

Oracle Active Data Guard

Case Study: Oracle E-Business Suite with Data Guard Across a Wide Area Network

Oracle Database Backup & Recovery, Flashback* Whatever, & Data Guard

ORACLE DATABASE HIGH AVAILABILITY STRATEGY, ARCHITECTURE AND SOLUTIONS

An Oracle White Paper January A Technical Overview of New Features for Automatic Storage Management in Oracle Database 12c

Oracle Data Guard. Caleb Small Puget Sound Oracle Users Group Education Is Our Passion

High Availability Solutions for the MariaDB and MySQL Database

Real-time Data Replication

Data Integration Overview

Oracle Database 10g: Backup and Recovery 1-2

<Insert Picture Here> Oracle In-Memory Database Cache Overview

Informix Dynamic Server May Availability Solutions with Informix Dynamic Server 11

<Insert Picture Here> Real-time database replication

Shadowbase Data Replication Solutions. William Holenstein Senior Manager of Product Delivery Shadowbase Products Group

Oracle Database 12c - Global Data Services

Microsoft SharePoint 2010 on VMware Availability and Recovery Options. Microsoft SharePoint 2010 on VMware Availability and Recovery Options

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Sanovi DRM for Oracle Database

Oracle Database 11g: RAC Administration Release 2

Maximize Availability With Oracle Database 12c

Comparing Microsoft SQL Server 2005 Replication and DataXtend Remote Edition for Mobile and Distributed Applications

Seamless Application Failover with Oracle Data Guard

High Availability Databases based on Oracle 10g RAC on Linux

The Future of PostgreSQL High Availability Robert Hodges - Continuent, Inc. Simon Riggs - 2ndQuadrant

Oracle Active Data Guard Far Sync Zero Data Loss at Any Distance

Oracle Database Disaster Recovery Using Dell Storage Replication Solutions

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Implement Streams Release 2. 5 Jours [35 Heures]

Contents. SnapComms Data Protection Recommendations

Oracle Data Guard for High Availability and Disaster Recovery

Maximum Availability Architecture

<Insert Picture Here> Oracle Cloud Storage. Morana Kobal Butković Principal Sales Consultant Oracle Hrvatska

Why Standardize on Oracle Database 11g Next Generation Database Management. Thomas Kyte

EXTENDED ORACLE RAC with EMC VPLEX Metro

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

An Oracle Technical White Paper October Oracle Data Guard 11g Data Protection and Availability for Oracle Database

Tips and Tricks for Using Oracle TimesTen In-Memory Database in the Application Tier

How To Use Exadata

Maximum Availability Architecture. Oracle Best Practices For High Availability

Oracle Data Integration Solutions GoldenGate New Features Summary

Eliminate SQL Server Downtime Even for maintenance

ScaleArc for SQL Server

be architected pool of servers reliability and

Flash Databases: High Performance and High Availability


Disaster Recovery Solutions for Oracle Database Standard Edition RAC. A Dbvisit White Paper

Backup and Recovery Solutions for Exadata. Ľubomír Vaňo Principal Sales Consultant

EMC VPLEX FAMILY. Continuous Availability and data Mobility Within and Across Data Centers

Oracle 11g Database Administration

HRG Assessment: Stratus everrun Enterprise

Non-Stop Hadoop Paul Scott-Murphy VP Field Techincal Service, APJ. Cloudera World Japan November 2014

High Availability Infrastructure for Cloud Computing

Nutanix Solution Note

Neverfail for Windows Applications June 2010

FIFTH EDITION. Oracle Essentials. Rick Greenwald, Robert Stackowiak, and. Jonathan Stern O'REILLY" Tokyo. Koln Sebastopol. Cambridge Farnham.

High Availability with Postgres Plus Advanced Server. An EnterpriseDB White Paper

HIGHLY AVAILABLE MULTI-DATA CENTER WINDOWS SERVER SOLUTIONS USING EMC VPLEX METRO AND SANBOLIC MELIO 2010

Oracle Database. High Availability Overview 10g Release 2 (10.2) B

TABLE OF CONTENTS THE SHAREPOINT MVP GUIDE TO ACHIEVING HIGH AVAILABILITY FOR SHAREPOINT DATA. Introduction. Examining Third-Party Replication Models

Enabling Database-as-a-Service (DBaaS) within Enterprises or Cloud Offerings

Backup and Recovery Solutions for Exadata. Cor Beumer Storage Sales Specialist Oracle Nederland

Oracle on System z Linux- High Availability Options Session ID 252

EMC VPLEX FAMILY. Continuous Availability and Data Mobility Within and Across Data Centers

NEC Corporation of America Intro to High Availability / Fault Tolerant Solutions

High Availability Infrastructure of Database Cloud: Architecture, Best Practices. Kai Yu Oracle Solutions Engineering, Dell Inc.

Real Application Testing. Fred Louis Oracle Enterprise Architect

SQL Server Storage Best Practice Discussion Dell EqualLogic

REDCENTRIC MANAGED DATABASE SERVICE SERVICE DEFINITION

Dbvisit Replicate. Dbvisit Replicate Overview

How To Test For A Test On A Test Server

Storage Based Replications

High Availability Database Solutions. for PostgreSQL & Postgres Plus

Techniques for implementing & running robust and reliable DB-centric Grid Applications

Appendix A Core Concepts in SQL Server High Availability and Replication

Ultimate Guide to Oracle Storage

In Memory Accelerator for MongoDB

Distributed Software Development with Perforce Perforce Consulting Guide

TOP FIVE REASONS WHY CUSTOMERS USE EMC AND VMWARE TO VIRTUALIZE ORACLE ENVIRONMENTS

Redefining Microsoft SQL Server Data Management. PAS Specification

Cloud Based Application Architectures using Smart Computing

Inge Os Sales Consulting Manager Oracle Norway

Comparing MySQL and Postgres 9.0 Replication

Rajesh Gupta Best Practices for SAP BusinessObjects Backup & Recovery Including High Availability and Disaster Recovery Session #2747

Oracle Database Backup-and-Recovery Best Practices and New Features

Maximum Availability Architecture

ORACLE DATABASE 10G ENTERPRISE EDITION

F5 and Oracle Database Solution Guide. Solutions to optimize the network for database operations, replication, scalability, and security

Cisco Active Network Abstraction Gateway High Availability Solution

Oracle Database Public Cloud Services

IP Storage On-The-Road Seminar Series

Innovative technology for big data analytics

Transcription:

1

Deploying Active-Active Data Centers Using Oracle Database Solutions Ashish Ray, Director of Product Management, Oracle Lawrence To, Consulting Member of Technical Staff, Oracle 2

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle s products remains at the sole discretion of Oracle. 3

Agenda Active-Active Data Centers Introduction Characteristics Requirements Solutions for the Oracle Database Oracle RAC Extended Clusters Oracle Data Guard Oracle Streams Summary Summarizing Oracle Active-Active Solutions <Insert Picture Here> 4

Active-Active Systems Definition Network of independent processing systems, connected to databases kept synchronized in a geographically distributed configuration, and managed through a unified interface Benefits: High Utilization High Availability High Flexibility 5

Active-Active Data Centers and Databases Active-active data centers ones which host copies of the same database that are actively accessed by various apps The copies are kept synchronized through some means Not active-active databases Active-active databases Data Center A Data Center B Data Center A Data Center B DB-a DB-b DB-a DB-b DB-b-copy DB-a-copy DB-b-copy DB-a-copy Database copies not accessed Some utilization of data center assets Database copies actively accessed Full utilization of data center assets 6

From a Data Perspective Globally deployed data-synchronized active data centers 7

Active-Active Deployment Key Decision Metrics 1.How far apart could the sites be? 2.How is the data kept synchronized? 3.How is high availability maintained? 4.How easily can the configuration be managed? Site Distance Data Synchronization High Availability Manageability 8

Active-Active Deployment Decision Metric Site Distance Issues to consider: 1. How far apart could the data centers be located? 2. What replication technology should be used? Distance Replication Site Distance 9

Active-Active Deployment Site Distance Issues Benefits of geographically separated data centers 24x7 work cycle follow-the-sun model Local access better performance High Availability protection from regional disasters Utilization leverage data centers after M&A Design decisions Choosing right network latency, bandwidth implications Choosing right replication protocol distance limitations 10

Active-Active Deployment Replication Technologies Host-based Replication 1. Specialized for a specific data source e.g. a database 2. Target storage can be open fits active-active requirement 3. Better / optimized protection from data corruptions 4. Selected data changes transferred better network utilization 5. No distance limitation Storage Array-based Mirroring 1. Works for all data e.g. both database and file systems 2. No access to target storage doesn t work well for active-active 3. Data corruptions will propagate between storage systems 4. All data changes transferred worse network utilization 5. Some distance limitation Host-Based Replication External or Internal to the Database? External replication: database integration lagging, separate process / admin overhead, synchronous replication not possible, may also support other databases Internal replication: built-in integration, unified admin interface, zero data loss through synchronous replication, typically supports the host database only 11

Active-Active Deployment Decision Metric Data Synchronization Issues to consider: 1. Could all databases be available read/write? 2. If reads occur anywhere, how to handle data latency? 3. If writes occur anywhere, how to handle data conflicts? Utilization Data Latency Data Conflict Data Synchronization 12

Active-Active Deployment Data Synchronization Issues Database Utilization Bi-Directional Multi-Master Configuration Both reads & writes directed to any system R/W R/W Hub & Spoke Configuration All writes to hub, local reads & writes to spokes Design decision Keeping the distributed systems in sync with each other R/W Hub R/W R/W R/W Spokes Master-Slave Configuration Writes directed to a designated Master system R/W R Any system can perform Reads Design decision R Keeping the reader systems in sync with the master 13

Active-Active Deployment Data Synchronization Issues Data Latency If writes and reads occur at two different systems by how much should readers lag the writers? Some reader-applications need latest data e.g. real-time reporting Some applications can work with stale data e.g. workflow apps Hybrid: work with stale data, but only till a specified limit on the staleness Synchronous Replication 1. Primary I/O gated till data transfer + secondary I/O are complete 2. Impact of network latency on primary processing 3. In disasters: zero data loss 4. Assurance: data freshness Asynchronous Replication 1. Data transfer to secondary systems detached from primary I/O 2. Minimal impact of network latency on primary processing 3. In disasters: some data loss 4. Assurance: performance Smarter synchronous replication: optimize data transfer such that not all primary I/O-s are blocked minimize impact on performance 14

Active-Active Deployment Data Synchronization Issues Data Conflicts Concurrent updates of same data at different locations Application Design Considerations How to Prevent Data Conflicts? Is the schema too complex? Is this a packaged app and can t be customized? Technology Considerations How to Detect and Resolve Conflicts? Does the technology provide the required capabilities? 15

Active-Active Deployment Data Synchronization Preventing Data Conflicts Use logical partitioning to designate master dataset Localized Partitioning Data specific to a region gets updated only at the local database (e.g. APAC data for a global financial company) Application Partitioning Data specific to an application gets updated at a specified database (e.g. shopping cart app vs. inventory app) Data Partitioning Designated data gets updated only at a designated database (e.g. a hashbased mechanism to route data to a designated database) Application must be able to deal with eventual consistency Application accessing the APAC database will have the latest APAC data but not necessarily the latest EMEA data 16

Active-Active Deployment Data Synchronization Detecting & Resolving Data Conflicts Detection Requirements An efficient logical replication mechanism based on primary/unique keys While applying changes from a remote database, a way to compare beforeimage of the changes with existing data of the local database Note: avoid system-generated primary keys will cause unnecessary conflicts An efficient comparison tool to validate data consistency on-demand Resolution Requirements Flexible means to resolve conflicts - some could be built-in e.g. higher value wins, lower value wins, overwrite local data, discard incoming data Should be extensible with specialized handler code to satisfy complex business requirements 17

Active-Active Deployment Decision Metric High Availability Issues to consider: 1. How to maintain uptime despite unplanned outages? 2. How to maintain uptime despite planned maintenance? 3. How to protect from data corruptions? Design decisions Determine the HA metrics: Recovery Point Objective (RPO) how much data loss can be afforded? Recovery Time Objective (RTO) how fast should you be back online? Unplanned Planned Data Protection High Availability 18

Active-Active Deployment High Availability Issues System Failures Individual system failures should not impact rest of the configuration E.g. site / network / server Required: Loosely-coupled configuration Fault isolation Ability to reconnect users to surviving systems Ability to resynchronize after system reinstated What if zero data loss is required? Consider using a separate disaster recovery (DR) solution in synchronous replication mode Users could reconnect to that system after DR failover 19

Active-Active Deployment High Availability Issues Scheduled Maintenance Similar principle: individual system maintenance should not impact rest of the configuration HW & SW upgrades / patching Platform migration Data Center migration Required: Loosely-coupled configuration Ability to reconnect users to other systems while master system unavailable Seamless resynchronization once maintenance complete 20

Active-Active Deployment Decision Metric Manageability Is the configuration Simple to set up, operate and administer? Flexible to adapt to new business requirements? Scalable to meet business growth? Integrated out-of-the-box? Design decisions Determine operational Service Level Objectives: Automatic management with minimal manual intervention Capability of alerts / fine-grained monitoring Extensibility and integration with minimal impact Creating Monitoring Extending Manageability 21

Active-Active Deployment Manageability Issues Create, Monitor, Extend Creating the initial configuration What methods are available to create initial setup? What s used replica of existing database / subset / transformed? Is any downtime incurred during the creation? Monitoring the configuration Is fine-grained monitoring available? How easy it is to identify bottlenecks? How does one measure latency, esp. if it is tied to SLAs? How are suitable alerts raised and handled? Extending the configuration globally? Is there any impact on existing systems while creating new sites? Is there any limit on the number of sites supported? Does the configuration scale as new sites are added? Does the configuration allow appropriate heterogeneity? 22

Next Oracle Active-Active Solutions Evaluating Oracle RAC Extended Clusters Oracle Data Guard Oracle Streams with respect to Site Distance Data Synchronization High Availability Manageability 23

Agenda Active-Active Data Centers Introduction Characteristics Requirements Solutions for the Oracle Database Oracle RAC Extended Clusters Oracle Data Guard Oracle Streams Summary Summarizing Oracle Active-Active Solutions <Insert Picture Here> 24

Oracle RAC Extended Clusters 25

RAC Extended Cluster What Is It? An Oracle Real Application Clusters (RAC) configuration deployed over two sites separated within metro distance (~25 Km) Both sites are fully active (read / write), but tightly coupled to access the same clustered database If one site goes down, users at the other site are unaffected Easy way to extend the High Availability benefits of a traditional RAC configuration 26

Traditional RAC Configuration Application Access Application Access N1 N2 N3 N4 Same Data Center 27

RAC Extended Cluster Configuration Application Access Extended Cluster N1 N2 N3 N4 Application Access Data Center A Cluster Interconnect Data Center B Remote Mirroring One Database 28

RAC Extended Cluster Distance & Data Synchronization Ideal for metro distances (25 Km or less) RAC Cache Fusion message traffic and Disk I/O traffic now have to traverse the inter-site network => additional network latency Redundant, high bandwidth network required <10 KM, direct cables; >10 KM, need Dark fibre / DWDM Performance impact analysis is required Both sites could be fully active (read/write) One database => no data conflicts, no data latency ASM mirroring recommended Can t use storage-array mirroring no access to mirrored volumes 29

RAC Extended Cluster High Availability Limited protection from site failures Zero data loss on site failures Users at one site may continue despite failure of other site With RAC Fast Application Notification (FAN), users of failed site may be directed to the other site within a few seconds and rebalanced after a node and instance and reinstated Follow MAA best practices to minimize failover times Tune _FAST_START_INSTANCE_RECOVERY_TARGET Set FAST_START_PARALLEL_ROLLBACK=HIGH Optimize I/O Protection for metro-distance only (no protection from regional disasters, database-wide or cluster-wide problems) Limited support for data corruption protection ASM allows reading from secondary extents if primary extent corrupted, and also replacing corrupted extent with a valid mirror copy Corruptions may be propagated to mirror site Limited support for planned maintenance Rolling application of one-off database software patches, CPUs, CRS and ASM Rolling hardware upgrades, but requires identical platform architecture No support for rolling database upgrades 30

RAC Extended Cluster Manageability Managed as a single unified RAC configuration through Oracle Enterprise Manager Leverages RAC administration / monitoring capabilities of EM Additional work required for network setup and monitoring Performance and outage testing is a required Additional setup and administration of third site (voting disk) No downtime to add nodes / instances / disks at either cluster sites Leverages RAC scalability capabilities Scales reads and writes with correct design and tuning Supports only two sites for the cluster 31

RAC Extended Cluster Enhancements ASM Fast Mirror Resync ASM keeps track of changes directed to a failed disk for a time duration configured through the DISK_REPAIR_TIME parameter When failed disks replaced, they are quickly synchronized No need to rebuild an ASM failure group after transient storage errors ASM Preferred Read Failure Groups ASM may be configured to read from a secondary extent if that extent is local to the node, instead of reading from the primary extent which may be farther from the node Uses ASM_PREFERRED_READ_FAILURE_GROUPS parameter to specify a list of failure group names as the preferred read disk 32

RAC Extended Cluster for Active-Active Bottom Line Ideally suited for prospective / existing RAC users who want to build a single clustered database spanning data centers located within metro distance Pros Both sites are fully active Additional HA compared to traditional RAC Cons Does NOT provide full HA / DR / Data Protection (Data Guard needed) Customers need to be aware of the design limitations Resources: Oracle Whitepaper: Oracle Real Application Clusters on Extended Distance Clusters, http://www.oracle.com/technology/products/database/clustering 33

Oracle Data Guard 34

Oracle Data Guard What Is It? Data Availability & Data Protection solution for Oracle Automates the creation and maintenance of one or more synchronized copies (standby) of the production (or primary) database If the primary database becomes unavailable, a standby database can easily assume the primary role Feature of Oracle Database Enterprise Edition (EE) Basic feature available at no extra cost Active Data Guard (Oracle Database 11g) is extra license option Primary and standby databases need to be licensed EE 35

Data Guard Architecture Production Database Network Sync or Async Redo Shipping Dallas Redo Apply Physical Standby Open R/O* Backup Broker DIGITAL DATA STORAGE DIGITAL DATA STORAGE Chicago Transform Redo to SQL Logical Standby Open R/W * With Oracle Active Data Guard in Oracle Database 11g SQL Apply Boston 36

Data Guard Redo Apply Primary Database Data Guard Broker Physical Standby Database Open Read-Only* Redo Apply Network Redo Shipment Standby Redo Logs Backup DIGITAL DATA STORAGE Physical Standby Database is a block-for-block copy of the primary database Uses the database recovery functionality to apply changes While apply active, can be opened in read-only mode for reporting/queries* Can also be used for fast* backups, further offloading the production database * Requires additional license for Active Data Guard 37

Data Guard SQL Apply Additional Indexes & Materialized Views Primary Database Data Guard Broker Transform Redo to SQL and Apply Logical Standby Database Network Open Read - Write Redo Shipment Standby Redo Logs 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 redo data is being applied via SQL Can create additional indexes and materialized views for better query performance 38

Active-Active Databases with Data Guard Redo Apply or SQL Apply? Redo Apply Active-Active requires Active Data Guard (Oracle Database 11g) Physical standby database can only be opened for reads No local writes, hence no dataconflicts Higher performance SQL Apply Active-Active supported with SQL Apply starting with Oracle9i Release 2 Local writes allowed for unprotected / skipped tables on logical standby database No data-conflict handling for local writes Involves extra transformation to SQL Supports all datatypes Doesn t support certain datatypes 39

Reader Farm with Active Data Guard Scale-out query performance to web-scale Single Node updates queries queries Active Data Guard Reader Farm queries queries queries Production Database Standby Databases 40

Data Guard Distance & Data Synchronization No distance limitation Leverages Oracle Net Services & TCP/IP for redo block transport Asynchronous redo transport minimal impact for 1000 s of miles Smart synchronous redo transport transmits only redo blocks, may span hundreds of miles with minimal impact on application throughput Standby sites could at best be open read-only Standby databases kept in sync through redo block transport Redo Apply can support high throughput (e.g. 50 MB/sec redo rate) May configure SYNC or ASYNC for redo transport Updates occur only on the primary => no data conflicts Synchronous redo transport + real-time apply => minimal read latency (few seconds) 41

Data Guard High Availability Protection from site & network failures With Fast-Start Failover users of failed site are automatically directed to the standby site within a few seconds Old primary database is automatically reinstated as new standby Zero data loss on site failures with synchronous redo transport Effective protection from regional disasters Standby automatically synchronized with primary after fixing temporary network failures Protection from data corruptions Corruptions not propagated to standby site: benefits of fault isolation from Data Guard s loosely coupled architecture Upon data corruptions at primary, best to failover to valid standby and continue Oracle Database 11g enhancement: detection of lost writes with Data Guard Extensive support for planned maintenance Rolling application of one-off database software patches Rolling database upgrades Rolling hardware upgrades, data center migration Some heterogeneous platforms* (e.g. Windows -> Linux, PA-RISC -> Itanium) * Ref. MetaLink Note 413484.1 42

Data Guard Manageability Managed as a unified configuration through Oracle Enterprise Manager, or Data Guard Broker CLI (DGMGRL) Simple interface for several complex operations (e.g. switchover) Fine-grained monitoring E.g. track standby data latency with respect to the primary - transport lag, apply lag from V$DATAGUARD_STATS No downtime during creation / addition of standby databases Standby databases created with online RMAN backups of the primary Easy way to scale read-access for web-facing applications Up to nine standby databases may be directly linked with the primary (ref. MetaLink Note 409013.1) 43

Data Guard for Active-Active Bottom Line Ideally suited for customers primarily interested in HA + DR, but who also want to maximize their DR resource utilization Pros Best HA + DR + data protection solution Simple Cons Standby databases may be effectively utilized only for reads Limited support for heterogeneous platforms Resources: OTN: Data Guard, http://www.oracle.com/technology/deploy/availability/htdocs/dataguardoverview.html 44

Oracle Streams 45

Oracle Streams What Is It? Simple solution for information sharing Provides Uniquely flexible information sharing Active/Active replication Real-time ETL for data warehouses Availability during database migration Availability during application upgrade Message queuing Event management and notification 46

Streams Architecture Powerful Solution for Information Sharing Source Database Target Database Propagate Redo Logs Capture Apply1 Apply2 All sites active and updateable Automatic conflict detection & optional resolution Supports data transformations Database platform / release / schema structure can differ Some datatypes are not supported Transparent Gateway Non-Oracle Database 47

Streams Ideal for Active-Active Deployment Asynchronous message-driven architecture Loosely coupled, fault isolated All sites updateable, data conflict detection / resolution Numerous ways to extend based on business rules Interface through PL/SQL APIs Ability to deploy custom code at various interfaces High performance log-based capture of changes No need to define custom triggers No need to create additional files outside the database Supports a wide variety of active-active configurations N-way multi-master, bi-directional, hub & spoke, etc. Logical change capture allows significant heterogeneity 48

Streams Distance & Data Synchronization No distance limitation Leverages Oracle Net Services & TCP/IP for propagating changes Asynchronous propagation allows deployment across 1000 s of miles Synchronous redo transport also possible through downstream capture All Streams sites can be fully active (read/write) Databases kept in synch through capture & apply of logical changes Automatically detects various data conflicts during apply update, uniqueness, delete, foreign key Provides pre-built conflict handlers to resolve update conflicts OVERWRITE, DISCARD, MAXIMUM, MINIMUM Also allows creation of custom conflict handlers to resolve data conflicts DBMS_COMPARISON New package in Oracle Database 11g to compare tables, views, materialized views across replicated databases, and converge them so they are consistent 49

Streams Data Synchronization Best Practices If replicating DDL, perform DDL from single database Consider impact of specific DDL across multiple databases Example: Compiling procedures, functions For key columns generated from sequences: Manage separate sequence ranges across databases Change start and increment by settings Odd/even Last digit indicates database (modulo) Use unique string in combination with sequence as key Avoid replication cycles by setting Streams Tag Tag is null by default Changes made by Streams Apply process have non-null tags Rules indicate if tagged LCRs are replicated Tag can be set in local user session to avoid replication of specific session changes 50

Streams High Availability Protection from site & network failures Users at other sites may continue despite failure of one or more sites Users of failed sites could be directed to the valid sites within a few seconds Real-time asynchronous change propagation ensures minimal data loss Automatic re-synchronization after restoring failed systems or fixing temporary network failures Protection from data corruptions Corruptions not propagated to replicated site: benefits of fault isolation from Stream s loosely coupled architecture Upon data corruptions at source, best to redirect to a valid target and continue Best support for planned maintenance Rolling application of all database software and CPU patches Rolling database upgrades Rolling hardware upgrades, data center migration Heterogeneous OS platforms, database releases and character sets Rolling application upgrades in some cases 51

Streams Manageability Managed as a unified configuration through Oracle Enterprise Manager, or through extensive PL/SQL APIs DBMS_STREAMS_ADM package provides various MAINTAIN_* procedures that significantly simplify setting up a Streams configuration Operational investment to handle conflicts and for advanced tuning Fine-grained monitoring Streams Performance Advisor (new in Oracle Database 11g) allows monitoring of various Streams components (DBMS_STREAMS_ADVISOR_ADM and UTL_SPADV packages) No downtime during creation / addition of Streams targets Replicated databases may be created using RMAN (including from a physical standby), Data Pump, Transportable Tablespace No theoretical limit on the number of destinations supported by a source, but need to monitor performance for complex configurations 52

Streams for Active-Active Bottom Line Ideally suited for customers who want a flexible way to distribute data across geographical boundaries, with maximum utilization of all databases Pros Best support for active-active databases Flexible Cons Not application transparent doesn t support certain datatypes Some performance dependency on transaction profiles Resources: OTN: Streams, http://www.oracle.com/technology/products/dataint/index.html 53

Agenda Active-Active Data Centers Introduction Characteristics Requirements Solutions for the Oracle Database Oracle RAC Extended Clusters Oracle Data Guard Oracle Streams Summary Summarizing Oracle Active-Active Solutions <Insert Picture Here> 54

Implementing Active-Active Databases with Oracle Solutions Deploying active-active sites? Oracle s recommended solution: Oracle Streams Best support for global, update-everywhere topologies May be complemented with Data Guard for best disaster protection Data Guard is the best choice for reader farms RAC Extended Clusters is applicable in selected configurations Recommended strategy Understand current and future requirements Understand active-active design issues Understand relative capabilities of each solution Choose the one that is the best fit Test, test, test! 55

Global Automotive Manufacturer Using Streams + Data Guard for Global Active-Active Deployment Streams Replica Streams Replica Central Hub Streams Replicas Physical Standby Streams Replica 1 TB central engineering repository (hub) maintained at HQ Replicas (spokes) at factories worldwide for fast, reliable, local access Replicas synchronized with Streams Physical standby for protecting central repository $100,000 - $200,000/hr per site savings in downtime costs Fully bi-directional, automatic conflict detection and resolution Minimum subset of data replicated across WAN (about 1/3 out of 200 tables) 56

HA Sessions, Labs, Demos From Oracle Development Mon, Sep 22 2:30 pm - Database 11g: Next-Gen HA, Moscone South 103 Tue, Sep 23 9:00 am - Active-Active Data Centers, Moscone South 103 11:30 am - Sharding with Oracle, Moscone South 302 11:30 am - HA with Oracle VM, Moscone West 3024 1:00 pm - Active Data Guard, Moscone South 104 Wed, Sep 24 9:00 am - Fusion Middleware Grid HA, Marriott Nob Hill AB 11:30 am - RMAN Best Practices, Moscone South 103 1:00 pm - Database in the Cloud, Moscone South 305 5:00 pm - Data Guard & Real Application Testing, Moscone 102 Wed, Sep 24 (contd.) 5:00 pm - EM in Secure MAA, Moscone West 2001 5:00 pm - E-Business Suite HA, Moscone West 2002/04 Thu, Sep 25 9:00 am - Oracle Secure Backup, Moscone South 102 10:30 am - Streams Replication, Moscone South 102 12:00 pm - Rolling Database Upgrades, Moscone South 103 1:30 pm - Streams Performance, Moscone South 102 3:00 pm - Oracle Grid Computing, Moscone South 303 3:00 pm - E-Business Suite R12 MAA, Moscone West 2007 3:00 pm - Siebel MAA, Moscone South 308 3:00 pm - Fusion SOA HA & Scalability, Marriott Salon 14/15 Hands On Labs - Thu, Sep 25 10:30-11:30 am, 12:00-1:00 pm - Active Data Guard, Marriott Golden Gate A3 DEMOgrounds, Mon-Thu Active Data Guard, Streams, Oracle Secure Backup, RMAN/Flashback, MAA 57

For More Information search.oracle.com or oracle.com 58

59