1 Patterns PRESENTER Y V RaviKumar Oracle ACE & Oracle Certified Master (OCM) PRESENTER Y V RaviKumar Oracle ACE & Oracle Certified Master (OCM)

Slides:



Advertisements
Similar presentations
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.
Advertisements

ITEC474 INTRODUCTION.
Chapter 20 Oracle Secure Backup.
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008.
Introduction to DBA.
1 © Copyright 2010 EMC Corporation. All rights reserved. EMC RecoverPoint/Cluster Enabler for Microsoft Failover Cluster.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 10: Server Administration.
2 Copyright © 2009, Oracle. All rights reserved. Installing your Oracle Software.
1© Copyright 2011 EMC Corporation. All rights reserved. EMC RECOVERPOINT/ CLUSTER ENABLER FOR MICROSOFT FAILOVER CLUSTER.
Welcome Course 20410B Module 0: Introduction Audience
Module 2: Planning to Install SQL Server. Overview Hardware Installation Considerations SQL Server 2000 Editions Software Installation Considerations.
11 SERVER CLUSTERING Chapter 6. Chapter 6: SERVER CLUSTERING2 OVERVIEW  List the types of server clusters.  Determine which type of cluster to use for.
Microsoft Load Balancing and Clustering. Outline Introduction Load balancing Clustering.
VMware vCenter Server Module 4.
© 2009 Oracle Corporation. S : Slash Storage Costs with Oracle Automatic Storage Management Ara Vagharshakian ASM Product Manager – Oracle Product.
Oracle Confidential Extending Automatic Storage Management to Manage ALL Data Oracle Database 11g Release 2 Ara Shakian Principal Product Manager.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.

5 Copyright © 2008, Oracle. All rights reserved. Configuring the Oracle Network Environment.
5 Copyright © 2007, Oracle. All rights reserved. Configuring the Oracle Network Environment.
12 Copyright © 2004, Oracle. All rights reserved. Oracle Net Services.
11 Copyright © 2005, Oracle. All rights reserved. Configuring the Oracle Network Environment.
Oracle10g RAC Service Architecture Overview of Real Application Cluster Ready Services, Nodeapps, and User Defined Services.
11 Copyright © 2005, Oracle. All rights reserved. Configuring the Oracle Network Environment.
ORACLE 10g DATA GUARD BROKER Ritesh Chhajer Sr. Oracle DBA.
Clustering  Types of Clustering. Objectives At the end of this module the student will understand the following tasks and concepts. What clustering is.
INSTALLING MICROSOFT EXCHANGE SERVER 2003 CLUSTERS AND FRONT-END AND BACK ‑ END SERVERS Chapter 4.
© 2009 Oracle Corporation. S : Oracle Database 11g Release 2 First Experiences Plamen Zyumbyulev, Mobiltel Philip Newlan, Oracle RAC Pack.
Installing Oracle Database 11gR2 Software on Red Hat Enterprise Linux 5 (RAC)
1 VitalSoftTech.com Copyright 2014 By Natik Ameen.
Using OUI to install Oracle9i Release 2 on an OpenVMS System.
6 Copyright © 2009, Oracle. All rights reserved. Configuring the Oracle Network Environment.
Installing Oracle9i RAC Release 2 on HP OpenVMS Systems.
B Copyright © 2009, Oracle. All rights reserved. Configuring Warehouse Builder in RAC Environments.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
A Guide to Oracle9i1 Database Instance startup and shutdown.
IT Database Administration SECTION 01. Starting Up and Shutting Down the Database Database Administration Facilities – A number of tools are available.
12c ASM – The New Frontier Nitin Vengurlekar Chief Architect/CTO - Viscosity North America.
3 Copyright © Oracle Corporation, All rights reserved. Basic Oracle Net Server Side Configuration.
1 © 2005 Cisco Systems, Inc. All rights reserved. 111 © 2004, Cisco Systems, Inc. All rights reserved. CNIT 221 Security 2 ver.2 Module 8 City College.
11 CLUSTERING AND AVAILABILITY Chapter 11. Chapter 11: CLUSTERING AND AVAILABILITY2 OVERVIEW  Describe the clustering capabilities of Microsoft Windows.
Mark E. Fuller Senior Principal Instructor Oracle University Oracle Corporation.
ASM General Architecture
Donna C. Hamby Sr. Principal Instructor Oracle University Oracle Corporation.
High Availability in DB2 Nishant Sinha
Oracle 10g Automatic Storage Management Overview of ASM as a Storage Option for Oracle 10g.
2 Copyright © 2004, Oracle. All rights reserved. Installing Oracle Database 10g Software.
CERN - IT Department CH-1211 Genève 23 Switzerland t High Availability Databases based on Oracle 10g RAC on Linux WLCG Tier2 Tutorials, CERN,
Portable, Virtualized Oracle Environments on Solaris Sam Brunacini, ServerWare Session #127.
LHC Logging Cluster Nilo Segura IT/DB. Agenda ● Hardware Components ● Software Components ● Transparent Application Failover ● Service definition.
C Copyright © 2007, Oracle. All rights reserved. Security New Features.
Managing Oracle Enterprise Manager Cloud Control 12c with Oracle Clusterware Session ID#UGF9794 Leighton L. Nelson Mercy.
3 Copyright © 2006, Oracle. All rights reserved. Installation and Administration Basics.
Windows Certification Paths OR MCSA Windows Server 2012 Installing and Configuring Windows Server 2012 Exam (20410) Administering Windows Server.
6 Copyright © 2006, Oracle. All rights reserved. Oracle Clusterware.
2 Copyright © 2006, Oracle. All rights reserved. RAC and Shared Storage.
Manage large RAC Clusters Session# 851 Tom S. Reddy Database Administration, Inc.
Oracle 10g Administration Oracle Server Introduction Copyright ©2006, Custom Training Institute.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Oracle Solaris Zones Study Purpose Only
Introduction of Week 6 Assignment Discussion
Oracle10g RAC Service Architecture
Core Concepts and Tools of the Oracle Database
ASM File Group Parity Protection New to ASM for Oracle Database 19c
RAC Networking Lab.
Designing Database Solutions for SQL Server
Presentation transcript:

