CERN IT Department CH-1211 Genève 23 Switzerland www.cern.ch/i t Oracle 11g R2 New Features RAC and ASM Dawid Wojcik 27 November 2009.

Slides:



Advertisements
Similar presentations
ASM 11g R1/R2 Enhancements Suresh Gandhi
Advertisements

SOM Sponsors: RAC, GRID, CLOUD OR ON THE WAY TO ORACLE CLOUD 11GR2 RAC FEATURES REVIEW By: Ahmed Baraka (Independent) Yury Velikanov (Pythian) & All of.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008.
What’s New: Windows Server 2012 R2 Tim Vander Kooi Systems Architect
Introduction to DBA.
High Availability Group 08: Võ Đức Vĩnh Nguyễn Quang Vũ
Hands-On Microsoft Windows Server 2003 Administration Chapter 6 Managing Printers, Publishing, Auditing, and Desk Resources.
Oracle Architecture Client Computer Application Server Oracle Database Lan Or Internet Lan Or Internet Client Server Environment Application By Java or.Net.
Session 3 Windows Platform Dina Alkhoudari. Learning Objectives Understanding Server Storage Technologies Direct Attached Storage DAS Network-Attached.
CERN IT Department CH-1211 Geneva 23 Switzerland t CERN IT Department CH-1211 Geneva 23 Switzerland t
BNL Oracle database services status and future plans Carlos Fernando Gamboa RACF Facility Brookhaven National Laboratory, US Distributed Database Operations.
Oracle Database High Availability Brandon Kuschel Jian Liu Source: Oracle Database 11g Release 2 High Availability An Oracle White Paper November 2010.
Simplify your Job – Automatic Storage Management Angelo Session id:
© 2009 Oracle Corporation. S : Slash Storage Costs with Oracle Automatic Storage Management Ara Vagharshakian ASM Product Manager – Oracle Product.
CERN IT Department CH-1211 Genève 23 Switzerland t Data Protection with Oracle Data Guard Jacek Wojcieszuk, CERN/IT-DM Distributed Database.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
Re-defining Database Storage Management
Oracle Confidential Extending Automatic Storage Management to Manage ALL Data Oracle Database 11g Release 2 Ara Shakian Principal Product Manager.
Oracle Recovery Manager (RMAN) 10g : Reloaded
Storage and NT File System INFO333 – Lecture Mariusz Nowostawski Noria Foukia.
Database Services for Physics at CERN with Oracle 10g RAC HEPiX - April 4th 2006, Rome Luca Canali, CERN.
Oracle ASM Cluster File System (ACFS)- See What’s New
CERN IT Department CH-1211 Geneva 23 Switzerland t Experience with NetApp at CERN IT/DB Giacomo Tenaglia on behalf of Eric Grancher Ruben.
Oracle10g RAC Service Architecture Overview of Real Application Cluster Ready Services, Nodeapps, and User Defined Services.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
Appendix B Planning a Virtualization Strategy for Exchange Server 2010.
© 2009 Oracle Corporation. S : Oracle Database 11g Release 2 First Experiences Plamen Zyumbyulev, Mobiltel Philip Newlan, Oracle RAC Pack.
ACFS Under Scrutiny Luca Canali, CERN Dawid Wojcik, CERN UKOUG Conference, Birmingham, Nov 2010.
CERN - IT Department CH-1211 Genève 23 Switzerland t Tier0 database extensions and multi-core/64 bit studies Maria Girone, CERN IT-PSS LCG.
Implementing Hard Drives. Partitioning and Formatting Process.
DB Questions and Answers open session Carlos Fernando Gamboa, BNL WLCG Collaboration Workshop, CERN Geneva, April 2008.
CERN - IT Department CH-1211 Genève 23 Switzerland t Oracle Real Application Clusters (RAC) Techniques for implementing & running robust.
Mark E. Fuller Senior Principal Instructor Oracle University Oracle Corporation.
ASM General Architecture
© 2008 Cisco Systems, Inc. All rights reserved.CIPT1 v6.0—1-1 Getting Started with Cisco Unified Communications Manager Installing and Upgrading Cisco.
CERN Database Services for the LHC Computing Grid Maria Girone, CERN.
Microsoft Windows XP Professional MCSE Exam
Oracle 10g Automatic Storage Management Overview of ASM as a Storage Option for Oracle 10g.
CERN IT Department CH-1211 Genève 23 Switzerland t DM Database Monitoring Tools Database Developers' Workshop CERN, July 8 th, 2008 Dawid.
CERN IT Department CH-1211 Genève 23 Switzerland t DBA Experience in a multiple RAC environment DM Technical Meeting, Feb 2008 Miguel Anjo.
CERN - IT Department CH-1211 Genève 23 Switzerland t High Availability Databases based on Oracle 10g RAC on Linux WLCG Tier2 Tutorials, CERN,
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
LHC Logging Cluster Nilo Segura IT/DB. Agenda ● Hardware Components ● Software Components ● Transparent Application Failover ● Service definition.
Database CNAF Barbara Martelli Rome, April 4 st 2006.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Platform & Engineering Services CERN IT Department CH-1211 Geneva 23 Switzerland t PES Improving resilience of T0 grid services Manuel Guijarro.
3 Copyright © 2006, Oracle. All rights reserved. Installation and Administration Basics.
ITMT Windows 7 Configuration Chapter 4 – Working with Disks and Devices ITMT 1371 – Windows 7 Configuration 1.
2 Copyright © 2006, Oracle. All rights reserved. RAC and Shared Storage.
DB Questions and Answers open session (comments during session) WLCG Collaboration Workshop, CERN Geneva, 24 of April 2008.
CERN IT Department CH-1211 Genève 23 Switzerland t Using Data Guard for hardware migration UKOUG RAC & HA SIG, Feb 2008 Miguel Anjo, CERN.
1 Copyright © 2009, Oracle. All rights reserved. Oracle Grid Infrastructure.
Oracle Database High Availability
Answer to Summary Questions
High Availability Linux (HA Linux)
Introduction to Operating Systems
Database Services at CERN Status Update
Disk management (October 21, 2015) © Abdou Illia, Fall 2015.
Oracle Database High Availability
Scalable Database Services for Physics: Oracle 10g RAC on Linux
Oracle Database Monitoring and beyond
Storage Virtualization
Introduction of Week 3 Assignment Discussion
ASM-based storage to scale out the Database Services for Physics
Scalable Database Services for Physics: Oracle 10g RAC on Linux
ASM File Group Parity Protection New to ASM for Oracle Database 19c
ASM Database Clones New to ASM for Oracle Database 18c
Presentation transcript:

