60
Oracle Database 12c Global Data Services (GDS) Nagesh Battula Sr. Principal Product Manager, Oracle Mark Dilman Consulting Member of Technical Staff, Oracle Al Fischer IT Manager, Database Services, Amway

Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

  • Upload
    others

  • View
    15

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Oracle Database 12c Global Data Services (GDS) Nagesh Battula Sr. Principal Product Manager, Oracle Mark Dilman Consulting Member of Technical Staff, Oracle Al Fischer IT Manager, Database Services, Amway

Page 2: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Safe Harbor Statement

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.

Page 3: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 3

Optimize Oracle Active Data Guard/Oracle GoldenGate: Oracle Database 12c Global Data Services [CON8704]

Oracle Active Data Guard and Oracle GoldenGate enable distribution of application workloads across replicated databases. However, when applications are spread across multiple databases and data centers, it can be challenging to efficiently use all the databases for best performance and availability. In this session, Oracle Product Development experts introduce a unique new scalability and availability feature of Oracle Database 12c: Global Data Services. It enables region-based workload routing, load balancing, and service failover across replicated databases, within and across data centers. Learn how you can maximize utilization of your replication investments with Global Data Services while enabling a seamless distributed private data cloud for your IT.

Abstract

Page 4: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 4

Program Agenda

Workload Management Challenges of Replicas – 5 min

Introduction to Oracle Global Data Services (GDS) – 10 min

GDS Architecture & Use Cases– 15 min

Amway, “Increase the Nines” – 10 min

GDS Internals – 15 min

Summary – 5 min

Page 5: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Database Workload Management

Sub-optimal resource utilization – No automated load balancing

Application outages when replicas fail – No Service HA

Workload on replicas managed in silos – No centralized workload management

Solution: A holistic automated workload management framework for replicated databases

Challenges in Replicated Environments

?

Oracle GoldenGate

Primary Active Standby Active Standby

Active Data Guard

Data Center #1 APAC Region

Data Center #2 EMEA Region

Page 6: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Database 12c: Global Data Services (GDS)

Workload routing & balancing, Service failover & management for replicas (1 or more data centers) – Takes into account

DB instance load, Network latency Workload management policies (region affinity,

load balancing goals, DB cardinality, DB role, replication lag tolerance)

Benefits – Better performance & availability for applications – Global resource management with a single

framework

Workload Management for Replicas

Oracle GoldenGate

Primary Active Standby Active Standby

Active Data Guard

Data Center #1 APAC Region

Data Center #2 EMEA Region

Global Data Services

Global Service Failover

Load Balancing Load Balancing

GDS Unified Framework

Page 7: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Automated Workload Management for Replicas

Workload Routing ( Region-based & Lag based) Load Balancing (Connect-time & Run-time )

Global Service Failover Role-based Global Services

Centralized Service Management

GDS Capabilities

Page 8: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

8 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

GDS Configuration – In a Nutshell

Global Service Manager (GSM): – Regional listener to the incoming database connections

– Performs Connect-time load balancing

– Publishes Run-time load balancing advisory

– Service failover & management

GDS Catalog: stores GDS configuration metadata

GDSCTL: CLI to administer GDS configuration (GUI support of GDS in EMCC DB Plug-in 12.1.0.5)

GDS Region: Group of databases and clients in close network proximity, e.g., East, West

GDS Pool: Databases that offer a common set of global services, e.g., HR, Sales

Global Service: Database Service provided by multiple databases with replicated data

– Local service + {Locality, replication lag, database cardinality, load balancing goals}

– Establish workload management policies via Service attributes

Data Center #2 EMEA Region

Data Center #1 APAC Region

Clients (Users) Clients (Users)

App/Middleware App/Middleware

Replication

GDS Framework

GDSCTL and EMCC

GDS Catalog Primary

GDS Catalog Standby

Global Service Managers

Global Service Managers

SALES POOL (sales_report_srvc, sales_entry_srvc)

SALES Databases

Page 9: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

GDS Enabled Applications – Blue Print

Data Center #2 EMEA Region

Data Center #1 APAC Region

GDSCTL and EMCC

GDS Catalog Primary

GDS Catalog Standby

Global Service Managers