1 Patterns PRESENTER Y V RaviKumar Oracle ACE & Oracle Certified Master (OCM) PRESENTER Y V RaviKumar Oracle ACE & Oracle Certified Master (OCM)

2 Patterns ABOUT ME ORACLE CERTIFIED MASTER (OCM) ORACLE ACE AUTHOR OF ORACLE TECHNOLOGY NETWORK (OTN) ARTICLES (17 Articles for OTN Spanish) - (14 Articles for OTN Portuguese) ( 2 Articles for OTN English) ORACLE TECHNOLOGY GROUPS Y2014 Oracle User Group (IOUG) Y2014 Technology Network (OTN) Yathra Y2013, Y2014 & Y2015 India Oracle User Group (AIOUG) Tech Day Y2013 & Y2014 India Oracle User Group (AIOUG) ExadataSIG Y2014 AUTHOR OF TOAD WORLD (CONNECTED INTELLIGENCE) Author Of OTech Magazine Author Of All things ORACLE from redgate CO-FOUNDER OF ORACLE CERTIFICATIONS Oracle Database 10g: Certified Master (10g OCM) Oracle Database 10g & 11g: Administering RAC Certified Expert Oracle Database 11g: Performance Tuning Certified Expert Oracle Exadata 11g Essentials Oracle Golden Gate 10 Essentials Oracle Database 11g: SQL Tuning Certified Expert Oracle 9i & 10g: Managing Oracle on Linux Certified Expert Oracle Certified Professional (OCP) – Oracle 11g, 10g, 9i and 8i SUN Certified – Solaris System Administrator in SUN Solaris 9

3 Patterns ORACLE Flex ASM and Flex Cluster

Patterns 4 ARCHITECTURE OF ASM OPERATING SYSTEM HARDWARE ORACLE DATABASE ASM File System & Volume Management OPERATING SYSTEM HARDWARE Logical Volume Manager File System ORACLE DATABASE

Patterns 5 Oracle 10g RAC – VD & OCR Locations

Patterns 6 Oracle 11g RAC – VD & OCR Locations

Patterns 7 Oracle 12c RAC – VD & OCR Locations

Patterns 8 CAPABILITIES OF ASM 1-1 ASM to SERVER SHARED DISK GROUPS WIDE FILE STRIPING