CERN IT Department CH-1211 Genève 23 Switzerland t Oracle 11g R2 New Features RAC and ASM Dawid Wojcik 27 November 2009

CERN IT Department CH-1211 Genève 23 Switzerland t Outline The new Grid Infrastructure Introduction Oracle connectivity redesigned (SCAN, GNS, …) Cluster resources and new ways of cluster database management OCR and voting disks redesigned ACFS and ADVM Features Architecture Usage scenarios Fun stuff Oracle 11g New Features, RAC and ASM - D. Wojcik2

CERN IT Department CH-1211 Genève 23 Switzerland t Grid Infrastructure Clusterware is now called Oracle Grid Infrastructure Installation ‐ASM is now part of Grid Infrastructure ‐OCR and voting disk no longer supported on raw or block devices, only on ASM ‐If installation goes wrong Oracle now provides a deinstallation utility Upgrade ‐Rolling upgrade supported only from 11.1 (for 10g DB is required to be down on all nodes) ‐Possible to install 11.2 Grid with 10.2 DBs (you need to “pin” the nodes) Oracle 11g New Features, RAC and ASM - D. Wojcik 3

CERN IT Department CH-1211 Genève 23 Switzerland t Grid Infrastructure Grid Infrastructure has been redesigned New process tree ‐OPROCD, OCLSOMON, OCLSVMON no longer exist ‐Init spawns only one process (ohasd), which spawns  oraagent  orarootagent  cssdagent Hangcheck timer no longer required on linux ASM instance is started during Grid Infrastructure startup to allow accessing OCR and voting disks (bootstrap procedure) Oracle 11g New Features, RAC and ASM - D. Wojcik 4

CERN IT Department CH-1211 Genève 23 Switzerland t Single Client Access Name SCAN (Single Client Access Name) Allows any client to connect to any database or service in the cluster with just single hostname even if the cluster size changes Load balances connections across all instances providing a service (server side load balancing) Provides failover in case an instance fails and services relocate Allows clients to use EZConect or simple JDBC connection in ‘RAC-aware’ mode Each cluster (even two node one) has ‐3 SCAN VIPs ‐3 SCAN listeners Oracle 11g New Features, RAC and ASM - D. Wojcik5

CERN IT Department CH-1211 Genève 23 Switzerland t Single Client Access Name SCAN implementation DNS (Domain Name Service) ‐NetOps define DNS alias which resolves one of three SCAN VIPs in round-robin way GNS (Grid Naming Service) ‐Subdomain DNS resolution for SCAN VIPs ‐Can be used for DHCP VIP registration SCAN registration Instance registers with local listener on its node Instance registers with SCAN (all SCAN listeners) Oracle 11g New Features, RAC and ASM - D. Wojcik6