Global Service Managers

Clients (Users) Clients (Users)

App/Middleware App/Middleware

Replication

SALES POOL (sales_report_srvc, sales_entry_srvc)

SALES Databases

GDS is a shared infrastructure

One GDS configuration manages – 300 Database Instances – 1000 Global Services – 20 GDS Pools – 10 GDS Regions – 5 GSMs per Region – 100 Mid-tier connection pools

Databases in GDS – Must be licensed for Oracle Active Data Guard

and/or Oracle GoldenGate – Oracle Streams & 3rd Party replication

technologies are supported – Must be Oracle Database EE 12.1 or greater – Can be Oracle Multitenant or non-Multitenant

HR POOL(hr_apac_srvc, hr_emea_srvc)

Replication

HR Databases

GDS Framework

Page 10: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

10 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

GDS Deployment

Install GSM software on GSM servers – Min of 1 GSM per region – Recommended 3 GSMs/region

Setup GDS Administrator accounts & privileges Configure GDS

– Create GDS Catalog – Add GSMs, Regions, Pools, Databases, Global Services

Setup client connectivity

High Level Steps

Page 11: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

11 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Client Connectivity in GDS

(DESCRIPTION=

(FAILOVER=on)

(ADDRESS_LIST=

(LOAD_BALANCE=ON)

(ADDRESS=(global_protocol_address_information))

(ADDRESS=(global_protocol_address_information)))

(ADDRESS_LIST=

(LOAD_BALANCE=ON)

(ADDRESS=(global_protocol_address_information))

(ADDRESS=(global_protocol_address_information)))

(CONNECT_DATA=

(SERVICE_NAME=global_service_name)

(REGION=region_name)))

Clients connect to GSM instead of the database listener

– GDS forwards the connection to the local listener (bypassing the SCAN listeners)

TNS-entries must contain two lists of addresses:

– One list of local GSMs for load balancing and intra-region failover

– Another list of addresses for remote GSMs for inter-region failover

Clients specify global service name and which region they are in.

APAC’s GSMs

EMEA’s GSMs

Page 12: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

12 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Global Service Attributes Preferred

– Databases designated to provide the Global Service

Available – Databases that provide Global Service if not enough Preferred databases are

running – If one of the preferred databases fails, then GSM maintains the cardinality of the

Global service by starting the service on an Available database

Preferred_All – All databases in a GDS Pool are preferred for the Global Service

Options for Add Service : {-preferred_all | -preferred dbname_list [-available dbname_list] }

– GDSCTL>add service -service sales_qry_srvc -gdspool sales -preferred sfo -available bos

– GDSCTL>add service -service sales_reporting_srvc -gdspool sales -preferred_all

Service Placement

Page 13: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Global Service Attributes Role based Global Service

– Service should be active only when the database is either a primary or standby – Can be started on a database if its role matches global service’s role attribute

– Options for Add Service : [-role {PRIMARY | PHYSICAL_STANDBY [-failover_primary] | LOGICAL_STANDBY |

SNAPSHOT_STANDBY}]

– GDSCTL>add service -gdspool sales -service sales_reporting_srvc -preferred_all -role physical_standby

Lag Tolerance – Establish application's tolerance for non-current data – Specify the lag limit for the Global Service in seconds

– Options for Add or Modify Service : -lag {lag_value | ANY}

– GDSCTL>add service -service sales_reader_lag180_srvc -gdspool sales -preferred_all -role physical_standby -lag 180

Service Placement

Page 14: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Achieve geographical affinity between clients and Databases Options for Add or Modify Service

[-locality {ANYWHERE | LOCAL_ONLY [-region_failover]}]

Locality ANYWHERE Client connections and work requests are routed to any region for load balancing or failover GDSCTL>add service -service sales_reader_srvc -gdspool sales –preferred_all –locality

ANYWHERE

Locality LOCAL_ONLY Regardless of load, GDS will not route to databases in other regions

GDSCTL>add service -service sales_reader_srvc -gdspool sales –preferred_all –locality LOCAL_ONLY

Locality LOCAL_ONLY –region_failover Client connections and work requests are routed to another region when all databases in a region have failed