Patterns 9 AUTOMATIC STORAGE MANAGEMENT (ASM) OVERVIEW Current State  ASM Cluster Pool of Storage Disk Group B Disk Group A SHARED DISK GROUPS WIDE FILE STRIPING ONE TO ONE MAPPING OF ASM INSTANCES TO SERVERS ASM Instance Database Instance ASM Disk RAC CLUSTER Node4 Node3 Node2 Node1 Node5 ASM ASM Instance Database Instance DB A DB B DB C DB B

Patterns 10 Oracle Database 11gR2 with ASM login as:oracle password: ******** Last login: Fri Sep 27 06:05: ~]$ ps -ef | grep pmon oracle :56 ? 00:00:00 asm_pmon_+ASM1 oracle :57 ? 00:00:00 ora_pmon_flavia1 ~]$ srvctl status asm ASM is running on rac2,rac1 ~]$ crsctl check cluster CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online ~]$ srvctl stop asm -n rac1 -o abort -f LOG INTO RAC DATABASE INSTANCE (RAC1) CHECK STATUS OF ASM & RAC DATABASE INSTANCES CHECK STATUS OF ASM INSTANCE IN RAC DATABASE INSTANCES1 (RAC1) CHECK STATUS OF CLUSTER IN RAC DATABASE INSTANCES1 (RAC1) STOP THE ASM INSTANCE IN RAC DATABASE INSTANCE1 (RAC1)

Patterns 11 Oracle Database 11gR2 with ASM ~]$ srvctl stop asm -n rac1 -o abort -f ~]$ srvctl status asm CHECK THE STATUS OF ASM INSTANCE IN RAC DATABASE INSTANCE1 (RAC1)

Patterns 12 Oracle Database 11gR2 with ASM ~]$ srvctl stop asm -n rac1 -o abort -f ~]$ srvctl status asm ASM is running on rac2

Patterns 13 Oracle Database 11gR2 with ASM ~]$ srvctl stop asm -n rac1 -o abort -f ~]$ srvctl status asm ASM is running on rac2 ~]$ ps -ef | grep pmon CHECK THE STATUS OF ASM & RAC DATABASE INSTANCE (RAC1)

Patterns 14 Oracle Database 11gR2 with ASM ~]$ srvctl stop asm -n rac1 -o abort -f ~]$ srvctl status asm ASM is running on rac2 ~]$ ps -ef | grep pmon oracle :20 pts/0 00:00:00 grep pmon SUMMARY  The database instance is strongly linked to the ASM instance  If an ASM instance fails so will the database instance on the same node SUMMARY  The database instance is strongly linked to the ASM instance  If an ASM instance fails so will the database instance on the same node

Patterns 15 FLEX ASM: ELIMINATE 1:1 SERVER MAPPING  New: ASM Storage Consolidation in Oracle Database 12c  ASM Cluster Pool of Storage Disk Group B Disk Group A SHARED DISK GROUPS WIDE FILE STRIPING DATABASES SHARE ASM INSTANCES ASM Instance Database Instance ASM Disk RAC Cluster Node5 Node4 Node3 Node2 Node1 Node5 runs as ASM Client to Node4 Node1 runs as ASM Client to Node2 Node1 runs as ASM Client to Node4 Node2 runs as ASM Client to Node3 ASM ASM Instance DB A DB B DB C DB B

>>> Desktop]$ hostname Desktop]$ ps -ef | grep pmon oracle :39 ? 00:00:00 asm_pmon_+ASM1 oracle :40 ? 00:00:00 mdb_pmon_-MGMTDB oracle :42 ? 00:00:00 ora_pmon_orcl1 oracle :42 ? 00:00:00 apx_pmon_+APX1 Desktop]$ srvctl status asm ASM is running on oel6-112-rac2,oel6-112-rac1 oel6-112-rac1.localdomain Desktop]$ crsctl check cluster CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online LOG INTO RAC DATABASE INSTANCE 1 (RAC1) LOG INTO RAC DATABASE INSTANCE 1 (RAC1) CHECK THE STATUS OF ASM & RAC DATABASE INSTANCES CHECK THE STATUS OF ASM INSTANCE IN RAC DATABASE INSTANCE FROM INSTANCE 1 (RAC 1) CHECK THE STATUS OF CLUSTER IN INSTANCE 1 (RAC 1)

