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



Similar documents
Oracle Database 11g: RAC Administration Release 2

Oracle 11g: RAC and Grid Infrastructure Administration Accelerated R2

Oracle Quality of Service Management - Meeting Availability and SLA Requirements in the Database Cloud

What s New in 12c High Availability. Aman Sharma

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

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

Exadata for Oracle DBAs. Longtime Oracle DBA

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

Advanced Oracle DBA Course Details

An Oracle White Paper July Oracle Database 12c: Meeting your Performance Objectives with Quality of Service Management

High Availability Databases based on Oracle 10g RAC on Linux

High Availability Infrastructure for Cloud Computing

What s New with Oracle Database 12c on Windows On-Premises and in the Cloud

Rob Zoeteweij Zoeteweij Consulting

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

Oracle Cloud Storage and File system

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

Ultimate Guide to Oracle Storage

Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1

How To Use Exadata

Dbvisit Replicate. Dbvisit Replicate Overview

ORACLE DATABASE 10G ENTERPRISE EDITION

EMC MIGRATION OF AN ORACLE DATA WAREHOUSE

Oracle Database 10g: Backup and Recovery 1-2

Oracle Database 11g: Administration Workshop I Release 2

Oracle Recovery Manager

Oracle Database Security and Audit

Backup and Recovery for SAP Environments using EMC Avamar 7

ORACLE DATABASE: ADMINISTRATION WORKSHOP I

ORACLE CORE DBA ONLINE TRAINING

ORACLE DBA 11G TRAINING

Oracle Database 11g: New Features for Administrators DBA Release 2

HDS UCP for Oracle key differentiators and why it should be considered. Computacenter insight following intensive benchmarking test

Oracle 11g New Features - OCP Upgrade Exam

Maximum Availability Architecture. Oracle Best Practices For High Availability

ORACLE DATABASE HIGH AVAILABILITY STRATEGY, ARCHITECTURE AND SOLUTIONS

Introduction to Database as a Service

Oracle Database Backups and Disaster Autodesk

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

Comparing TCO for Mission Critical Linux and NonStop

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

Nutech Computer Training Institute 1682 E. Gude Dr. #102 Rockville, MD Tel: Web:Nutechtraining.com

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

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

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

Preview of Oracle Database 12c In-Memory Option. Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Storage Options

- An Oracle9i RAC Solution

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

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

REDCENTRIC MANAGED DATABASE SERVICE SERVICE DEFINITION

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

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

Oracle Database 10g: Administration Workshop II Release 2

Oracle Database 11g: Administration Workshop I Release 2

Flash Performance for Oracle RAC with PCIe Shared Storage A Revolutionary Oracle RAC Architecture

Building Active/Passive Clusters with Oracle Fusion Middleware 11g

Critical Database. Oracle Enterprise Manager Oracle Open World 2010 Presented dby Venkat Tekkalur. Prem Venkatasamy. Principal Technical Architect

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

Designing a Data Solution with Microsoft SQL Server 2014

Building a Flash Fabric

OBIEE 11g Scaleout & Clustering

Oracle Database Cloud Services OGh DBA & Middleware Day

ITG Software Engineering

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

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

Affordable, Scalable, Reliable OLTP in a Cloud and Big Data World: IBM DB2 purescale

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - New Features for Administrators Release 2. 5 Jours [35 Heures]

Simplifying Online Backup Operations for Microsoft Exchange, SQL and Oracle with Hitachi Protection Manager Software

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

OTM Performance OTM Users Conference Jim Mooney Vice President, Product Development August 11, 2015

Oracle Database Public Cloud Services

managing planned downtime with RAC Björn Rost

Beyond the Basics: Making the Most of Oracle Enterprise Manager 12c Monitoring

An Oracle White Paper July Oracle ACFS

Oracle Database 10g: New Features for Administrators

Exadata: from Beginner to Advanced in 3 Hours. Arup Nanda Longtime Oracle DBA (and now DMA)

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

Oracle Database 12c: Admin, Install and Upgrade Accelerated

D12C-AIU Oracle Database 12c: Admin, Install and Upgrade Accelerated NEW

<Insert Picture Here> Oracle VM and Cloud Computing

HP NA Architectures for Failover and Disaster Recovery Based on NA 9.21 Feb 2013

Using HP StoreOnce Backup systems for Oracle database backups

EMC Replication Manager Integration with Oracle Database Server

How to Migrate your Database to Oracle Exadata. Noam Cohen, Oracle DB Consultant, E&M Computing

<Insert Picture Here> Considerations for Enterprise Cloud Computing

Oracle Database Security and Audit

Oracle vs. SQL Server. Simon Pane & Steve Recsky First4 Database Partners Inc. September 20, 2012