GDSCTL>add service -service sales_reader_srvc -gdspool sales –preferred_all –locality LOCAL_ONLY –region_failover

Global Service Attributes Locality Based Routing

Page 15: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

15 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

CLBGOAL – GDS supports connect-time load balancing for all

clients

– Directs connection requests to the best database instance in GDS pool

– Takes into account

– Load statistics from all GDS pool databases

– Inter-region network latency, locality and CLB goal

– Options for Add Service : [-clbgoal {SHORT | LONG}]

– GDSCTL>add service -service sales_clb_srvc -gdspool sales –preferred_all -clbgoal LONG

RLBGOAL – GDS supports Runtime load balancing feature of

connection pools for Oracle database integrated clients (OCI, JDBC, ODP.NET, WLS)

– Publishes RLB Advisory to clients

– Takes into account – Per-service performance data from pool databases

– Inter-region network latency, locality and RLB goal

– Based on advisory, clients distribute workload requests across persistent connections spanning GDS Pool database instances

– Options for Add Service : [-rlbgoal {SERVICE_TIME | THROUGHPUT}]

– GDSCTL>add service -service sales_rlb_srvc -gdspool sales –preferred_all –rlbgoal SERVICE_TIME

Global Service Attributes Load Balancing

Page 16: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Graphic Section Divider

Page 17: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Global Data Services

Application handles multi-master conflict resolution

GDS can route all workloads to nearest and best Replica in the client’s region

Global Data Services (GDS) Region Affinity in Oracle GoldenGate Multi-Master

Oracle GoldenGate

Master

Data Center 1 Data Center 2

Order Entry Service

Clients Clients

Master

Global Service Manager (GSM)

Load Balancing LEGEND:

Order Entry Service

Reporting Service

Reporting Service

GDSCTL>add service –service reporting_srvc –gdspool sales –preferred_all –locality LOCAL_ONLY –region_failover GDSCTL>add service –service order_entry_srvc –gdspool sales –preferred_all –locality LOCAL_ONLY –region_failover

Page 18: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Global Data Services

Application handles multi-master conflict resolution

GDS provides connect-time and run-time load balancing (within and across data centers) for all work requests

Global Data Services (GDS) Load Balancing in Oracle GoldenGate Multi-Master

Oracle GoldenGate

Master

Data Center 1 Data Center 2

Order Entry Service

Clients Clients

Master

Global Service Manager (GSM)

Load Balancing LEGEND:

Order Entry Service

GDSCTL>add service -service order_entry_srvc -gdspool sales –preferred_all -clbgoal LONG GDSCTL>add service -service reporting_srvc -gdspool sales –preferred_all -clbgoal LONG

Reporting Service

Reporting Service

Page 19: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

20 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Global Data Services

With GDS, route Read Write workload to primary/master

Balance Read Only workload on a set of replicas

Maximize utilization and performance

Global Data Services (GDS) Balance Read Workloads in Active Data Guard & Oracle GoldenGate

Standby

Replication

Primary Standby

Data Center 1 Data Center 2

Order Entry Service

Reporting Service

Clients Clients

Reporting Service

Global Service Manager (GSM)

Load Balancing LEGEND:

Active Data Guard Example: GDSCTL>add service -service reporting_srvc -gdspool sales –preferred_all –role PHYSICAL_STANDBY -clbgoal LONG GDSCTL>add service -service order_entry_srvc -gdspool sales –preferred_all –role PRIMARY

Replication

Page 20: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Global Data Services

Global Data Services (GDS) Role-based Global Services for Active Data Guard

Active Data Guard

Standby

Data Center 1 Data Center 2

Clients Clients Order Entry Service runs on Primary

Reporting Service runs on Standby

Primary

Reporting Service

Order Entry Service

Global Service Manager (GSM)

Load Balancing LEGEND:

Page 21: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Global Data Services

Global Data Services (GDS) Role-based Global Services for Active Data Guard

Active Data Guard

Data Center 1 Data Center 2

Clients Clients

Standby

Reporting Service

Order Entry Service

Order Entry Service runs on Primary

Reporting Service runs on Standby

Upon Data Guard role change, GDS fails over services based on Role

Primary

Global Service Manager (GSM)

Load Balancing LEGEND:

