Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1

Similar documents
Oracle Database Failover Cluster with Grid Infrastructure 11g R2

SOUG-SIG Data Replication With Oracle GoldenGate Looking Behind The Scenes Robert Bialek Principal Consultant Partner

Oracle Data Guard Fast Start Failover understood!

SCAN, VIP, HAIP etc. Introduction This paper is to explore few RAC abbreviations and explain the concepts behind these acronyms.

Oracle 11g: RAC and Grid Infrastructure Administration Accelerated R2

Why and How You Should Be Using Policy-Managed RAC Databases

Advanced Oracle DBA Course Details

Building Active/Passive Clusters with Oracle Fusion Middleware 11g

About the Author About the Technical Contributors About the Technical Reviewers Acknowledgments. How to Use This Book

What s New in 12c High Availability. Aman Sharma

SAP with Oracle Real Application Clusters 11g Release 2 and Oracle Automatic Storage Management 11g Release 2

Oracle Networking and High Availability Options (with Linux on System z) & Red Hat/SUSE Oracle Update

Oracle Database 11g: RAC Administration Release 2

Use RMAN to relocate a 10TB RAC database with minimum downtime. Tao Zuo tao_zuo@npd.com NPD Inc. 9/2011

Exadata for Oracle DBAs. Longtime Oracle DBA

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

Disaster Recovery of Oracle Database Standard Edition (SE) and Standard Edition One (SE1) on Dell EqualLogic PS Series iscsi Storage Systems

Automated Deployment of Oracle RAC Using Enterprise Manager Provisioning Pack

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

Top 10 Things You Always Wanted to Know About Automatic Storage Management But Were Afraid to Ask

Ultimate Guide to Oracle Storage

managing planned downtime with RAC Björn Rost

Highly Available NFS over Oracle ASM Cluster File System (ACFS)

OBIEE Cloning. Cloning the OBIEE 11g database migration to a new host. Ashok Thiyagarajan ADVANS MARLBOROUGH, MA AND CHENNAI, INDIA

Key Factors For a Successful ODA Deployment

ORACLE DATABASE: ADMINISTRATION WORKSHOP I

An Oracle White Paper May, Deploying a Highly Available Enterprise Manager 12c Cloud Control

EMC MIGRATION OF AN ORACLE DATA WAREHOUSE

DOAG 2015 Database Data Replication With Oracle GoldenGate Robert Bialek Principal Consultant Partner

Integration Service Database. Installation Guide - Oracle. On-Premises

CUIT with Visual Studio and TFS

High Availability Infrastructure for Cloud Computing

WELCOME. Backup of OracleVM. Martin Bracher SOUG-Vortrag 21. März 2013

Oracle Cloud Storage and File system

EMC Replication Manager Integration with Oracle Database Server

Ingres High Availability Option

TECHNICAL REPORT. Nimble Storage Oracle Backup and Recovery Guide

Recreate Physical Standby Database after Recovery of Primary Database

Oracle Database 10g: Backup and Recovery 1-2

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

Best Practices White Paper Using Oracle Database 11g R2 Automatic Storage Management with FUJITSU Storage (Windows version)

Virtualized Oracle 11g/R2 RAC Database on Oracle VM: Methods/Tips Kai Yu Oracle Solutions Engineering Dell Inc

DisasterRecoverywith. DisasterRecoverywith Oracle Data Guard10gR2

ORACLE DBA 11G TRAINING

WebLogic on Oracle Database Appliance: Combining High Availability and Simplicity

An Oracle White Paper November Oracle Real Application Clusters One Node: The Always On Single-Instance Database

Oracle Database 11g: Administration Workshop I Release 2

Oracle WebLogic Server and Highly Available Oracle Databases. An Oracle White Paper August Integrated Maximum Availability Solutions

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

Oracle Database 11g: Administration Workshop I Release 2

Oracle Database 10g: RAC for Administrators

Rob Zoeteweij CUSTOMER CASE CONFIGURATION MANAGEMENT PROVISIONING & AUTOMATED PATCHING

INUVIKA TECHNICAL GUIDE

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

<Insert Picture Here> Managing Storage in Private Clouds with Oracle Cloud File System OOW 2011 presentation