CERN IT Department CH-1211 Genève 23 Switzerland t Single Client Access Name Oracle 11g New Features, RAC and ASM - D. Wojcik7

CERN IT Department CH-1211 Genève 23 Switzerland t Managing Oracle RAC Administrator Managed – “the old way” DBA defines where the database should run and manages list of nodes in RAC DBA defines where services should run within the cluster Policy Managed – “the new way” DBA defines resource requirements for each DB running in the cluster DB instances are started “when needed” Goal - remove hard coding services and instance nodes Oracle 11g New Features, RAC and ASM - D. Wojcik8

CERN IT Department CH-1211 Genève 23 Switzerland t Policy Managed RAC Allows grouping more DBs into one cluster for better resource utilization Cluster divided into pools of servers Applications and DBs run in one or more server pools ‐Instances can be started on different nodes each time the cluster starts (!) Resource allocation is defined by 3 attributes: ‐Min – minimum number of servers (default 0) ‐Max – maximum number of servers (default 0 or -1) ‐Importance – 0 (least important) to 1000 Oracle 11g New Features, RAC and ASM - D. Wojcik9

CERN IT Department CH-1211 Genève 23 Switzerland t Policy Managed Services Services in RAC managed with server pools can run only in one server pool Depending on how many nodes they run they can be Uniform – run in all instances in a pool Singleton – run only in one instance in a pool This gives less flexibility than Administrator Managed Services Oracle 11g New Features, RAC and ASM - D. Wojcik10

CERN IT Department CH-1211 Genève 23 Switzerland t Server assignment in Grid Servers are assigned in the following order: Generic server pool (if defined, during upgrade all servers go to generic pool) User defined server pools Free pool Grid Infrastructure uses importance of server pool to determine server assignment order: Fill all server pools in order of importance until they meet their minimum Fill all server pools in order of importance until they meet their maximum By Default any left over go into free pool Oracle 11g New Features, RAC and ASM - D. Wojcik11

CERN IT Department CH-1211 Genève 23 Switzerland t LFC Pool Min 2 Max 3 Imp 4 ATLAS Conditions Pool Min 1 Max 3 Imp 3 Server assignment in Grid Cluster of 9 nodes is staring up … Oracle 11g New Features, RAC and ASM - D. Wojcik12 ASM LHCb Cond. Pool Min 1 Max 2 Imp 2 Free Pool

CERN IT Department CH-1211 Genève 23 Switzerland t Oracle 11g New Features, RAC and ASM - D. Wojcik13

CERN IT Department CH-1211 Genève 23 Switzerland t Handling failures If a server leaves the cluster … and the free pool is empty Grid Infrastructure may move servers from one server pool to another only if ‐you have non-default values for min, importance ‐a server pool falls below its minimum Servers to be moved are taken from ‐A server pool that is less important ‐A server pool of the same importance which has more servers than its minimum Oracle 11g New Features, RAC and ASM - D. Wojcik14

CERN IT Department CH-1211 Genève 23 Switzerland t OCR in ASM OCR is now just like any file in ASM New Oracle managed file type 1 OCR per diskgroup Good practice to have more than 1 OCR OCR file redundancy follows diskgroup redundancy OCR now holds automatic backups of voting disks! (taken automatically on any cluster configuration change) Oracle 11g New Features, RAC and ASM - D. Wojcik15

CERN IT Department CH-1211 Genève 23 Switzerland t Voting disk in ASM Voting Disks are created on specific disks and Grid Infrastructure knows their location Number of voting disks depends on the redundancy chosen for the diskgroup ‐External – 1 Voting Disk ‐Normal – 3 Voting Disks ‐High – 5 Voting Disks Diskgroup must contain enough failure groups to create each voting disk in a separate failure group! Oracle 11g New Features, RAC and ASM - D. Wojcik16

CERN IT Department CH-1211 Genève 23 Switzerland t ACFS – the revolution What is ACFS? ASM Cluster File System – POSIX/X-OPEN compliant File System ‐Can be used cluster-wide or single node only Currently Linux only (RHEL5 +), new platforms coming soon Can be shared using NFS, CIFS, … Online filesystem expansion / shrink mirror protection when using NORMAL redundancy diskgroups read-only snapshots built-in Oracle 11g New Features, RAC and ASM - D. Wojcik17

CERN IT Department CH-1211 Genève 23 Switzerland t Grid Infrastructure ASM ACFS architecture Oracle 11g New Features, RAC and ASM - D. Wojcik18 Clusterware Oracle Database Files ASM Cluster File System (ACFS) Third Party File System Oracle RAC or Single Instance DBs ASM dynamic Volume Manager (ADVM) Applications