GDSCTL>add service -service order_entry_srvc -gdspool sales –preferred_all –role PRIMARY GDSCTL>add service -service reporting_srvc -gdspool sales –preferred_all –role PHYSICAL_STANDBY –failover_primary

Page 22: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

23 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Global Data Services

Specify replication lag limit for a service.

GDS ensures that service runs on Active Data Guard standby(s) with lag less than this limit

Improved data quality

Global Data Services (GDS) Replication Lag Tolerance in Active Data Guard

Replication

(Oracle Active Data Guard )

Standby or Replica

Replication

Primary or Master

Standby or Replica

Order Entry Service

Reporting Service

Clients Clients

Reporting Service

Global Service Manager (GSM)

Load Balancing LEGEND:

Replication Lag

exceeded threshold

Data Center 1 Data Center 2

Page 23: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

24 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Global Data Services

Global Data Services (GDS) Replication Lag Tolerance in Active Data Guard

Replication

(Oracle Active Data Guard)

Replication

Primary or Master

Standby or Replica

Data Center 1

Order Entry Service

Reporting Service

Clients Clients Data Center 2 Specify replication lag

limit for a service. GDS ensures that

service runs on Active Data Guard standby(s) with lag less than this limit

Improved data quality

Replication Lag

exceeded threshold GDSCTL>add service -service reporting_srvc -gdspool sales

–preferred_all –role PHYSICAL_STANDBY –lag 180

Global Service Manager (GSM)

Load Balancing LEGEND:

Standby or Replica

Page 24: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Global Data Services

Inter-database Service failover within and across regions

Higher availability and improved manageability

Global Data Services (GDS) Service Failover for Active Data Guard & Oracle GoldenGate

Replication

Standby or Replica

Data Center 1 Data Center 2

Order Entry Service

Clients Clients

Reporting Service

Reporting Service

Global Service Manager (GSM)

Load Balancing

LEGEND:

Active Data Guard Example: GDSCTL>add service -service reporting_srvc -gdspool sales –preferred_all –role PHYSICAL_STANDBY -failover_primary

Primary or master

Page 25: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 26

Graphic Section Divider

Page 26: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 27

Inter-Database Service Failover

Oracle Database 12c - GDS Demo Viewlet

Page 27: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 28

Global Data Services 12c A Customer’s Point of view

Al Fischer

Page 28: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

CORPORATE IT

Global Database Services

Oracle Global Data Services Al Fischer Manager IT – Database Services

Page 29: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

30 C O R P O R A T E I T

Page 30: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

31 C O R P O R A T E I T 31

Regional DBA Team Members Global DBA Team

Australia/New Zealand

North America

Latin America

Russia Europe

South Africa

Japan Korea

India

China

AITS Malaysia SE Asia

Global and Regional Database Teams

Page 31: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

32 C O R P O R A T E I T

MAGIC - Managing Awards Growth Income and Compensation

Bonus Value / Points Value (BV/PV) on sales

Monthly rewards based on sales that month

Multi-level Marketing For downline sales, they get their full benefit, but the upline also accumulates BV/VP

Achievement level based on number sales that month

Multiple months at higher levels lead to greater rewards

Crucial for business that ABO’s can see current BV/PV near or at real-time

Read only operation

Outage of BV/PV has direct consequence on sales

Outage of BV/PV has significant business cost.

How we pay our Amway Business Owners

Page 32: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

33 C O R P O R A T E I T

Business Challenge How many 9’s at what cost?

99.9 is 8.76 hours a year 99.99 is 52 minutes a year 99.999 is 5 minutes a year

BV/PV inquiry time Traverse the line of sponsorship Up to the minute level information

Proactive patching and security PCI compliance

Amway crown jewels

Total Cost Hardware / storage Resources to manage

Uptime

Response time

Security

TCO

Page 33: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

34 C O R P O R A T E I T

Existing Architectural overview

Active Data Guard for: DR Backups Read workloads

Page 34: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

35 C O R P O R A T E I T

GDS advantages Leverage existing infrastructure resource utilization Primary database DR database Data Guard Broker Existing services

No application change except for TNS connectivity

Already separated for read-only and OLTP operations