Data Guard Fast-Start Failover

Building Oracle Grid with Oracle VM on Blade Servers and iscsi Storage. Kai Yu Dell Oracle Solutions Engineering

Maximum Availability Architecture

An Oracle White Paper June Enterprise Manager Cloud Control 12c Disaster Recovery with Storage Replication

VERITAS Cluster Server v2.0 Technical Overview

Oracle Storage Options

Using DataDirect Connect for JDBC with Oracle Real Application Clusters (RAC)

Twee remedies tegen systeemuitval en datacorruptie [RAC en Data Guard]

OBIEE 11g Scaleout & Clustering

Oracle Net Services - Best Practices for Database Performance and Scalability

Secure Test Data Management with ORACLE Data Masking

ORACLE DATABASE HIGH AVAILABILITY STRATEGY, ARCHITECTURE AND SOLUTIONS

Oracle Recovery Manager

Deployment patterns for Fusion Middleware. a best practice session by Simon Haslam & Jacco H. Landlust

School of Open Learning University of Delhi

An Oracle White Paper June Oracle Real Application Clusters (RAC)

Het mag dan wel niet meer vriezen. <Insert Picture Here> maar de High Availability SIG Giet Oan!

Maximizing Oracle RAC Uptime

Veritas Cluster Server Agent for Oracle Installation and Configuration Guide

Rob Zoeteweij Zoeteweij Consulting

1 Certification Information

Veritas High Availability Agent for Oracle Installation and Configuration Guide

Configure AlwaysOn Failover Cluster Instances (SQL Server) using InfoSphere Data Replication Change Data Capture (CDC) on Windows Server 2012

Install Oracle10g Real Application Clusters Release 1 ( ) on SuSE Linux Enterprise Server 9 and Matrix Server

Hard Partitioning and Virtualization with Oracle Virtual Machine. An approach toward cost saving with Oracle Database licenses

Table of Contents Introduction and System Requirements 9 Installing VMware Server 35

Microsoft Azure. IaaS Networking Storage. Stefan Geiger Gerry

Oracle Audit in a Nutshell - Database Audit but how?

ORACLE DATABASE 11G: COMPLETE

Maximum Availability Architecture

ORACLE DATABASE ADMINISTRATOR RESUME

High Availability Implementation for JD Edwards EnterpriseOne

Automatic Service Migration in WebLogic Server An Oracle White Paper July 2008

An Oracle White Paper July Oracle ACFS

Why Not Oracle Standard Edition? A Dbvisit White Paper By Anton Els

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

Maximum Availability Architecture. Oracle Best Practices For High Availability

Best Practices for Oracle 11g Backup and Recovery using Oracle Recovery Manager (RMAN) and Dell EqualLogic Snapshots

White Paper. Dell Reference Configuration

Deloitte Solutions Network (SNET) Disaster Recovery POC on Amazon EC2

Transcription:

Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 Robert Bialek, MU-IMS Principal Consultant BASEL BERN BRUGG LAUSANNE ZUERICH DUESSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MUNICH STUTTGART VIENNA 1 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Who Am I Principal Consultant, Partner and Trainer at Trivadis GmbH robert.bialek@trivadis.com Focus: Oracle Database High Availability Grid Infrastructure, Real Application Cluster, Data Guard, Maximum Availability Architecture, Failover Cluster Architecture design Review, troubleshooting, coaching Backup and recovery Performance tuning Linux administration Trainer for the following Trivadis courses Oracle Grid Infrastructure (O-GRINF) Oracle Real Application Cluster (O-RAC) Oracle Data Guard (O-DG) 2 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