CERN IT Department CH-1211 Genève 23 Switzerland t ACFS – under hood ASM Dynamic Volume Manager (ADVM) Carves out logical volumes from an ASM diskgroup that will be exposed to OS as block devices Device name format: /dev/asm/volume_name-xyz ADVM volume can be partitioned On top of ADVM volume one can create any file system (ext3, ACFS,...) Volumes can be resized (make sure the filesystem supports it) Kernel modules: oracleacfs, oracleadvm, oracleoks, oracleasm Oracle 11g New Features, RAC and ASM - D. Wojcik19

CERN IT Department CH-1211 Genève 23 Switzerland t ADVM features ADVM Volumes can be exposed (enabled) on any nodes Volume redundancy can be Unprotected – for external redundancy diskgroup High, mirror or unprotected – for normal redundancy diskgroup Stripe width and IDP (Intelligent Data Placement) parameter can be specified Oracle 11g New Features, RAC and ASM - D. Wojcik20

CERN IT Department CH-1211 Genève 23 Switzerland t ASM – some new features IDP (Intelligent Data Placement) Requires JBOD storage connected (one disk – one LUN) ASM files can be specified to be on external (hot, faster) part of the disks or internal (cold, slower) New tools to manage ASM and ACFS Extended asmcmd tool New tool for ACFS – acfsutil … Oracle 11g New Features, RAC and ASM - D. Wojcik21

CERN IT Department CH-1211 Genève 23 Switzerland t ACFS use cases BFILEs, external tables, external files storage Local file systems, exports, dumps, etc. Batch jobs data Shared RDBMS home (not recommended if using rolling patches) Local RDBMS home … Oracle 11g New Features, RAC and ASM - D. Wojcik22

CERN IT Department CH-1211 Genève 23 Switzerland t ACFS Advantages No need for 3rd party cluster file systems Uses ASM - known tools it will become platform independent CFS Simple administration (acfsutil, acfschkdsk, mkfs,...) Cost effective (if you have at least one node licensed for SE or EE - you can use it) Snapshots for free Very good performance Oracle 11g New Features, RAC and ASM - D. Wojcik23

CERN IT Department CH-1211 Genève 23 Switzerland t ACFS snapshots Provide Point-In-Time images (ACFS only) File System functionality Can be performed online Used for consistent backups Limited to 63 snapshots per File System Copy on write mechanism (before-images shared between snapshots) Snapshots within the same file system - monitor free space! Oracle 11g New Features, RAC and ASM - D. Wojcik24

CERN IT Department CH-1211 Genève 23 Switzerland t ACFS performance Compared ext3 on local disk vs. ext3 on ADVM No difference in write speed Typical read/write performance is much better comparing to ext3 (both running on ADVM) Oracle 11g New Features, RAC and ASM - D. Wojcik25 Test typeEXT3 (on ADVM)ACFS (on ADVM) Big file creation37MB/s225MB/s Extracting 2,5GB tar180 s100 s Deleting big dir. tree3 s11 s Touching 50k files63 s75 s

CERN IT Department CH-1211 Genève 23 Switzerland t Important SQL features Recursive Subquery Factoring with x( s, ind ) as ( select sud, instr( sud, ' ' ) from ( select ' ' sud from dual ) union all select substr( s, 1, ind - 1 ) || z || substr( s, ind + 1 ), instr( s, ' ', ind + 1 ) from x, ( select to_char( rownum ) z from dual connect by rownum <= 9 ) z where ind > 0 and not exists ( select null from ( select rownum lp from dual connect by rownum <= 9 ) where z = substr( s, trunc( ( ind - 1 ) / 9 ) * 9 + lp, 1 ) or z = substr( s, mod( ind - 1, 9 ) lp * 9, 1 ) or z = substr( s, mod( trunc( ( ind - 1 ) / 3 ), 3 ) * 3 + trunc( ( ind - 1 ) / 27 ) * 27 + lp + trunc( ( lp - 1 ) / 3 ) * 6, 1 ) ) select s from x where ind = 0 / Oracle 11g New Features, RAC and ASM - D. Wojcik26 solving-a-sudoku-using-recursive-subquery-factoring

CERN IT Department CH-1211 Genève 23 Switzerland t Conclusions 11gR2 comes with many new features We will test some of the most interesting and publish tests on our TWiki We are eager to try ACFS in production Not ready for Server Pool managed clusters (isolation preferred over consolidation) ‐Except for downstream capture boxes … more useful features to be discovered Oracle 11g New Features, RAC and ASM - D. Wojcik27