1 Copyright 2011, Oracle and/or its affiliates. All rights reserved.

Oracle 11g DBA Training Course Content

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Key Factors For a Successful ODA Deployment

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

Oracle 11g Database Administration

MySQL Strategy. Morten Andersen, MySQL Enterprise Sales. Copyright 2014 Oracle and/or its affiliates. All rights reserved.

Oracle Database: SQL and PL/SQL Fundamentals NEW

<Insert Picture Here> Enabling Cloud Deployments with Oracle Virtualization

EISOO AnyBackup 5.1. Detailed Features

Module 14: Scalability and High Availability

CON9488 The Enterprise Cloud Simplified with Oracle VM

Transcription:

Why and How You Should Be Using Policy-Managed RAC Databases Mark V. Scardina Director of Product Management Oracle Quality of Service Management 1 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Agenda Introduction Server Pools and Database Management Policy-managed Database Use Cases Converting to a Policy-Managed Database Impact upon CRS-Managed Database Services Considerations and Tips Further Information 2 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

In The Beginning Parallel Server Real Application Clusters Private Database Cloud Performance Performance Performance Performance Scalability Scalability Scalability High Availability High Availability Consolidation Provisioning Quality of Service 3 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Policy-Managed Databases - An Evolutionary Step Deploy on demand Actively manage to business requirements Scale just-in-time Manage performance to SLAs Achieve predictable failure and recovery Maximize IT spend and Datacenter efficiency 4 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Agenda Introduction Server Pools and Database Management Policy-managed Database Use Cases Converting to a Policy-Managed Database Impact upon CRS-Managed Database Services Considerations and Tips Further Information 5 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Oracle Clusterware Server Pools Dynamically manage DB resources for services by Policy Control availability with Min, Max, & Importance attributes Easily Manage large clusters consolidating databases 6 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Server Pool Properties min [-l (Max int 0) ]: The minimum count of servers to maintain within the server pool Satisfied in order of decreasing Imp value max [-u (-1 < int Min)]: The maximum count of servers permitted within the server pool Satisfied in order of decreasing Imp value once all Min values have been met. imp [-i (0 int 1000)]: The higher Imp value server pools are filled to their Min values first Servers logically move to replace failed servers based upon lower Imp pools satisfying higher Imp pools to preserve Min 7 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Default Server Pools - GENERIC Used to model databases in The traditional WAY! The traditional WAY! Administrator-Managed Parent of all server pools for Administrator-Managed databases Always exists but may be of size 0 Used for upgrade from 10g or 11g Release 1 Use SRVCTL of the respective version of the database home to manage the databases in the Generic Pool. Servers in Generic are named (hosting member in cluster resource) 8 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Default Server Pools - FREE A special default server pool, used for management of spare capacity Any unassigned server will go to FREE Always exists, but may be of size 0 Default Importance is 0, and is editable. CAUTION: If Importance is higher than other pools, may steal servers from other pools above Min upon HA event Min and Max are defined automatically. 9 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Agenda Introduction Server Pools and Database Management Policy-managed Database Use Cases Converting to a Policy-Managed Database Impact upon CRS-Managed Database Services Considerations and Tips Further Information 10 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Server Pools and Database Management - Two Management Styles for Oracle RAC Databases Administrator Managed Specify where the database should run with a list of servers names ( traditional way ) Specify exactly where services should run within the database Policy Managed Specify resource requirements for expected workload Specify database service ranking or availability management Enough instances are started to support expected workload Goal: remove hard coding of a service to a specific instance or instance to specific server and preserve business critical services. 11 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Two Node Clusters Are Equivalent - Singleton and Uniform Services behave the same Shipping ERP Shipping ERP Admin Managed (Generic Server Pool) Policy Managed (ORCLDB Server Pool) 12 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Managing Service Start Order - Using Server Pool s Min and Imp Attributes Shipping Shipping ERP ERP Free Server Pool Min = 0 Max = -1 Imp = 0 1 st 2 nd Online Server Pool Min = 2 Max = 2 Imp = 10 Oracle Clusterware 11gR2 3 rd 4 th Backoffice Server Pool Min = 2 Max = 2 Imp = 5 13 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Managing Last Service Standing - Using Server Pool s Min and Imp Attributes Shipping Shipping ERP ERP Free Server Pool Min = 0 Max = -1 Imp = 0 1 st 2 nd Online Server Pool Min = 2 Max = 2 Imp = 10 Oracle Clusterware 11gR2 3 rd 4 th Backoffice Server Pool Min = 2 Max = 2 Imp = 5 14 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Zero-Configuration Dynamic Provisioning - Using Relocate Server or Add Node Shipping Shipping Shipping ERP ERP ERP Free Server Pool Min = 0 Max = -1 Imp = 0 Online Server Pool Min = 1 Max = 3 Imp = 10 Oracle Clusterware 11gR2 Backoffice Server Pool Min = 1 Max = 2 Imp = 5 15 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Agenda Introduction Server Pools and Database Management Policy-managed Database Use Cases Converting to a Policy-Managed Database Impact upon CRS-Managed Database Services Considerations and Tips Further Information 16 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Decide on a Management Style - At Database Creation Time 17 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Creating an Administrator-Managed DB [RAC]> srvctl status database -d orcl Instance ORCL1 is running on node rac1 Instance ORCL2 is running on node rac2 RAC1 RAC2 ORCL ORCL [GRID]> srvctl status srvpool Server pool name: Free Active servers count: 0 Server pool name: Generic Active servers count: 2 [RAC]> srvctl config database -d orcl Database unique name: orcl Database name: Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1 Oracle user: oracle Spfile: +DATA/ORCL/spfileORCL.ora Domain: Start options: open Stop options: immediate Database role: PRIMARY Management policy: AUTOMATIC Server pools: orcl Database instances: ORCL1,ORCL2 Disk Groups: DATA Services: MyConvSrvc Database is administrator managed 18 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Creating a Policy-Managed DB [RAC]> srvctl status database -d orcl Instance ORCL_1 is running on node rac1 Instance ORCL_2 is running on node rac2 orcldb [GRID]> srvctl status srvpool Server pool name: Free Active servers count: 0 Server pool name: Generic Active servers count: 0 Server pool name: orcldb Active servers count: 2 2 [RAC]> srvctl config database -d orcl Database unique name: ORCL Database name: ORCL Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1 Oracle user: oracle Spfile: +DATA/ORCL/spfileORCL.ora Domain: Start options: open Stop options: immediate Database role: PRIMARY Management policy: AUTOMATIC Server pools: orcldb Database instances: ORCL_1 ORCL_2 Disk Groups: DATA Services: MyConvSrv Database is policy managed 19 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Decide on a Management Style - Convert Existing Databases In Place Admin Managed (Generic Server Pool) Policy Managed (ORCLDB Server Pool) 20 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Converting to a Policy Managed Database - Step-by-Step 1. Check the current configuration srvctl status database d <db_name> srvctl status service d <db_name> 2. Create a new Database Server Pool srvctl add serverpool g <pool_name> -l <min> -u <max> -i <imp> 3. Modify the database to use the new server pool srvctl modify database d <db_name> -g <pool_name> 4. Update the remote password file for database access Copy the existing password file orapw$oracle_sid to orapw<db_unique_name> on the node where the administrator-managed database was running Copy this file orapw<db_unique_name>, to the same location on every cluster node. 5. Confirm Service Placement - Relocate services as needed srvctl relocate service d <db_name> -s <svc_name> -c <current_node> -n <target_node> 21 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Agenda Introduction Server Pools and Database Management Policy-managed Database Use Cases Converting to a Policy-Managed Database Impact upon CRS-Managed Database Services Considerations and Tips Further Information 22 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Converting to Policy-Managed Single DB - No Impact on Uniform Service Placement Admin Managed (Generic Server Pool) Policy Managed (ORCLDB Server Pool) Services with preferred servers > 1 will be converted to Uniform. Uniform services run on ALL database instances in a server pool Use RM or QoS to manage resources between services. 23 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Converting to Policy-Managed Multiple DBs - No Impact on Uniform Service Placement ERP ERP ERP Admin Managed Policy Managed Services with preferred servers > 1 will be converted to Uniform. Uniform services run on ALL database instances in a server pool Use RM or QoS to manage resources between services Use Instance Caging or QoS to manage resources between databases. 24 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Converting to Policy-Managed Multiple DBs - Overlapping Services to Uniform Service Placement DB1: DB1: DB1: DB1: DB1: DB2:HR DB1: DB1: DB2:ERP DB2:ERP DB2:HR DB2:ERP DB2:HR Admin Managed Policy Managed Services with preferred servers > 1 will be converted to Uniform. Uniform services run on ALL database instances in a server pool Use RM or QoS to manage resources between services Use Instance Caging or QoS to manage resources between databases. 25 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Converting to Policy-Managed Singleton Services - Potential Impact to Service Placement ERP Shipping ERP Shipping Admin Managed Policy Managed srvctl relocate service d orcl s erp c rac1 n rac2 srvctl relocate service d orcl s shipping c rac1 n rac2 ERP Shipping Policy Managed 26 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Converting to Policy-Managed Applications - No Impact on Application Placement MyApache MyApache Admin Managed [RAC]> crsctl status resource MyApache -p NAME=MyApache TYPE=cluster_resource TARGET=ONLINE STATE=ONLINE on rac1 CARDINALITY=1 HOSTING_MEMBERS=rac2 PLACEMENT=restricted Hosting Members list honored across conversion Server Pool list can be substituted to support anonymous nodes SERVER_POOLS=orcldb versus HOSTING_MEMBERS=rac1 rac2 Policy Managed [RAC]> crsctl status resource MyApache -p NAME=MyApache TYPE=cluster_resource TARGET=ONLINE STATE=ONLINE on rac1 CARDINALITY=1 HOSTING_MEMBERS=rac2 PLACEMENT=restricted 27 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Agenda Introduction Server Pools and Database Management Policy-managed Database Use Cases Converting to a Policy-Managed Database Impact upon CRS-Managed Database Services Considerations and Tips Further Information 28 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