AGENDA 1. Introduction 2. Cluster Resource Management 3. Registering Resources 4. Resource Monitoring 5. Resource Placement 3 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Introduction 4 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Failover Database Cluster Failover database cluster Very popular database service high availability solution Service active only on one node in a cluster at every point in time Build-in monitoring, restart and failover functionality 5 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Why Oracle Grid Infrastructure? Oracle Grid Infrastructure software stack includes Oracle Clusterware (Cluster manager) Oracle Automatic Storage Management (Logical Volume Manager) Why Oracle Grid Infrastructure (Oracle Clusterware) as the failover cluster software stack? Stable and feature reach cluster manager proved especially in combination with RAC and RAC One Node From 10g Release 2 onwards able to protect any kind of application - Assumption: CLI API available to start/stop/check and clean an application Includes volume manager and a file system for Oracle database files Available for all operating systems supported for Oracle database Support from one software vendor 6 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Oracle Grid Infrastructure Licensing Oracle Clusterware is free of charge for Oracle customers Oracle Database Licensing Information 12c Release 1 (12.1) Special-Use Licensing Oracle Clusterware Oracle Clusterware may be used to protect any application (restarting or failing over the application in the event of a failure) on any server, free of charge. Oracle will provide support for Clusterware only if the server is running an Oracle product, which may include Oracle Linux or Oracle Solaris, that is also under Oracle support. Automatic Storage Management basic functionality is free of charge For active/passive failover database cluster you may benefit from the 10-day rule usage One unlicensed spare computer per cluster can be used for up to a total of 10 days per year Reference: http://www.oracle.com/us/corporate/pricing/data-recoverylicensing-070587.pdf 7 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Failover Database Cluster vs. RAC One Node RAC One Node Failover Database Cluster Option for Enterprise Edition only (subject to license terms) Available for all editions/versions (no additional licenses required) Well integrated in all Oracle tools Initially some work necessary to implement the framework During planned service relocation no database service interruption (online database relocation) During planned service relocation the service will be interrupted Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Failover Database Cluster Prerequisites Install and configure Oracle Grid Infrastructure as for a RAC or a RAC One Node environment Consider especially the storage and private/public network high availability Public Network Private Network Cluster +GRID +U01 +U02 ASM Spfile, OCR and Voting Files Data, RDO, CTL, OCR FRA, RDO, CTL Storage Area Network 9 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Cluster Resource Management 10 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Cluster Resources / Attributes / Types Oracle Clusterware FO1 (Database) Listener VIP Resources NAME PLACEMENT CHECK_INTERVAL START_TIMEOUT NAME PLACEMENT CHECK_INTERVAL START_TIMEOUT NAME PLACEMENT CHECK_INTERVAL START_TIMEOUT Resource Attributes cluster_resource ora.listener.type ora.cluster_vip_net1. type Resource Types 11 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Resources Attributes For some of them defaults can be used (e.g. CARDINALITY) For other, values must be specified depending on the configuration and the business requirements Configuration NAME TYPE ACL ACTION_SCRIPT AGENT_FILENAME START_DEPENDENCIES STOP_DEPENDENCIES Monitoring SCRIPT_TIMEOUT CHECK_INTERVAL RESTART_ATTEMPTS FAILURE_INTERVAL FAILURE_THRESHOLD UPTIME_THRESHOLD PLACEMENT SERVER_POOLS LOAD Placement USE_STICKINESS START_DEPENDENCIES DISPERSION EXCLUSION 12

Resources Attributes START STOP DEPENDENCIES ASM Instance VIP Database ASM Disk Groups SCAN Listener ACFS Listener START_DEPENDENCIES=' weak(type:ora.listener.type,global:type:ora.scan_listener.type) hard(global:uniform:ora.u01.dg,global:uniform:ora.u02.dg) pullup(global:ora.u01.dg,global:ora.u02.dg) dispersion(type:db_12c.type )' STOP_DEPENDENCIES=' hard(global:intermediate:ora.asm, global:shutdown:ora.u01.dg, global:shutdown:ora.u02.dg)' 13