Minimal set-up (DBA time) Quick deployment Adaptable for maintenance 2-3 hours after delivery of

servers

UpTime Read only transactions can get

another ‘9’ without major infrastructure changes

Page 35: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

36 C O R P O R A T E I T 36 C O R P O R A T E I T 36 C O R P O R A T E I T

GDS POC

Page 36: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

37 C O R P O R A T E I T 37 C O R P O R A T E I T 37 C O R P O R A T E I T 37 C O R P O R A T E I T

High level Steps Amway tested GDS on Oracle Multitenant Databases Install GSM software on multiple nodes

Download / unzip ./runInstaller -> root.sh

Set up GDS Admin accounts and priv’s alter user gsmuser account unlock :

Configure GDS Create GDS catalog Add GSMs

GDSCTL>start gsm –gsm <gsmname> Add Services

Set up Client connectivity

Page 37: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

38 C O R P O R A T E I T

Test Case Result

Crash Primary / Standby

Services failover as expected

Crash GDS Catalog

All services remain available

Active Data Guard Switchover

Services restart on expected nodes

Lag Tolerance

Service stops / restarts on other node if lag exceeds threshold

Amway Test Cases

Page 38: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

39 C O R P O R A T E I T

Test Case Benefit

Load Balancing

Faster return for query

RAC database

Higher availability

Moving from one container database to another

Higher availability Ease of upgrade

Amway Future Steps

Page 39: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

40 C O R P O R A T E I T

Next Steps for Amway • Demo to Business User • Include in Oracle Database 12c upgrade plans • Procure GSM servers and Catalog

QA and Production • Verify in our QA environment

• We have ADG in both Production and QA • Include GDS as part of our High Availability offerings to

other programs/projects • Global Datawarehouse?

• Enjoy the benefits

Page 40: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

41 C O R P O R A T E I T

Contact Information Al Fischer

Database Services Manager 616-787-1807 - Work [email protected]

Ron Swanson Principal Oracle DBA 616-787-5387 – Work [email protected]

Page 41: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 42

Graphic Section Divider

Page 42: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 43

GDS Internals

Administration

DB Health Monitoring

Connection Management

Fault Management

Change Management

Key Workflows

Page 43: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 44

GDS – Administrative Operations ADD / MODIFY / REMOVE :

– GDSPOOL – REGION – DATABASE – BROKERCONFIG – SERVICE – …

START / STOP SERVICE

Page 44: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 45

GDS – Administration Flow

GDS Catalog DB

Pool Database

1. To modify GDS configuration (e.g. To add a global Service), GDS Administrator uses GDSCTL and connects to catalog DB via GSM

2. GSM routes request to catalog

3. GDSCTL establishes connection to catalog DB

4. GDS Administrator runs GDSCTL commands and modifies the catalog

5. Catalog notifies GSMs of changes

Pool Database

6. Global Master GSM modifies Pool Databases

GSM GSM

Global Master

Page 45: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 46

GDS – Component Architecture CLIENTS DATABASES

GSMs

APP SERVER

CONNECTION POOL

APPLICATION

US-EAST EUROPE

Connection Pool

Application

Registration, Performance Stats

Network RTT

Page 46: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 47

GDS – Managing Database Connections For High Performance and Availability

For all clients – Connect-time Load Balancing (CLB) across databases

Choose the best DB instance to connect For Oracle integrated connection pool based clients

– Run-time load balancing (RLB) Selecting a cached connection for a work request

– Gravitation Moving unused connections to heavily loaded instances

– Proactive handling of instance UP and DOWN events

Page 47: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 48

GDS – Connect-time Load Balancing (CLB) CLIENTS DATABASES

GSMs EUROPE US-EAST

APP SERVER

CONNECTION POOL

APPLICATION

Connection Pool

Application

Page 48: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 49

APP SERVER

CONNECTION POOL

APPLICATION

GDS – Run-time Load Balancing (RLB) CLIENTS DATABASES

GSMs EUROPE US-EAST FAN over ONS

40%

20%

30%

10%

RLB advisory

Connection Pool

Application

Regional Master

Page 49: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 50

GDS – Run-time Load Balancing Graph (I) Standalone Identical Database Servers - Simple External Load