The Upgrade Simple But No Shortcuts When upgrading from: Oracle pre-11gr2 Oracle RAC Database(s) hosted on Oracle pre-11gr2 Grid Infrastructure Upgrade step 1: Upgrade to Grid Infrastructure 11gR2 All pre-11gr2 Databases will be administrator-managed databases hosted in Generic Upgrade step 2: Upgrade pre-11gr2 Oracle RAC Database(s) Upgraded databases remain as admin-managed DBs in Generic A conversion to a policy-managed database can be performed at any time following the procedure described in the documentation. 29 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Tip:1 Consider Policy-Managed Database s New Fail-Over and Placement Protocol Node failures move servers between pools transactionally versus moving db instances/services Ensure Min value is sufficient to run workload Ensure Max value is only as large as necessary Consider Importance governs both initial placement and donor pools following a failure Consider changing Min, Max, and Imp as a group based upon business needs and events. 30 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Tip 2: Understand impact of New Database Instance Names and Relocation Databases instances are started and stopped transactionally when: Servers are moved between pools srvctl relocate server n <node name> -g <server pool> Pools grow or shrink srvctl modify srvpool -g <server pool> -l <min> -u<max> Instances can be reported legitimately as DOWN. Database instance reports, log and trace files are no longer nodespecific 31 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Tip 3: Consider Database Internals SQL> select instance_name from gv$instance; INSTANCE_NAME ---------------- ORCL_1 ORCL_2 SQL> select tablespace_name, contents from dba_tablespaces where contents = 'UNDO'; TABLESPACE_NAME CONTENTS ------------------------------ --------- UNDOTBS1 UNDO UNDOTBS2 UNDO The documentation (Oracle RAC Administration and Deployment Guide 11g Rel. 2 http://docs.oracle.com/cd/e11882_01/rac.112/e16795/admin.htm#racad803 states: If you are using Oracle Automatic Storage Management (Oracle ASM) with Oracle Managed Files (OMF) for your [policy-managed database] database storage, then, when an instance starts and there is no redo thread available, Oracle RAC automatically enables one and creates the required redo log files and undo tablespace. 32 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Tip 4: Consider External Components - EM Oracle Real Application Clusters Installation Guide 11g Release 2 (11.2) http://docs.oracle.com/cd/e11882_01/install.112/e24660/srvpool.htm#bhbjiidc Configuring Database Control After Installation Using EMCA NOTE: Instances will have new names and need to be registered. 33 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Tip 4: Consider External Components - HA Data Guard New instance not mapped to Standby Redo Log thread Service to instance mapping is statically registered thus all possible combinations of node name and instance need to be configured. RMAN Do not use Instance Specified Load Balancing - CONFIGURE CHANNEL DEVICE TYPE sbt CONNECT '@racinst_1' CONFIGURE CHANNEL DEVICE TYPE sbt CONNECT '@racinst_2 Golden Gate Extract Process requires manual intervention Upon additional Redo thread Extract group must be dropped and re-added manually GG Extract and Replicate does not failover if server is moved Solved on Linux with new Clusterware Bundled Agents available on OTN. 34 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Agenda Introduction Server Pools and Database Management Policy-managed Database Use Cases Converting to a Policy-Managed Database Impact upon CRS-Managed Database Services Considerations and Tips Further Information 35 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

For Further Information http://www.oracle.com/technology/documentation/database.html To convert to a policy-managed database, see: http://docs.oracle.com/cd/e11882_01/rac.112/e16795/admin.htm#racad803 For using EMCA after conversions, see: http://docs.oracle.com/cd/e11882_01/install.112/e24660/srvpool.htm#bhbjiidc http://www.oracle.com/goto/rac http://www.oracle.com/goto/clusterware 36 Copyright 2012, Oracle and/or its affiliates. All rights reserved.

37 Copyright 2012, Oracle and/or its affiliates. All rights reserved. Q/A

38 Copyright 2012, Oracle and/or its affiliates. All rights reserved.