Resource Types Oracle Clusterware includes predefined generic resource types Based on them, you can also create your own types cluster_resource db_12c.type ENABLED=1 CHECK_INTERVAL= 60 All defined resource attributes will be inherited Default attribute values can be changed ENABLED=1 CHECK_INTERVAL= 15 New attributes (type,default value, etc.) can be introduced ADAPT_LOCAL_LSNR = Y 14 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Agents / Action Scripts Resource management (start/stop/check/clean) will be executed by an agent For a failover database resource not directly a user-created script/program is necessary (*) CRSD oraagent (ora.database.type) orarootagent scriptagent (cluster_resource) appagent (generic_resource) RAC1 VIP1 Needs to be implemented YOUR JOB! Action Script START STOP CHECK CLEAN FO1 FO2 START_PROGRAM STOP_PROGRAM CLEAN_PROGRAM CHECK_PORGRAM FO3 15 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Action Scripts Action script must follow a certain structure Must return an exit code 0 in case of a success and other in case of a failure case $1 in start) if start_action succeed ; then exit 0 else exit 1 fi ;; stop) if stop_action succeed... ;; check) if check_action succeed... ;; clean) if clean_action succeed... ;; esac STARTUP [MOUNT OPEN] SHUTDOWN IMMEDIATE ps ef grep ora_pmon_<sid> SHUTDOWN ABORT 16 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Registering Resources 17 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Registering Database Resources Overview Depending on the requirements, there are many possible configurations Configuration 1 Traditional model Flexible, but consider the amount of new cluster resources DB Configuration 2 Traditional model Reduced amount of resources but less flexibility DB DB DB Configuration 3 New model, based on 11.2 SCAN concept Very flexible, only one additional resource per database LSNR LSNR DB DB DB VIP VIP SCAN 18

Registering Database Resources Examples Example 1: single instance failover DB User defined resource type db_12c.type (with an action script) Using the SCAN concept no additional VIP or listener resources Example 2: single instance Data Guard failover DB Base on predefined cluster_resource type Database, listener and VIP resources (with an action script) Example 3: single instance failover DB Base on the generic_resource type (without an action script) Using the SCAN concept no additional VIP or listener resource 19

Single Instance Failover DB Example 1 remote_listener static value remote_listener=cl121.trivadis.com:1521 SCAN LISTENERS LSNR LREG FO1 FO2 LSNR local_listener dynamic value (action script) Completed: alter database open... ALTER SYSTEM SET LOCAL_LISTENER=' (DESCRIPTION=(ADDRESS_LIST=(ADDRESS= (PROTOCOL=TCP)(HOST=192.168.122.12) (PORT=1521))))' SCOPE=MEMORY; Client configuration static value (ADDRESS = (PROTOCOL = TCP)(HOST = cl121.trivadis.com)(port = 1521)) (CONNECT_DATA = (SERVICE_NAME = FO1_RW.TRIVADIS.COM)) 20

Single Instance Failover DB Example 1 STEP 1: Create a resource type cluster_resource db_12c.type crsctl add type db_12c.type -basetype cluster_resource -attr "ATTRIBUTE=CHECK_INTERVAL,TYPE=INT,DEFAULT_VALUE=15", -attr "ATTRIBUTE=RESTART_ATTEMPTS,TYPE=INT,DEFAULT_VALUE=2", -attr "ATTRIBUTE=FAILURE_THRESHOLD,TYPE=INT,DEFAULT_VALUE=2", -attr "ATTRIBUTE=FAILURE_INTERVAL,TYPE=INT,DEFAULT_VALUE=3600", -attr "ATTRIBUTE=UPTIME_THRESHOLD,TYPE=STRING,DEFAULT_VALUE=8h", -attr "ATTRIBUTE=ACTION_SCRIPT,TYPE=STRING,DEFAULT_VALUE=<PATH>/crs_db.ksh", -attr "ATTRIBUTE=DESCRIPTION,TYPE=STRING,DEFAULT_VALUE=Oracle Database Res.", -attr "ATTRIBUTE=PLACEMENT,TYPE=STRING,DEFAULT_VALUE=balanced", -attr "ATTRIBUTE=START_DEPENDENCIES,TYPE=STRING, DEFAULT_VALUE='weak(type:ora.listener.type,global:type:ora.scan_listener.type) hard(global:uniform:ora.u01.dg,global:uniform:ora.u02.dg) pullup(global:ora.u01.dg,global:ora.u02.dg) dispersion(type:db_12c.type )'", -attr "ATTRIBUTE=STOP_DEPENDENCIES,TYPE=STRING, DEFAULT_VALUE='hard(global:intermediate:ora.asm,global:shutdown:ora.U01.dg, global:shutdown:ora.u02.dg)'", -attr "ATTRIBUTE=ADAPT_LOCAL_LSNR,TYPE=STRING,DEFAULT_VALUE=y" 21