Routing responds gracefully to changing system conditions

Page 50: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 51

GDS – Run-time Load Balancing Graph (II) Standalone Asymmetrical Database Servers - No External Load DB b: 4 CPUs DB c: 3 CPUs DB d: 2 CPUs

GDS does intelligent load balancing even across asymmetrical database servers

Page 51: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 52

APP SERVER

CONNECTION POOL

APPLICATION

GDS – Gravitation of Connections CLIENTS DATABASES

GSMs EUROPE US-EAST FAN

40%

20%

30%

10%

20%

50%

RLB advisory

Connection Pool

Application

BACKUP

Page 52: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 53

APP SERVER

CONNECTION POOL

APPLICATION

GDS – Connection Failover CLIENTS DATABASES

GSMs EUROPE US-EAST FAN

40%

20%

30%

10%

‘Instance Down’

Connection Pool

Application

RLB advisory

0%

30%

Page 53: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 54

APP SERVER

CONNECTION POOL

APPLICATION

GDS – Reconnecting to a DB Instance CLIENTS DATABASES

GSMs EUROPE US-EAST FAN

40%

30%

30%

0%

‘Instance UP’

Connection Pool

Application

RLB advisory

20%

10%

Page 54: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 55

GDS – Global Service Failover

Global Service : SALES

6) Global Master GSM observes that service SALES went down on database Sales-1 and starts it on database Sales-2.

Sales-2

2) Connection Pool has established connections to the service SALES on the database Sales-1

Sales-1

8) Connection Pool creates connections to service SALES on the database Sales-2 and workload is redirected there

Global Service : SALES

App Server

1) Client is connected to the Application Server

7) Regional Master GSM observes that service SALES is up on Sales-2 and notifies the connection pool

GSM

3) DB Sales-1 crashes

Client

DOWN UP

4) Regional Master GSM observes that service SALES went down and notifies the connection pool

5) Connection Pool closes connections to Sales-1

Regional Master

GSM Global Master

Page 55: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

56 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Graphic Section Divider

Page 56: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

57 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Automated Workload Management for Replicas Feature Oracle GDS 3rd Party Load

Balancers

Locality based routing

Connect-time database load balancing

Publish Run-time database load balancing advisory for Oracle integrated connection pool based clients

Replication lag based database workload routing

Inter-database global Service failover

Automatic role based global Services

Centralized management of database Services across replicas

Native integration for Active Data Guard

Cost Effectiveness Incl. with Active Data Guard or Oracle GoldenGate

Additional $$$

GDS is a complete Dynamic Workload Management capability for Oracle Replicated Databases

Page 57: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

58 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Active Data Guard – Data Protection, DR – Query Offload

GoldenGate – Active-active – Heterogeneous

Active Replica

Edition-based Redefinition, Online Redefinition, Data Guard, GoldenGate – Minimal downtime maintenance, upgrades, migrations

RAC – Scalability – Server HA

Flashback – Human error

correction

Production Site Enterprise Manager Cloud Control – Coordinated Site Failover Application Continuity – Application HA Global Data Services – Service Failover / Load Balancing

Oracle Maximum Availability Architecture

RMAN, Oracle Secure Backup – Backup to disk, tape or cloud

Page 58: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

59 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Global Data Services

Provides workload routing, load balancing, service failover & management for replicated databases

Key benefits – Higher availability

Failover a Service across databases located anywhere

– Improves application response time Workload routing & real-time load balancing

– Better resource utilization Centralized administration of global resources

Summary

Page 59: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

60 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Resources OTN GDS Portal:

http://www.oracle.com/goto/gds

OTN HA Portal: http://www.oracle.com/goto/availability

Maximum Availability Architecture (MAA): http://www.oracle.com/goto/maa

MAA Blogs: http://blogs.oracle.com/maa

Exadata on OTN: http://www.oracle.com/technetwork/database/exadata/index.html

Oracle HA Customer Success Stories on OTN: http://www.oracle.com/technetwork/database/features/ha-casestudies-098033.html

Page 60: Oracle Database 12c High Availability...GDS . Catalog . Standby . Global Service . Managers . Global Service . Managers Clients (Users) Clients (Users) App/Middleware App/Middleware

61 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.