>>> Desktop]$ asmcmd ASMCMD> showclustermode CHECK IF ORACLE FLEX ASM IS ENABLED OR NOT (RAC1) ASM cluster : Flex mode enabled ASMCMD> showclusterstate Normal ASMCMD> exit Desktop]$ asmcmd CHECK IF ORACLE FLEX ASM IS ENABLED OR NOT (RAC2) ASMCMD> showclustermode ASM cluster : Flex mode enabled ASMCMD> showclusterstate Normal ASMCMD> exit Desktop]$ srvctl stop asm -node oel6-112-rac1 -stopoption Desktop]$ srvctl status asm PRCR-1070 : Failed to check if resource ora.asm is registered Cannot communicate BRING DOWN THE ASM INSTANCE IN RAC DATABASE INSTANCE 1 (RAC 1) CHECK STATUS OF ASM INSTANCE IN RAC DATABASE INSTANCE1 (RAC1) abort -force with crsd

>>> Desktop]$ crsctl check cluster CHECK STATUS OF CLUSTER SERVICES IN RAC DATABASE INSTANCE1 (RAC1) CRS-4535: Cannot communicate with Cluster Ready Services CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online Desktop]$ ps -ef | grep pmon CHECK STATUS OF ASM & RAC DATABASE IN INSTANCE1 (RAC 1) CHECK STATUS OF ASM & RAC DATABASE IN INSTANCE1 (RAC 1) oracle :40 ? 00:00:00 mdb_pmon_-MGMTDB oracle :42 ? 00:00:00 ora_pmon_orcl1 oracle :42 ? 00:00:00 apx_pmon_+APX1 Desktop]$ NOTE Here a database instance is associated with the specific ASM instance running in the specific node. If in case due to some reason if the ASM instance was unable to be brought up/services goes down, still the database instance can be brought up as the database instance will look for ASM instance running in the same cluster. NOTE Here a database instance is associated with the specific ASM instance running in the specific node. If in case due to some reason if the ASM instance was unable to be brought up/services goes down, still the database instance can be brought up as the database instance will look for ASM instance running in the same cluster.

19 Patterns Desktop]$. oraenv ORACLE_SID = [orcl1] ? orcl1 ORACLE_HOME = [/home/oracle] ? /u01/app/oracle/product/12.1.0/db_1 The Oracle base remains unchanged with value /u01/app/oracle CHECK STATUS OF RAC DATABASE INSTANCE RUNNING WITHOUT ASM INTANCE IN RAC DATABASE INSTANCE1 (RAC1)

20 Patterns Desktop]$ sqlplus /nolog SQL*Plus: Release Production on Wed Sep 25 18:24: Copyright (c) 1982, 2013, Oracle. All rights reserved. SQL> connect as sysdba Connected. SQL> select instance_name, instance_number from gv$instance; INSTANCE_NAME INSTANCE_NUMBER orcl2 2 orcl1 1 SQL> select instance_name, instance_number from v$instance; INSTANCE_NAME INSTANCE_NUMBER orcl2 2 SQL> connect as sysdba Connected. SQL> LOG INTO DATABASE INSTANCE FROM RAC DATABASE INSTANCE (RAC1)

21 Patterns SQL> select instance_name, instance_number from gv$instance; INSTANCE_NAME INSTANCE_NUMBER orcl1 1 Desktop]$. oraenv ORACLE_SID = [orcl1] ? +ASM2 ORACLE_HOME = [/home/oracle] ? /u01/app/12.1.0/grid The Oracle base remains unchanged with value /u01/app/oracle Desktop]$ asmcmd --privilege sysasm --inst +ASM2 CONNECTING TO ASM INSTANCE OF RAC DATABASE INSTANCE2 (RAC2) FROM RAC DATABASE INSTANCE1 (RAC1)

22 Patterns ASMCMD> lsdg State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name MOUNTED EXTERN N Y DATA/ ASMCMD> SUMMARY The database instance was using a dedicated ASM instance and that ASM instance was forced to stop working simulating a failure, so the database instance reconnected to an existent ASM instance on another node, for this example node 2 (rac2). SUMMARY The database instance was using a dedicated ASM instance and that ASM instance was forced to stop working simulating a failure, so the database instance reconnected to an existent ASM instance on another node, for this example node 2 (rac2).