Single Instance Failover DB Example 1 STEP 2: create the database resources db_12c.type FO1.inst FO2.inst crsctl add resource FO1.inst -type db_12c.type crsctl add resource FO2.inst -type db_12c.type STEP 3: start database resources crsctl start resource FO1.inst FO2.inst CRS-2672: Attempting to start 'FO1.inst' on 'gray' CRS-2672: Attempting to start 'FO2.inst' on 'green' CRS-2676: Start of 'FO1.inst' on 'gray' succeeded CRS-2676: Start of 'FO2.inst' on 'green' succeeded 22

Single Instance Data Guard Failover DB Example 2 remote_listener static value remote_listener=cl121.trivadis.com:1521 SCAN LISTENERS LSNR LREG LSNR VIP DG LSNR local_listener static value local_listener=(address=(protocol=tcp) (Host=dg01-vip.trivadis.com)(Port=152 1)) for redo transfer use the DGMGRL service DG_SITE1_DGMGRL.TRIVADIS.COM Client configuration static value (ADDRESS = (PROTOCOL = TCP)(HOST = cl121.trivadis.com)(port = 1521)) (CONNECT_DATA = (SERVICE_NAME = DG_RW.TRIVADIS.COM)) 23

Data Guard Failover DB Example 2 STEP 1: Create the VIP resource sudo /u00/app/grid/product/12.1.0.1/bin/appvipcfg \ > create -network=1 -ip=192.168.122.29 -vipname=dg.vip \ > user=oracle STEP 2: Create the listener resource crsctl add resource DG.lsnr -type cluster_resource -attr "ACTION_SCRIPT=/u00/app/oracle/local/dba/bin/crs_listener.ksh, CHECK_INTERVAL=15, RESTART_ATTEMPTS=5, FAILURE_THRESHOLD=1, FAILURE_INTERVAL=3600, UPTIME_THRESHOLD=8h, DESCRIPTION=Oracle database listener resource, START_DEPENDENCIES=hard(DG.vip) pullup(dg.vip), STOP_DEPENDENCIES=hard(DG.vip)" 24

Data Guard Failover DB Example 2 STEP 3: Create the database resource crsctl add resource DG.inst -type cluster_resource -attr "ACTION_SCRIPT=/u00/app/oracle/local/dba/bin/crs_db.ksh, CHECK_INTERVAL=15, RESTART_ATTEMPTS=2, FAILURE_THRESHOLD=2, FAILURE_INTERVAL=3600, UPTIME_THRESHOLD=8h, DESCRIPTION=Oracle database Data Guard instance resource, START_DEPENDENCIES= 'weak(type:ora.listener.type,global:type:ora.scan_listener.type) hard(global:uniform:ora.u01.dg,global:uniform:ora.u02.dg,dg.lsnr) pullup(global:ora.u01.dg,global:ora.u02.dg,dg.lsnr)',\ STOP_DEPENDENCIES= 'hard(global:intermediate:ora.asm,global:shutdown:ora.u01.dg,global :shutdown:ora.u02.dg,dg.vip)'" 25

Data Guard Failover DB Example 2 STEP 4: Start the Data Guard resources crsctl start res DG.inst CRS-2672: Attempting to start 'DG.vip' on 'gray' CRS-2676: Start of 'DG.vip' on 'gray' succeeded CRS-2672: Attempting to start 'DG.lsnr' on 'gray' CRS-2676: Start of 'DG.lsnr' on 'gray' succeeded CRS-2672: Attempting to start 'DG.inst' on 'gray' CRS-2676: Start of 'DG.inst' on 'gray' succeeded Note: Data Guard action script should consider the database role Unless you have licensed the Active Data Guard License STARTUP MOUNT DATABASE_ROLE Check PRIMARY PHYSICAL_STANDBY OPEN DO NOTHING 26

Single Instance Failover DB Example 3 This method base on the new genric_resource type and does not require an action script (almost the same configuration as in example 1) STEP 1: Create the database resource You can also use a custom resource type as well as many additional attributes crsctl add resource FO3.inst -type generic_application -attr "START_PROGRAM='/u00/app/oracle/admin/FO3/db_start.sh', STOP_PROGRAM='/u00/app/oracle/admin/FO3/db_stop.sh', CLEAN_PROGRAM='/u00/app/oracle/admin/FO3/db_clean.sh, PID_FILES='/u00/app/oracle/admin/FO3/FO3.pid'" STEP 2: Start the database resource crsctl start res FO3.inst CRS-2672: Attempting to start 'FO3.inst' on 'green' CRS-2676: Start of 'FO3.inst' on 'green' succeeded 27

Resource Monitoring 14 28 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Resource Monitoring Resource monitoring - one of the most important tasks of a cluster manager Restarting or failing over a resource in case of a crash Resource restart/failover behavior can be controlled with several attributes FO2 FO1 CHECK_INTERVAL=15 RESTART_ATTEMPTS=2 UPTIME_THRESHOLD=8h FAILURE_INTERVAL=3600 FAILURE_THRESHOLD=2 SCRIPT_TIMEOUT=60 RESTART_ATTEMPTS=0 - no attempt to restart, always failover FAILURE_THRESHOLD=1 or INSTANCE_FAILOVER=0 no automatic failover 29

Resource Monitoring Oracle Clusterware monitors resources only if the resource attribute ENABLED is set to 1 crsctl status resource FO1.inst -p grep ENABLED ENABLED=1 During Data Guard switchover, disable the resource monitoring crsctl modify resource FO1.inst attr "ENABLED=0" Do not shut down the database resources using SQL*Plus In case of resource dependencies, you may need to use the force option crsctl stop resource FO1.inst [-f] CRS-2673: Attempting to stop 'FO1.inst' on 'gray' CRS-2677: Stop of 'FO1.inst' on 'gray' succeeded 30

Resource Placement 31 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014

Resource Placement Resource placement controls on which cluster node a resource should be started PLACEMENT BALANCED less loaded servers are preferred to servers with greater loads (LOAD attribute) FO1? FAVORED preferred are servers assigned to SERVER_POOLS attribute RESTRICTED considers only servers from SERVER_POOLS attribute SERVER_POOLS: affinity between a resource and one or more servers crsctl add srvpool db_12c.sp -attr \ > "PARENT_POOLS=Generic, SERVER_NAMES=gray" 32

Resource Placement Is your goal to spread the database instances evenly on all cluster nodes? STEP 1: create your own resource type cluster_resource db_12c.type Use the dispersion START dependency to your resource type START_DEPENDENCIES='... dispersion(type:db_12c.type )' FO1 FO2 FO3 FO4 FO5 FO6 STEP 2: Register the database resources db_12c.type FO1.inst FO2.inst FO3.inst FO4.inst 33

Resource Placement Prod/Test Cluster PROD/TEST cluster configuration with the following requirements Production database instances are active on one server Test database instances on the second one In case production server crashes, automatically - Shutdown all test databases - Start all production databases on the surviving server PROD FO1 FO2 TEST FO3 FO4 How to achieve this configuration? Cluster partitioning with server pools different IMPORTANCE attribute But note: public network failure is not a reason for a server relocation between server pools 34

Resource Placement Prod/Test Cluster STEP 1: Create server pools crsctl add srvpool PROD.sp -attr "IMPORTANCE=1, \ > MIN_SIZE=1, MAX_SIZE=1" crsctl add srvpool TEST.sp -attr "IMPORTANCE=0, \ > MIN_SIZE=1, MAX_SIZE=1" STEP 2: Create database resources Production crsctl add resource FO1.db -type db_12c.type \ > -attr "SERVER_POOLS=PROD.sp, PLACEMENT=favored" Test crsctl add resource FO2.db -type db_12c.type \ > -attr "SERVER_POOLS=TEST.sp, PLACEMENT=favored" 35

Core Messages Oracle Grid Infrastructure (Clusterware) offers sufficient functionality to implement a failover database cluster Useful not only for databases Many ways to customize the environment, to suit your exact needs No additional license fees, support from one vendor Very good CLI tools 36 EM integration possible, but not out of the box

Questions and answers... Robert Bialek Principal Consultant Tel.: +49 89 99275930 robert.bialek@trivadis.com BASEL BERN BRUGG LAUSANNE ZUERICH DUESSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MUNICH STUTTGART VIENNA 37 Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1 16.07.2014