Patterns 23 SHARED DISK GROUPS WIDE FILE STRIPING DATABASES SHARE ASM INSTANCES FLEX ASM: SUPPORTING ORACLE DATABASE 11g ASM Cluster Pool of Storage Disk Group B Disk Group A ASM Instance Database Instance ASM Disk RAC CLUSTER Node5 Node4 Node3 Node2 Node1 ASM DB A DB B DB C DB B ASM 11.2 DB 11.2 DB 11.2 DB 11.2 DB  Previous Database versions will host Local ASM Instance 

Patterns 24 Oracle FLEX CLUSTER  Comprises of a Hub and Leaf architecture where in only the Hub nodes will only have direct access to Oracle Cluster Registry (OCR) and Voting Disk (VD)  However application can access the database via Leaf nodes without ASM instance NOT running on Leaf nodes  The connection to the database is through Hub making it transparent for the application Depicts a typical Oracle flex cluster with four Leaf nodes and two Hub nodes. In a nutshell Oracle Flex Cluster requires Oracle Flex ASM.

Patterns 25 HUB NODES & LEAF NODES Hub Nodes They are connected among them via private network and have direct access to the shared storage just like previous versions. These nodes are the ones that access the Oracle Cluster Registry (OCR) and Voting Disk (VD) directly. Leaf Nodes These nodes are lighter and are not connected among them, neither access the shared storage like the Hub Nodes. Each Leaf Node communicates with the Hub Node that is attached to, and its connected to the cluster via the Hub Node that is linked to.

26 Patterns Flex ASM Higher Availability (DB instances can use remote ASM instances) Planned or Unplanned downtime Reduces per-node ASM instance overhead ASM only needs to run on 3 nodes in the cluster Facilitates DB, Cluster & server consolidation Multiple DB’s & applications in a cluster Flex CLUSTER Less complex configuration and management for non-database nodes Less complex configuration for Non-Database nodes, such as Processing Nodes, Application / Web Server Nodes etc.

27 Patterns  ASM architecture utilized an ASM instance on every server  Database instances dependent on node-specific ASM instance  ASM overhead scaled with size of cluster

28 Patterns  Eliminates requirement for an ASM instance on every cluster server  Database instances connects to any ASM instance in the cluster  Database instances can failover to a secondary ASM instance  Administrators specify the cardinality of ASM instances (default is 3)  Clusterware ensures ASM cardinality is maintained

29 Patterns  Flex ASM adds the ASM network, which is used for communication between ASM and its clients  Oracle 12c, you can now create a separate network dedicated for ASM communication.  Need to mention the network address during the installation  This dedicated ASM network is completely optional. The default is the pre-12c behavior of using the Clusterware interconnect for ASM communication

30 Patterns Managing Flex ASM  Flex ASM requires minimal monitoring and ongoing management  Primary objective is that instances are up and running  SRVCTL Command for:  Checking ASM instance status  Setting cardinality  Starting – Stopping - and - Relocating ASM instances  No Flex ASM-specific instance parameters are required  Default settings will effectively support most situations  ASM server instances use automatic memory management  Flex ASM is managed by ASMCA, CRSCTL, SQL*Plus and SRVCTL

31 Patterns Flex Features  Increase maximum number of Disk Groups to 511 (Previous limit was 63)  Command for renaming ASM Disk  ASM Relocate Command  Clients are automatically relocated to another instance if an Oracle ASM instance fails  When necessary, Clients can be manually relocated using the ALTER SYSTEM RELOCATE CLIENT command

32 Patterns Oracle ASM Deployment Model can be chosen during the installation of Oracle Grid Infrastructure Oracle ASM Deployment Model can be chosen during the installation of Oracle Grid Infrastructure Oracle ASM Configuration Assistant (ASMCA) can be used to enable Oracle Flex ASM after the installation / upgrade is performed Oracle ASM Configuration Assistant (ASMCA) can be used to enable Oracle Flex ASM after the installation / upgrade is performed The functionality is available only in an Oracle Grid Infrastructure Configuration The functionality is available only in an Oracle Grid Infrastructure Configuration

33 Patterns Conversion of Standard Cluster to Oracle Flex ASM Cluster

Patterns 34

Patterns 35 CHECK CLUSTER MODE AND CLUSTER STATE AFTER LOGGING INTO ASMCMD PROMPT ~]$ asmcmd ASMCMD> showversion ASM version : ASMCMD> showclusterstate Normal ASMCMD> showclustermode ASM cluster : Flex mode enabled

Patterns 36 Patterns Software Design Institute Pvt. Ltd. ORACLE Flex ASM and Flex Cluster