SlideShare a Scribd company logo
1 of 50
Download to read offline
1/20/2012




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




            Understanding Oracle RAC Internals
             Markus Michalewicz (Markus.Michalewicz@oracle.com)
             Senior Principal Product Manager Oracle RAC and Oracle RAC One Node
2   Copyright © 2011, Oracle and/or its affiliates. All rights reserved.




                                                                                          1
1/20/2012




    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.




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




    Agenda
• The Oracle RAC Architecture
• VIPs and Networks
• Listeners and SCAN
        – and Services
•     Client Connectivity
•     Node Membership
•     The Interconnect
•     Installation and Upgrade

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




                                                                                                    2
1/20/2012




    The Oracle RAC Architecture
    Typical hardware architecture
                                                                                       Network

                                                                                      Public Lan                        Client
                                        Node 1                             Node 2                   Node N-1   Node N




                                                                                     Interconnect
                                                                                      with switch


                                                                                                 SAN switch


                                                                                    Shared Storage


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




    The Oracle RAC Architecture
    Typical software deployment 11g Release 2



                                                            Oracle Real Application Clusters (RAC)
                                                                  Oracle Grid Infrastructure
                                            OS                              OS                        OS        OS




                                                                                    Shared Storage


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




                                                                                                                                        3
1/20/2012




    The Oracle RAC Architecture
    Typical software deployment 11g Release 2



                                                            Oracle Real Application Clusters (RAC)
                                                 Oracle Automatic Storage Management (ASM)
                                                             Oracle Clusterware
                                            OS                             OS                OS           OS




                                                                            Oracle ASM managed
                                                                               Shared Storage

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




    The Oracle RAC Architecture
    Oracle RAC 11g Release 2 per node layer
                                                                                                        • Cloud File System
                                                                                                          (aka ASM Cluster File
                                                                                                          File System - ACFS)
                                                                                         DB Instance    • For all other files
                                                   Oracle RAC
                                                                                                        • 11.2.0.3: For Backup Sets
                                                                                         ASM Instance
                              Oracle Grid Infrastructure                                                • Oracle Clusterware files
                                                                                        HA Framework
                                            OS                             OS                             • Voting Files (disks)
                                                                                            Node
                                                                                          Membership      • Cluster Registry (OCR)
                                                                                              OS        • Database Files
                                                                                                        • Redo / Archive Logs
                                                                            Oracle ASM managed          • Control Files
                                                                               Shared Storage           • etc.

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




                                                                                                                                             4
1/20/2012




     The Oracle RAC Architecture
     Oracle Grid Infrastructure 11g Release 2 process overview



                                                                             ASM Instance
      Oracle Grid Infrastructure
                                                                             HA Framework
                   OS                                        OS
                                         Node
                                       Membership
     • My Oracle Support (MOS)              OS
       • Note 1053147.1 - 11gR2 Clusterware
         and Grid Home - What You Need to Know
       • Note 1050908.1 - How to Troubleshoot
         Grid Infrastructure Startup Issues

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




     The Oracle RAC Architecture
     Local and Cluster Resources (11.2.0.2 list)

      LISTENER_SCAN1                           LISTENER_SCAN2                     LISTENER_SCAN3      ora.oc4j            If database is deployed:
      ora.SCAN1.VIP                            ora.SCAN2.VIP                      ora.SCAN3.VIP       ora.cvu
                                                                                                                             • ora.Dbname.db
      ora.node1.vip                            ora.node2.vip                      ora.node3.vip       ora.node4.vip
                                                                                                                             • ora.Dbname.Srvcname.svc
      ora.asm                                  ora.asm                            ora.asm             ora.asm
      ora.dgname.dg                            ora.dgname.dg                      ora.dgname.dg       ora.dgname.dg
                                                                                                                          Command to list:
      ora.listener.lsnr                        ora.listener.lsnr                  ora.listener.lsnr   ora.listener.lsnr
                                                                                                                          • crsctl stat res -t
      ora.ons                                  ora.ons                            ora.ons             ora.ons
      ora.gsd                                  ora.gsd                            ora.gsd             ora.gsd
      ora.net1.network                         ora.net1.network                   ora.net1.network    ora.net1.network
      ora.registry.acfs                        ora.registry.acfs                  ora.registry.acfs   ora.registry.acfs

                                                     Oracle Grid Infrastructure
                        OS                                       OS                         OS                   OS


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




                                                                                                                                                            5
1/20/2012




                                                     VIPs and Networks




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




     VIPs and Networks
     Oracle VIPs
     • SCAN and node VIPs are cluster resources
       • SCAN VIPs can float in the cluster
       • Node VIPs per default run on specific nodes                             rac1                rac2
                                                                             LISTENER_SCAN1      LISTENER_SCAN2
                                                                             ora.SCAN1.VIP       ora.SCAN2.VIP
                                                                             ora.rac1.vip        ora.rac2.vip
     • All VIPs on the public network (SCAN, node,
       user or application VIPs) depend on the Oracle                        …                   …
       network resource.                                                     ora.listener.lsnr   ora.listener.lsnr
                                                                             …                   …
       • The network resource monitors
                                                                             ora.net1.network    ora.net1.network
         the public network interface(s).
       • IOCTL based checks vs. default gateway ping
                                                                             Oracle Grid Infrastructure
                                                                                        OS                  OS
             • Default gateway checks as backup
       • racgvip for backward compatibility only


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




                                                                                                                            6
1/20/2012




     VIPs and Networks
     Node VIP Details
      [GRID]> crsctl status res ora.rac1.vip -p
      NAME=ora.rac1.vip
      TYPE=ora.cluster_vip_net1.type
      ...
1     AGENT_FILENAME=%CRS_HOME%/bin/orarootagent%CRS_EXE_SUFFIX%
      ...                                                             rac1                             rac2
      CHECK_INTERVAL=1                                           …                                 …
2     CHECK_TIMEOUT=30                                           …                                 …
      ...                                                        ora.rac1.vip                      ora.rac2.vip
      START_DEPENDENCIES=hard(ora.net1.network)
3     pullup(ora.net1.network)                                   …                                 …
      ...                                                        ora.listener.lsnr                 ora.listener.lsnr
      STOP_DEPENDENCIES=hard(ora.net1.network)                   …                                 …
      ...                                                        ora.net1.network                  ora.net1.network
      USR_ORA_VIP=rac1-vip
      VERSION=11.2.0.2.0                                        Oracle Grid                      Infrastructure
                                                                                        OS                    OS


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




     VIPs and Networks
     The network resource
     • The Oracle network resource monitors the
       public network interface(s) (e.g. eth0).
     • The default is network number 1 (net1)
     • There is one network resource per subnet:                                 rac1                  rac2
                                                                             …                     …
         [GRID]> srvctl config network                                       …                     …
         Network exists:                                                     ora.rac1.vip          ora.rac2.vip
         1/192.168.0.0/255.255.255.0/eth0, type static
                                                                             …                     …
                                                                             ora.listener.lsnr     ora.listener.lsnr
     • New in 11.2.0.2:                                                      …                     …
       • Direct management of the network resource                           ora.net1.network      ora.net1.network

             • srvctl verb network                                           Oracle Grid Infrastructure
       • Network type support (static, dhcp, mixed)                                     OS                    OS


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




                                                                                                                              7
1/20/2012




     VIPs and Networks
     How to enable multiple networks in the cluster?
1    [GRID]> srvctl add network –h
     Adds a network configuration to the Oracle Clusterware.
     Usage: srvctl add network
           -k <net_num>                                                      network number
                                                                             (default number is 1)
                       -S <subnet>/<netmask>/[if1[|if2...]]
                                           NET address spec for network
                       -w <network_type>                                         The network type
                                                                               (static, dhcp, mixed)   …                    …
                                                                                                       ora.net1.network     ora.net1.network
                       -h                                                        Print usage
                                                                                                       ora.net2.network     ora.net2.network
                       -v                                                        Verbose output        …                    …

                                                                                                       Oracle Grid Infrastructure
     • For example:
         srvctl add network -k 2 -S 10.1.1.0/255.255.255.0                                                      OS                   OS


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




     VIPs and Networks
     How to enable multiple networks in the cluster?
2    [GRID]> srvctl add vip -h
     Adds a VIP to the Oracle Clusterware.
     Usage: srvctl add vip
              -n <node_name>                                                  Node name
              -A <vip_name|ip>/<netmask>/[if1[|if2...]]                                                 ora.rac1.vip        ora.rac2.vip
                           VIP address spec for node applications                                      ora.rac1-vip2.vip   ora.rac2-vip2.vip
              -k <net_num>                                                    network number
                                                                             (default number is 1)     …                    …
              -h                                                              Print usage              ora.net1.network     ora.net1.network
                                                                                                       ora.net2.network     ora.net2.network
              -v                                                              Verbose output
                                                                                                       …                    …

                                                                                                       Oracle Grid Infrastructure
     • For example:
         srvctl add vip -n rac1 -k 2 -A rac1-vip2/255.255.255.0                                                 OS                   OS
         srvctl add vip -n rac2 -k 2 -A rac2-vip2/255.255.255.0

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




                                                                                                                                                      8
1/20/2012




     VIPs and Networks
     Application / user and node VIPs
1    [GRID]> crsctl stat res ora.rac1-vip2.vip -p
     NAME=ora.rac1-vip2.vip
     TYPE=ora.cluster_vip_net2.type
     ...
     HOSTING_MEMBERS=rac1                                                       This is a node vip!         ora.rac1.vip        ora.rac2.vip
                                                                                                           ora.rac1-vip2.vip   ora.rac2-vip2.vip
     ...
     START_DEPENDENCIES=hard(ora.net2.network)
       pullup(ora.net2.network)                                                                            …                    …
                                                                                                           ora.net1.network     ora.net1.network
     ...
                                                                                                           ora.net2.network     ora.net2.network
     STOP_DEPENDENCIES=hard(ora.net2.network)
                                                                                                           …                    …
     ...
                                                                                                           Oracle Grid Infrastructure
     USR_ORA_VIP=rac1-vip2
                                                                                                                    OS                   OS
     VERSION=11.2.0.2.0


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




     VIPs and Networks
     Application / user and node VIPs
2    [GRID]> appvipcfg create
             -network=1
             -ip 192.168.0.66
             -vipname=myVIP
             -user=root

                                                                             This is an application vip!    ora.rac1.vip        ora.rac2.vip
     [GRID]> appvipcfg create                                                                              ora.rac1-vip2.vip   ora.rac2-vip2.vip
             -network=2
             -ip 10.1.1.88                                                                                     myVIP             myNewVIP
             -vipname=myNewVIP                                                                             …                    …
             -user=root
                                                                                                           ora.net1.network     ora.net1.network
                                                                                                           ora.net2.network     ora.net2.network
                                                                                                           …                    …
                                                                                                           Oracle Grid Infrastructure
                                                                                                                    OS                   OS


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




                                                                                                                                                          9
1/20/2012




     VIPs and Networks
     Application / user and node VIPs
3    [GRID]> crsctl stat res myVIP -p
     NAME=myVIP
     TYPE=app.appvip_net1.type
     ...
     HOSTING_MEMBERS=rac1                                                    This is an application vip!    ora.rac1.vip        ora.rac2.vip
                                                                                                           ora.rac1-vip2.vip   ora.rac2-vip2.vip
     ...
     RESTART_ATTEMPTS=0                                                                                        myVIP             myNewVIP
     ...                                                                                                   …                    …
                                                                                                           ora.net1.network     ora.net1.network
     USR_ORA_VIP=192.168.0.66
                                                                                                           ora.net2.network     ora.net2.network
     VERSION=11.2.0.2.0                                                                                    …                    …
                                                                                                           Oracle Grid Infrastructure
     • You can modify it as needed!                                                                                 OS                   OS


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




                                                 Listeners and SCAN




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




                                                                                                                                                         10
1/20/2012




     Listeners
     Listeners and dependencies

     • In Oracle RAC 11g Release 2 there have been
       three major changes regarding listeners:                                  rac1                      rac2
                                                                             LISTENER_SCAN1          LISTENER_SCAN2
       1.         Listeners per default now run from the                     ora.SCAN1.VIP           ora.SCAN2.VIP
                  Oracle Grid Infrastructure (GRID) home                     ora.rac1.vip            ora.rac2.vip

       2.         Listeners are managed by an Oracle agent                   …                       …
                                                                             ora.listener.lsnr       ora.listener.lsnr
       3.         SCAN Listeners were introduced
                                                                             …                       …
                                                                             ora.net1.network        ora.net1.network
     • A listener depends on a VIP                                           Oracle Grid Infrastructure
     • A listener depends indirectly on a network                                       OS                        OS




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




     Listeners
     The default LISTENER
     [GRID]> srvctl config listener
     Name: LISTENER
     Network: 1, Owner: oracle  Grid Software Owner
     Home: <CRS home>
                                                                                            rac1                      rac2
     End points: TCP:1521



                                                                                        …                         …
                                                                                        ora.LISTENER.lsnr         ora.LISTENER.lsnr
                                                                                        …                         …
                                                                                        ora.net1.network          ora.net1.network

                                                                                      Oracle Grid Infrastructure
                                                                                                   OS                        OS


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




                                                                                                                                           11
1/20/2012




     Listeners
     The default LISTENER FAQ

     • Can you define another port? - YES

                                                                                    rac1                rac2
     • Can you define another owner? – YES


     • Can you define another home? – YES, if really needed.                    …                   …
                                                                                ora.LISTENER.lsnr   ora.LISTENER.lsnr
                                                                                …                   …

     • Can I add another listener on another port? - YES                        ora.net1.network    ora.net1.network

                                                                                Oracle Grid Infrastructure
                                                                                           OS                  OS


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




     The default LISTENER
     Can you define another port? - YES
1    [GRID]> srvctl modify listener -l LISTENER -p TCP:1545


     [GRID]> srvctl config listener
     Name: LISTENER
                                                                                    rac1                rac2
     Network: 1, Owner: oracle
     Home: <CRS home>
     End points: TCP:1545
                                                                                …                   …
                                                                                ora.LISTENER.lsnr   ora.LISTENER.lsnr
     •      Check: <CRS HOME>/network/admin/endpoints_listener.ora before:      …                   …
     LISTENER_RAC1=(DESCRIPTION=(ADDRESS_LIST=                                  ora.net1.network    ora.net1.network
       (ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)
       (PORT=1521))(ADDRESS=(PROTOCOL=TCP)                                      Oracle Grid Infrastructure
       (HOST=192.168.0.51)(PORT=1521)(IP=FIRST))))                                         OS                  OS
       # line added by Agent


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




                                                                                                                             12
1/20/2012




     The default LISTENER
     Can you define another port? - YES
2    [GRID]> srvctl modify listener -l LISTENER -p TCP:1545


     [GRID]> srvctl config listener
     Name: LISTENER
                                                                                                       rac1                rac2
     Network: 1, Owner: oracle
     Home: <CRS home>
     End points: TCP:1545
                                                                                                   …                   …
                                                                                                   ora.LISTENER.lsnr   ora.LISTENER.lsnr
     •      Check: <CRS HOME>/network/admin/endpoints_listener.ora after restart:                  …                   …
     LISTENER_RAC1=(DESCRIPTION=(ADDRESS_LIST=                                                     ora.net1.network    ora.net1.network
       (ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)
       (PORT=1545))(ADDRESS=(PROTOCOL=TCP)                                                        Oracle Grid Infrastructure
       (HOST=192.168.0.51)(PORT=1545)(IP=FIRST))))                                                            OS                  OS
       # line added by Agent


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




     The default LISTENER
     Can you define another owner? - YES
     [GRID]>                    srvctl modify listener -l LISTENER -u root
                                                                                You need to be root…
     [GRID]>                    srvctl config listener
     Name: LISTENER
                                                                                                       rac1                rac2
     Network: 1, Owner: root  For demonstration
                               purposes only…
     Home: <CRS home>
     End points: TCP:1545                                                                          …                   …
                                                                                                   ora.LISTENER.lsnr   ora.LISTENER.lsnr
                                                                                                   …                   …
                                                                                                   ora.net1.network    ora.net1.network

                                                                                                  Oracle Grid Infrastructure
                                                                                                              OS                  OS


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




                                                                                                                                                13
1/20/2012




     The default LISTENER
     Can you define another home? - YES
     [GRID]> srvctl modify listener -l LISTENER
             -o /u01/app/oracle/product/11.2.0/dbhome_1


     [GRID]> srvctl config listener
     Name: LISTENER
                                                                                            rac1                  rac2
     Network: 1, Owner: oracle
     Home: /u01/app/oracle/product/11.2.0/dbhome_1
     End points: TCP:1545
                                                                                        …                     …
                                                                                        ora.LISTENER.lsnr     ora.LISTENER.lsnr
                                                                                        …                     …
                                                                                        ora.net1.network      ora.net1.network
     • This may not be required.
                                                                                        Oracle Grid Infrastructure
     • Instead, create a new listener from a separate home, if needed
       and use the SRVCTL command as shown, but try using the GI home.                             OS                    OS


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




     Listeners
     Can I add another listener on another port? - YES
     [GRID]> srvctl config listener
     Name: LISTENER
     Network: 1, Owner: oracle
     Home: <CRS home>
                                                                                            rac1                  rac2
     End points: TCP:1521
     Name: LISTENER2011
     Network: 1, Owner: oracle
                                                                                        …                     …
     Home: <CRS home>
                                                                                        ora.LISTENER.lsnr     ora.LISTENER.lsnr
     End points: TCP:2011                                                               ora.LISTENERK2.lsnr   ora.LISTENERK2.lsnr
                                                                                        ora.net1.network      ora.net1.network

     • MOS Note 220970.1 - RAC: Frequently Asked Questions
                                                                                        Oracle Grid Infrastructure
        •      How to use SCAN and node listeners with different ports?
                                                                                                   OS                    OS
             •      Add additional node listeners to the system using different ports

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




                                                                                                                                          14
1/20/2012




     Listeners
     Can I add another listener on another network? - YES
     [GRID]> srvctl add listener -l ListenerK2 -p 1544 -k 2
     [GRID]> srvctl config listener
     Name: LISTENER
     Network: 1, Owner: oracle
                                                                                 rac1                  rac2
     Home: <CRS home>
     End points: TCP:1545                                                    …                     …
     Name: LISTENERK2                                                        ora.LISTENER.lsnr     ora.LISTENER.lsnr
                                                                             Ora.LISTENERK2.lsnr   ora.LISTENERK2.lsnr
     Network: 2, Owner: oracle
                                                                             ora.net1.network      ora.net1.network
     Home: <CRS home>                                                        ora.net2.network      ora.net2.network
     End points: TCP:1544                                                    …                     …

                                                                             Oracle Grid Infrastructure
     • MOS Note 1063571.1 - How to Configure A Second
                                                                                        OS                    OS
       Listener on a Separate Network in 11.2 Grid Infrastructure

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




     Listeners
     Remember – it’s just another listener …
1    [GRID]> srvctl config listener
     Name: JUSTALISTENER
     Network: 1, Owner: root
     Home: <CRS home>
                                                                                 rac1                  rac2
     End points: TCP:1522                                                    LISTENER_SCAN1        LISTENER_SCAN2
     ...                                                                     ora.SCAN1.VIP         ora.SCAN2.VIP
                                                                             ora.rac1.vip          ora.rac2.vip
     [GRID]> vi /u01/app/11.2.0/grid/network/admin/listener.ora
                                                                             …                     …
     JUSTALISTENER=(DESCRIPTION=(ADDRESS_LIST=
                                                                             ora.LISTENER.lsnr     ora.LISTENER.lsnr
       (ADDRESS=(PROTOCOL=IPC)(KEY=JUSTALISTENER))))
       # line added by Agent                                                 …                     …
                                                                             ora.net1.network      ora.net1.network
     [GRID]> vi /u01/app/11.2.0/grid/network/admin/endpoints_listener.ora
     JUSTALISTENER_RAC1=(DESCRIPTION=(ADDRESS_LIST=                          Oracle Grid Infrastructure
        (ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1522))
        (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.51)(PORT=1522)(IP=FIRST))))
                                                                                        OS                    OS


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




                                                                                                                             15
1/20/2012




     Listeners
     Remember – it’s just another listener …
2    [GRID]> vi /u01/app/11.2.0/grid/network/admin/listener.ora
     JUSTALISTENER=(DESCRIPTION=(ADDRESS_LIST=
       (ADDRESS=(PROTOCOL=IPC)(RATE_LIMIT=10)  For demonstration purposes only…
       (KEY=JUSTALISTENER)))) # line added by Agent
     ...                                                                                              rac1                rac2
     [GRID]> srvctl stop listener -l JustAListener                                               LISTENER_SCAN1       LISTENER_SCAN2
                                                                                                 ora.SCAN1.VIP        ora.SCAN2.VIP
     [GRID]> srvctl start listener -l JustAListener                                              ora.rac1.vip         ora.rac2.vip
     [GRID]> vi /u01/app/11.2.0/grid/network/admin/listener.ora                                  …                    …
     ...                                                                                         ora.LISTENER.lsnr    ora.LISTENER.lsnr
     [GRID]> vi /u01/app/11.2.0/grid/network/admin/listener.ora                                  …                    …
                                                                                                 ora.net1.network     ora.net1.network
     JUSTALISTENER=(DESCRIPTION=(ADDRESS_LIST=
       (ADDRESS=(PROTOCOL=IPC)(RATE_LIMIT=10)                                                   Oracle Grid Infrastructure
       (KEY=JUSTALISTENER)))) # line added by Agent
                                                                                                             OS                  OS


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




     SCAN
     The basics and overview
     • In Oracle RAC 11g Release 2
       SCAN Listeners were introduced                                                                  SCAN
       •      There is one SCAN setup per cluster


     • Read about SCAN:                                                          rac1                  rac2               rac3
                                                                             LISTENER_SCAN1       LISTENER_SCAN2      LISTENER_SCAN3
       •      http://www.oracle.com/technetwork/database/
                                                                             ora.SCAN1.VIP        ora.SCAN2.VIP       ora.SCAN3.VIP
              clustering/overview/scan-129069.pdf
                                                                             …                    …                   …
       •      MOS Note 887522.1 –
                                                                             …                    …                   …
              11gR2 Grid Infrastructure Single Client
              Access Name (SCAN) Explained                                   ora.LISTENER.lsnr    ora.LISTENER.lsnr   ora.LISTENER.lsnr
                                                                             …                    …                   …
                                                                             ora.net1.network     ora.net1.network    ora.net1.network
     • SCAN consists of a bundle containing:
       1.         SCAN IP
                                                                                     Oracle Grid Infrastructure
                                                                                        OS                      OS               OS
       2.         Associated (dependency) SCAN Listener


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




                                                                                                                                                16
1/20/2012




      SCAN
      The SCAN bundle
1 • 3 SCANs are the default for HA and LB
        • Regardless of number of nodes                                                                                   SCAN
        • You can define less or more, if really needed.
      • SCAN listener resources run with                                                            rac1                  rac2               rac3
        an active dispersion dependency                                                         LISTENER_SCAN1       LISTENER_SCAN2      LISTENER_SCAN3

        • If you use more nodes in the cluster than                                             ora.SCAN1.VIP        ora.SCAN2.VIP       ora.SCAN3.VIP
                                                                                                …                    …                   …
          SCAN listeners are defined, no node should
          run more than one SCAN bundle at a time                                               …                    …                   …
                                                                                                ora.LISTENER.lsnr    ora.LISTENER.lsnr   ora.LISTENER.lsnr
        • If you use less nodes in the cluster than                                             …                    …                   …
          SCAN listeners are defined, there will be                                             ora.net1.network     ora.net1.network    ora.net1.network
          nodes running more than one SCAN bundle
          at a time.                                                                                    Oracle Grid Infrastructure
        • SCAN VIP moves with the listener, if possible.                                                   OS                    OS                 OS


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




      SCAN
      The SCAN bundle
2     [GRID]> srvctl config scan
      SCAN name: cluster1, Network: 1/192.168.0.0/255.255.255.0/eth0
      SCAN VIP name: scan1, IP: /cluster1.us.oracle.com/192.168.0.41                                                             SCAN
                                                                                                                         rac1                rac2
      [GRID]> srvctl modify scan                                                                                    LISTENER_SCAN1       …
      Modifies the SCAN name.                                                                                       ora.SCAN1.VIP        …
                                                                                                                    …                    …
      Usage: srvctl modify scan
                                                                                                                    …                    …
               -n <scan_name>                                            Domain name qualified SCAN name
                                                                                                                    ora.LISTENER.lsnr    ora.LISTENER.lsnr
               -h                                                        Print usage                                …                    …
                                                                                                                    ora.net1.network     ora.net1.network

      • http://www.oracle.com/technetwork/database/                                                                Oracle Grid Infrastructure
        clustering/overview/scan-129069.pdf page 2                                                                              OS                  OS


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




                                                                                                                                                                   17
1/20/2012




     SCAN
     The SCAN bundle
3    [GRID]> srvctl add scan -h
     Adds a SCAN VIP to the Oracle Clusterware.
     Usage: srvctl add scan -n <scan_name>                                                                           SCAN
              -n <scan_name>                                      Domain name qualified SCAN name
                                                                                                             rac1                rac2
              -k <net_num>                                        network number (default number is 1)   LISTENER_SCAN1      …
              -S <subnet>/<netmask>/[if1[|if2...]]                                                       ora.SCAN1.VIP       …
                                NET address spec for network                                             …                   …

              -h                                                             Print usage                 …                   …
                                                                                                         ora.LISTENER.lsnr   ora.LISTENER.lsnr
                                                                                                         …                   …
     • Note: SCAN can only operate on one network / in one subnet.                                       ora.net1.network    ora.net1.network

                                                                                                         Oracle Grid Infrastructure
                                                                                                                    OS                  OS


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




     SCAN
     The SCAN FAQ
1 • From MOS Note 220970.1 –
         RAC: Frequently Asked Questions
       •      How to use SCAN and node listeners with different ports?
                                                                                                                     SCAN
     • With Oracle RAC 11g Release 2 using SCAN is the default.
                                                                                                             rac1                rac2
     • As with other listeners, there is no direct communication                                         LISTENER_SCAN1      …
       between the node (listeners) and the SCAN listeners.                                              ora.SCAN1.VIP       …
                                                                                                         …                   …
     • Listeners are only aware of the instances and services served,
       since the instances (PMON) register themselves and the services                                   …                   …
       they host with the listeners.                                                                     ora.LISTENER.lsnr   ora.LISTENER.lsnr
                                                                                                         …                   …
     • The instances use the LOCAL and REMOTE Listener
                                                                                                         ora.net1.network    ora.net1.network
       parameters to know with which listeners to register.
     • Listeners used for a client connection to Oracle RAC should be                                    Oracle Grid Infrastructure
       managed by Oracle Clusterware and should be listening on an                                                  OS                  OS
       Oracle managed VIP.

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




                                                                                                                                                      18
1/20/2012




      SCAN
      The SCAN FAQ
2 • Can you define another port? - YES
        • See MOS Note 220970.1 –
          RAC: Frequently Asked Questions
                                                                                           SCAN
              •     How to use SCAN and node listeners with different ports?
                                                                                   rac1                rac2
              •     Use srvctl modify scan_listener –p <newPort>
                                                                               LISTENER_SCAN1      …
      • Can you define another owner? – NO                                     ora.SCAN1.VIP       …
                                                                               …                   …
      • Can you define another home? – NO
                                                                               …                   …
                                                                               ora.LISTENER.lsnr   ora.LISTENER.lsnr
      • Can you have more than one node listener with SCAN? – YES              …                   …
      • Can the SCAN and the node listener ports differ? - YES                 ora.net1.network    ora.net1.network

        • See also MOS Note 972500.1 – How to                                  Oracle Grid Infrastructure
          Modify SCAN Setting or SCAN Listener Port after Installation                    OS                  OS


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




      Listeners and Instance Registration
      Listener changes may require instance changes
      • See MOS Note 220970.1 –
        RAC: Frequently Asked Questions
        •      How to use SCAN and node listeners with different ports?
                                                                                           SCAN

      • Whenever you change an instance parameter configuration                    rac1                rac2
        a change to the LOCAL_LISTENER or REMOTE_LISTENER
                                                                                DB Instance         DB Instance
        per database (instance) may be required.
                                                                               LISTENER_SCAN1      …
        • Note that using server-side TNSANMES aliases to                      ora.SCAN1.VIP       …
          resolve the listener configuration is not recommended.               …                   …

        • The use of the TNSNAMES connector string is the default:             ora.LISTENER.lsnr   ora.LISTENER.lsnr
                                                                               …                   …
               local_listener = ‘(DESCRIPTION= (ADDRESS_LIST=
               (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.61)(PORT=2011))
                                                                               Oracle Grid Infrastructure
               ))'                                                                        OS                  OS


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




                                                                                                                            19
1/20/2012




     Listeners and Instance Registration
     EXAMPLE
1 • Taken from MOS Note 220970.1 – RAC: FAQ
       •      How to use SCAN and node listeners with different ports?
             •     Add additional node listeners to the system using different ports               SCAN

                  •      srvctl add listener -l LISTENER2011 -p 2011                       rac1                rac2
                  •      srvctl start listener -l LISTENER2011
                                                                                        DB Instance         DB Instance
                  •      srvctl status listener -l LISTENER2011
                                                                                       LISTENER_SCAN1      …
                  •      lsnrctl status LISTENER2011                                   ora.SCAN1.VIP       …
                                                                                       …                   …
     [GRID]> srvctl config listener                                                    ora.LISTENER.lsnr   ora.LISTENER.lsnr
     Name: LISTENER2011                                                                …                   …

     Network: 1, Owner: oracle                                                         Oracle Grid Infrastructure
     Home: <CRS home>                                                                             OS                  OS
     End points: TCP:2011

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




     Listeners and Instance Registration
     EXAMPLE
2 • Taken from MOS Note 220970.1 – RAC: FAQ
       •      How to use SCAN and node listeners with different ports?
             •     Add additional node listeners to the system using different ports               SCAN
                                                                                           rac1                rac2
     • New node listener does not serve any database instance
                                                                                        DB Instance         DB Instance
     • You must alter the LOCAL_LISTENER parameters
                                                                                       LISTENER_SCAN1      …
       for each instance accordingly:
                                                                                       ora.SCAN1.VIP       …

         alter system set local_listener =‘                       …                 …

         (DESCRIPTION= (ADDRESS_LIST=                             ora.LISTENER.lsnr ora.LISTENER.lsnr
         (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.61)(PORT=2011)))) …
                                                                                    …
         ' scope=BOTH SID='OCRL1';
         alter system register;                                  Oracle Grid Infrastructure
                                                                                                  OS                  OS


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




                                                                                                                                 20
1/20/2012




     Listeners and Instance Registration
     EXAMPLE
3 • Taken from MOS Note 220970.1 – RAC: FAQ
       •      How to use SCAN and node listeners with different ports?
             •     Add additional node listeners to the system using different ports               SCAN
                                                                                           rac1                  rac2
     • Note: Use spaces between the various segments of the command
                                                                                        DB Instance           DB Instance
       • Reason: the database agent in Oracle Clusterware currently
                                                                                       LISTENER_SCAN1        …
         determines whether the local_listener or remote_listener have
                                                                                       ora.SCAN1.VIP         …
         been manually set by a string comparison operation.                           …                     …
       • If the string looks unaltered it will reset these parameters                  ora.LISTENER.lsnr     ora.LISTENER.lsnr
         with the default values that it determines on instance startup.               …                     …
       • Slight modifications are therefore required. ER 11772838                      Oracle Grid Infrastructure
         has been filed to allow for a more convenient mechanism.
                                                                                                  OS                    OS


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




     Listeners and Instance Registration
     Using listeners in different subnets / networks
     • SCAN can only operate in one network / subnet
                                                                                           rac1                  rac2

                                                                                        DB Instance           DB Instance
     • If listeners in different subnets are used,
                                                                                       LISTENER_SCAN1        …
     • use LISTENER_NETWORKS:                                                          ora.SCAN1.VIP         …
       http://download.oracle.com/docs/cd/E11882_01                                    …                     …
                                                                                       …                     …
       /server.112/e17110/initparams115.htm#REFRN10313
                                                                                       ora.LISTENER.lsnr     ora.LISTENER.lsnr
       •      Note: Listeners specified by the LISTENER_NETWORKS                       Ora.LISTENERK2.lsnr   ora.LISTENERK2.lsnr
              parameter should not be used in the LOCAL_LISTENER and
                                                                                       ora.net1.network      ora.net1.network
              REMOTE_LISTENER parameters. Otherwise, cross registration
              will happen and connections will be redirected cross networks.           ora.net2.network      ora.net2.network
                                                                                       …                     …

                                                                                       Oracle Grid Infrastructure
     • For more information, see also
       MOS Note 1063571.1 – How to Configure A Second                                             OS                    OS
       Listener on a Separate Network in 11.2 Grid Infrastructure

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




                                                                                                                                       21
1/20/2012




              Listeners, SCAN and Services




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




     Listeners and Service Registration
     A summary
     • Services depend on a database
     • Per default, the database instance will register
       all services it hosts with all listeners it registers with.
                                                                                           SCAN
                                                                                 rac1                      rac2
     • Services operate within the following boundaries:
                                                                              DB Instance               DB Instance
       • Network (indirectly via dependency)
                                                                             ora.Dbname.db             ora.Dbname.db
       • Server Pools (in policy-managed database environments)              ora.Dbname.Srvcname.svc   ora.Dbname.Srvcname.svc

                                                                             …                         …

                                                                             ora.LISTENER.lsnr         ora.LISTENER.lsnr
     • Currently there is no support for service failover
                                                                             …                         …
       • Between Server Pools
                                                                             Oracle Grid Infrastructure
       • Between networks
                                                                                        OS                        OS


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




                                                                                                                                  22
1/20/2012




     Services and Dependencies
     Dependency on DB and Server Pool
     [GRID]> srvctl config service -d ORCL -s MyService
1
     Service name: MyService
     Service is enabled
                                                                                            SCAN
     Server pool: ORCL
                                                                                 rac1                     rac2
     Cardinality: 1
     Disconnect: false                                                        DB Instance              DB Instance
     Service role: PRIMARY                                                   ora.ORCL.db              ora.ORCL.db
                                                                             ora.ORCL.MyService.svc   ora.Dbname.Srvcname.svc
     Management policy: AUTOMATIC                                            …                        …
     ...
                                                                             ora.LISTENER.lsnr        ora.LISTENER.lsnr
     Preferred instances: ORCL_1                                             …                        …
     Available instances:
                                                                             Oracle Grid Infrastructure
                                                                                        OS                       OS


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




     Services and Dependencies
     Start / Stop dependencies
     [GRID]> crsctl stat res ora.orcl.myservice.svc -p
2
     ...
     DEFAULT_TEMPLATE=PROPERTY(RESOURCE_CLASS=service)
       PROPERTY(SERVICE_NAME=%GEN_SERVICE_NAME%)                                            SCAN
       PROPERTY(DB_UNIQUE_NAME=CONCAT(PARSE(%NAME%, .,                           rac1                     rac2
       2), STAT(ora.orcl.db, USR_ORA_DOMAIN), .))
       ELEMENT(INSTANCE_NAME=STAT(ora.orcl.db,                                DB Instance              DB Instance
       GEN_USR_ORA_INST_NAME))
                                                                             ora.ORCL.db              ora.Dbname.db
     ...                                                                     ora.ORCL.MyService.svc   ora.Dbname.Srvcname.svc

     START_DEPENDENCIES=hard(ora.orcl.db,type:ora.cluster                    …                        …

       _vip_net1.type) weak(type:ora.listener.type)
                                                                             ora.LISTENER.lsnr        ora.LISTENER.lsnr
       pullup(type:ora.cluster_vip_net1.type)
                                                                             …                        …
       pullup:always(ora.orcl.db)
       dispersion(type:ora.service.type)                                     Oracle Grid Infrastructure
     STOP_DEPENDENCIES=hard(intermediate:ora.orcl.db,inte                               OS                       OS
       rmediate:type:ora.cluster_vip_net1.type)
     ...
46    Copyright © 2011, Oracle and/or its affiliates. All rights reserved.




                                                                                                                                 23
1/20/2012




                                                       Client Connectivity




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




     Client Connectivity
     Direct or indirect connect
     • Connect Time Load Balancing (CTLB)
     • Connect Time Connection Failover (CTCF)

     • Runtime Connection Load Balancing (RTLB)
     • Runtime Connection Failover (RTCF)

             BATCH
                Production
                                                           Email
                                                                             SCAN




                                                                                    Connection
                                                                                       Pool




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




                                                                                                       24
1/20/2012




     Client Connectivity
     Connect Time Connection Failover
     jdbc:oracle:thin:@MySCAN:1521/Email

     PMRAC =
          (DESCRIPTION =
            (FAILOVER=ON)
                (ADDRESS = (PROTOCOL = TCP)(HOST = MySCAN)(PORT = 1521))
                (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = Email)))


                          BATCH
                             Production
                                                              Email




                                                                            MySCAN
                                                                                     Connection
                                                                                        Pool




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




     Client Connectivity
     Runtime Time Connection Failover
     PMRAC =
          (DESCRIPTION =
            (FAILOVER=ON)
                (ADDRESS = (PROTOCOL = TCP)(HOST = MySCAN)(PORT = 1521))
                (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = Email)
                 ...))



                          BATCH
                             Production
                                                              Email
                                                                            MySCAN




                                                                                     Connection
                                                                                        Pool




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




                                                                                                        25
1/20/2012




     Client Connectivity
     Runtime Time Connection Failover
      PMRAC =
           (DESCRIPTION =
             (FAILOVER=ON)
                 (ADDRESS = (PROTOCOL = TCP)(HOST = MySCAN)(PORT = 1521))
                 (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = Email)
                 (FAILOVER_MODE= (TYPE=select)(METHOD=basic)(RETRIES=180)(DELAY=5))))


                           BATCH
                              Production
                                                               Email




                                                                             MySCAN

                                                                                      ?
                                                                                          Connection
                                                                                             Pool




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




     Client Connectivity
     More information
     • If problems occur, see:
       • Note 975457.1 – How to Troubleshoot Connectivity Issues with 11gR2 SCAN Name
     • For more advanced configurations, see:
       • Note 1306927.1 – Using the TNS_ADMIN variable and changing the default port
             number of all Listeners in an 11.2 RAC for an 11.2, 11.1, and 10.2 Database




                                                                             ??
                           BATCH
                              Production
                                                               Email
                                                                             MySCAN




                                                                              ?
                                                                                          Connection
                                                                                             Pool




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




                                                                                                             26
1/20/2012




     Client Connectivity
     Two ways to protect the client
 1.         Transparent Application Failover (TAF)                                    2.    Fast Application Notification (FAN)
           •          Tries to make the client unaware of a failure                         •       FAN wants to inform clients ASAP
           •          Provides means of CTCF and RTCF                                           •     Client can react to failure asap
           •          Allows for pure ‘selects’ (reads) to continue                         •       Expects clients to re-connect on failure (FCF)
           •          Write transactions need to be re-issued                               •       Sends messages about changes in the cluster
           •          The Application needs to be TAF aware




                           BATCH
                              Production
                                                               Email




                                                                             MySCAN

                                                                                       ?
                                                                                                                   Connection
                                                                                                                      Pool




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




     Client Connectivity and Service Definition
     Define settings on the server
     • HA (and LB) settings                                                           [GRID]> srvctl config service
                                                                                              -d ORCL -s MyService
        can be defined per service
                                                                                      Service name: MyService
       • Clients connecting to the service will
                                                                                      ...
               adhere to the settings considering the
                                                                                      DTP transaction: false
               client used.
                                                                                      AQ HA notifications: false
                                                                                      Failover type: NONE
                           BATCH                                                      Failover method: NONE
                              Production
                                                               Email
                                                                             MySCAN




                                                                                      TAF failover retries: 0
                                                                                      TAF failover delay: 0
                                                                                      Connection Load Balancing Goal: LONG
                                                                                      Runtime Load Balancing Goal: NONE
                                                                                      TAF policy specification: BASIC


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




                                                                                                                                                      27
1/20/2012




     Client Connectivity
     Use a FAN aware connection pool
1•               If a connection pool is used
               •          The clients (users) get a physical
                          connection to the connection pool
               •          The connection pool creates a physical
                          connection to the database
                          •    It is a direct client to the database
          •          Internally the pool maintains logical connections


                          BATCH
                             Production                                                  Connection Pool
                                                                   Email




                                                                                MySCAN




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




     Client Connectivity
     Use a FAN aware connection pool
2•               The connection pool
                •         Invalidates connections to one instance
                •         Re-establishes new logical connections
                          •     May create new physical connections
                •         Prevent new clients to be misrouted

     •           The application needs to handle the
                 transaction failure that might have occurred.
                          BATCH
                             Production                                                  Connection Pool
                                                                   Email
                                                                                MySCAN




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




                                                                                                                 28
1/20/2012




     Client Connectivity
     The Load Balancing (LB) cases
     • Connect Time Load Balancing (CTLB)
     • Runtime Connection Load Balancing (RTLB)

     • On the Client Side
     • On the Server Side
              BATCH
                 Production




                                                                             MySCAN
                                                       Email


                                                                                        Connection
                                                                                           Pool




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




     Client Connectivity
     Connect Time Load Balancing (CTLB) – on the client side
      PMRAC =
           (DESCRIPTION =
             (FAILOVER=ON)(LOAD_BALANCE=ON)
                 (ADDRESS = (PROTOCOL = TCP)(HOST = MySCAN)(PORT = 1521))
                 (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = Email)))



                       BATCH
                           Production
                                                             Email
                                                                             MySCAN




                                                                                      Connection
                                                                                         Pool




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




                                                                                                           29
1/20/2012




     Client Connectivity
     Connect Time Load Balancing (CTLB) – on the server side
     • Traditionally, PMON dynamically registers the services to the specified listeners with:
            •    Service names for each running instance of the database and instance names for the DB
            •    The listener is updated with the load information for every instance and node as follows:
                • 1-Minute OS Node Load Average all 30 secs.
                • Number of Connections to Each Instance
                •      Number of Connections to Each Dispatcher


                       BATCH
                           Production
                                                             Email




                                                                                 MySCAN
                                                                                                                    Connection
                                                                                                                       Pool




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

     Client Connectivity
     Use FAN for the Load Balancing cases
     • Connect Time Load Balancing (CTLB)
     • Connect Time Connection Failover (CTCF)

     • Runtime Connection Load Balancing (RTLB)                                                                                    RAC
                                                                                                                                 Database
     • Runtime Connection Failover (RTCF)    30% connections


                                                                                                        I’m busy
                                                                                                                                 Instance1
                                                                                                            10% connections

                                                                                                                I’m very busy

                                                                                                             I’m idle            Instance2



                                                                                          60% connections
                                                                                                                                 Instance3


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




                                                                                                                                                   30
1/20/2012




     Client Connectivity
     Use FAN for the Load Balancing cases
     • Connect Time Load Balancing (CTLB)
     • Runtime Connection Load Balancing (RTLB)
        • Also via AQ (Advanced Queuing) based notifications
     • Background is always the Load Balancing Advisory                                                                      RAC
                                                                                                                           Database

                                                                                      30% connections



                                                                                                    I’m busy
                                                                                                                           Instance1
                                                                                                        10% connections




                                                                             MySCAN
     • For more information, see:                                                                          I’m very busy

       • Oracle® Real Application                                                                        I’m idle          Instance2
         Clusters Administration and
         Deployment Guide 11g Release 2:
         5 Introduction to Automatic Workload Management                              60% connections
                                                                                                                           Instance3




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




                                                        Node Membership




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




                                                                                                                                             31
1/20/2012




     Oracle Clusterware Architecture
     Node Membership Processes and Basics
                                                                                   Public Lan                     Public Lan




     Main processes involved:                                                                               Private Lan /
                                                                                                            Interconnect
     • CSSD (ora.cssd)
                                                                                             Oracle Clusterware
     • CSSDMONITOR
          • was: oprocd
                                                                            CSSD                     CSSD                       CSSD
          • now: ora.cssdmonitor


                                                                                   SAN                               SAN
                                                                                   Network                           Network
                                                                                                        Voting
                                                                                                         Disk


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




     Oracle Clusterware Architecture
     What does CSSD do?
     • Monitors nodes using 2 communication channels:
            –      Private Interconnect  Network Heartbeat
            –      Voting Disk based communication  Disk Heartbeat


     • Evicts (forcibly removes nodes from a
        cluster) nodes dependent on heartbeat                                                       Oracle Clusterware
        feedback (failures)


                                                                                             CSSD             “Ping”           CSSD



                                                                                                              “Ping”

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




                                                                                                                                             32
1/20/2012




     Oracle Clusterware Architecture
     Interconnect basics – network heartbeat
     • Each node in the cluster is “pinged” every second


     • Nodes must respond in css_misscount time (defaults to 30 secs.)
            –      Reducing the css_misscount time is generally not supported

     • Network heartbeat failures                                                      “Ping”
        will lead to node evictions
            –      CSSD-log:
                   [date / time] [CSSD][1111902528]
                   clssnmPollingThread: node mynodename                      CSSD                CSSD
                   (5) at 75% heartbeat fatal, removal
                   in 6.770 seconds




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




     Oracle Clusterware Architecture
     Voting Disk basics – disk heartbeat
1 • Each node in the cluster “pings” (r/w) the Voting Disk(s) every second

     • Nodes must receive a response in (long / short) diskTimeout time
            –      IF I/O errors indicate clear accessibility problems  timeout is irrelevant

     • Disk heartbeat failures
        will lead to node evictions
            –      CSSD-log: …
                   [CSSD] [1115699552] >TRACE:
                   clssnmReadDskHeartbeat:                                   CSSD                CSSD
                   node(2) is down. rcfg(1) wrtcnt(1)
                   LATS(63436584) Disk lastSeqNo(1)


                                                                                        “Ping”

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




                                                                                                              33
1/20/2012




     Oracle Clusterware Architecture
     Voting Disk basics – Structure
2 • Voting Disks contain dynamic and static data:
            –      Dynamic data: disk heartbeat logging
            –      Static data: information about the nodes in the cluster


     • With 11.2.0.1 Voting Disks got an “identity”:
            –      E.g. Voting Disk serial number: [GRID]> crsctl query css votedisk
                1.          2 1212f9d6e85c4ff7bf80cc9e3f533cc1 (/dev/sdd5) [DATA]




                                                         Node information               Disk Heartbeat Logging


     • Voting Disks must therefore not be copied using “dd” or “cp” anymore

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




     Oracle Clusterware Architecture
     Voting Disk basics – Simple Majority rule
3 • Oracle supports redundant Voting Disks for disk failure protection
     • “Simple Majority Rule” applies:
            – Each node must “see” the simple majority of configured Voting Disks
                   at all times in order not to be evicted (to remain in the cluster)

      trunc(n/2+1) with n=number of voting disks
                                                                  configured and n>=1


                                                                                                CSSD                      CSSD



                                                                                                                 “Ping”


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




                                                                                                                                       34
1/20/2012




     Oracle Clusterware Architecture
     Simple Majority rule – in extended clusters


                                                                   •        http://www.oracle.com/goto/rac
                                                                             – Using standard NFS to support
                                                                                a third voting file for extended
                                                                                cluster configurations (PDF)
                                CSSD                                                                               CSSD




                                                                        • Same principles apply
                                                                        • Voting Disks are just
                                                                              geographically dispersed

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




     Oracle Clusterware Architecture
     Voting Disks in Oracle ASM does not change their usage
     [GRID]> crsctl query css votedisk
       1.          2 1212f9d6e85c4ff7bf80cc9e3f533cc1 (/dev/sdd5) [DATA]
       2.          2 aafab95f9ef84f03bf6e26adc2a3b0e8 (/dev/sde5) [DATA]
       3.          2 28dd4128f4a74f73bf8653dabd88c737 (/dev/sdd6) [DATA]
     Located 3 voting disk(s).

• Oracle ASM auto creates 1/3/5 Voting Files
        – Voting Disks reside in one diskgroup only
        – Based on Ext/Normal/High redundancy
          and on Failure Groups in the Disk Group
        – Per default there is one failure group per disk
        – ASM will enforce the required number of disks
        – New failure group type: Quorum Failgroup


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




                                                                                                                                35
1/20/2012




     Oracle Clusterware Architecture
     Oracle Cluster Registry (OCR) placement in Oracle ASM
     •             The OCR is managed like a datafile in ASM (new type)
               •      It adheres completely to the redundancy settings for the diskgroup (DG)
               •      There can be more than one OCR location in more than one DG (DG:OCR  1:1)
                    •    Recommendation is 2 OCR locations, 1 in DATA, 1 in FRA for example




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




     Oracle Clusterware Architecture
     Backup of Clusteware files is fully automatic (11.2+)
     • Clusterware Files (managed in ASM) enables fully Automatic Backups:
        • The Voting Disks are backed up into the OCR
          • Any configuration change in the cluster (e.g. node
             addition) triggers a new backup of the Voting Files.
          • A single, failed Voting Disks is restored by ASM
             automatically within a Disk Group – no action required
          • Note: Do not use DD to back up the Voting Disks anymore!

           • The OCR is backed up automatically every 4 hours
         • Manual Backups can be taken as required

     • ONLY IF all Voting Disks are corrupted or failed
       AND (all copies of) the OCR are also corrupted or unavailable
       THEN manual interference would be required – the rest is automatic.


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




                                                                                                         36
1/20/2012




     Fencing Basics
     Why are nodes evicted?
     • Evicting (fencing) nodes is a preventive measure (it’s a good thing)!
     • Nodes are evicted to prevent consequences of a split brain:
               –      Shared data must not be written by independently operating nodes
               –      The easiest way to prevent this is to forcibly remove a node from the cluster




                                                                                    1   2


                                                                                CSSD    CSSD




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




     Fencing Basics
     How are nodes evicted? – STONITH
     •     Once it is determined that a node needs to be evicted,
               –      A “kill request” is sent to the respective node(s)
               –      Using all (remaining) communication channels
     •     A node (CSSD) is requested to “kill itself”  “STONITH like”
               –      “STONITH” foresees that a remote node kills the node to be evicted




                                                                                1           2

                                                                           CSSD         CSSD




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




                                                                                                            37
1/20/2012




     Fencing Basics
     EXAMPLE: Network heartbeat failure
     •     The network heartbeat between nodes has failed
               –      It is determined which nodes can still talk to each other
               –      A “kill request” is sent to the node(s) to be evicted
      Using all (remaining) communication channels  Voting Disk(s)
      A node is requested to “kill itself”; executer: typically CSSD



                                                                                1                     2

                                                                           CSSD                       CSSD


                                                                                                  2



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




     Fencing Basics
     What happens, if CSSD is stuck?
     •     A node is requested to “kill itself”
                                                                                                             • See also: MOS note
     •     BUT CSSD is “stuck” or “sick” (does not execute) – e.g.:                                            1050693.1 -
               –      CSSD failed for some reason                                                              Troubleshooting 11.2
               –      CSSD is not scheduled within a certain margin                                            Clusterware Node
                                                                                                               Evictions (Reboots)
      OCSSDMONITOR (was: oprocd) will take over and execute




                          1                                                             2

                     CSSD                                                           CSSDmonitor
                                                                                       CSSD


                                                                                    2
                                                                                                      CSSD

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




                                                                                                                                            38
Understanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 Internals
Understanding Oracle RAC 11g Release 2 Internals

More Related Content

What's hot

New Features for Multitenant in Oracle Database 21c
New Features for Multitenant in Oracle Database 21cNew Features for Multitenant in Oracle Database 21c
New Features for Multitenant in Oracle Database 21cMarkus Flechtner
 
How to Use Oracle RAC in a Cloud? - A Support Question
How to Use Oracle RAC in a Cloud? - A Support QuestionHow to Use Oracle RAC in a Cloud? - A Support Question
How to Use Oracle RAC in a Cloud? - A Support QuestionMarkus Michalewicz
 
Oracle Clusterware Node Management and Voting Disks
Oracle Clusterware Node Management and Voting DisksOracle Clusterware Node Management and Voting Disks
Oracle Clusterware Node Management and Voting DisksMarkus Michalewicz
 
Cluster Health Advisor (CHA) Deep Dive by Mark Scardina
Cluster Health Advisor (CHA)  Deep Dive by Mark ScardinaCluster Health Advisor (CHA)  Deep Dive by Mark Scardina
Cluster Health Advisor (CHA) Deep Dive by Mark ScardinaMarkus Michalewicz
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceAnil Nair
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Glen Hawkins
 
High Availability for Oracle SE2
High Availability for Oracle SE2High Availability for Oracle SE2
High Availability for Oracle SE2Markus Flechtner
 
Exadata master series_asm_2020
Exadata master series_asm_2020Exadata master series_asm_2020
Exadata master series_asm_2020Anil Nair
 
Oracle RAC on Extended Distance Clusters - Presentation
Oracle RAC on Extended Distance Clusters - PresentationOracle RAC on Extended Distance Clusters - Presentation
Oracle RAC on Extended Distance Clusters - PresentationMarkus Michalewicz
 
Understanding oracle rac internals part 1 - slides
Understanding oracle rac internals   part 1 - slidesUnderstanding oracle rac internals   part 1 - slides
Understanding oracle rac internals part 1 - slidesMohamed Farouk
 
Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle MultitenantJitendra Singh
 
"It can always get worse!" – Lessons Learned in over 20 years working with Or...
"It can always get worse!" – Lessons Learned in over 20 years working with Or..."It can always get worse!" – Lessons Learned in over 20 years working with Or...
"It can always get worse!" – Lessons Learned in over 20 years working with Or...Markus Michalewicz
 
Anil nair rac_internals_sangam_2016
Anil nair rac_internals_sangam_2016Anil nair rac_internals_sangam_2016
Anil nair rac_internals_sangam_2016Anil Nair
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Sandesh Rao
 
Oracle RAC on Extended Distance Clusters - Customer Examples
Oracle RAC on Extended Distance Clusters - Customer ExamplesOracle RAC on Extended Distance Clusters - Customer Examples
Oracle RAC on Extended Distance Clusters - Customer ExamplesMarkus Michalewicz
 
Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on ExadataAnil Nair
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cSatishbabu Gunukula
 

What's hot (20)

New Features for Multitenant in Oracle Database 21c
New Features for Multitenant in Oracle Database 21cNew Features for Multitenant in Oracle Database 21c
New Features for Multitenant in Oracle Database 21c
 
How to Use Oracle RAC in a Cloud? - A Support Question
How to Use Oracle RAC in a Cloud? - A Support QuestionHow to Use Oracle RAC in a Cloud? - A Support Question
How to Use Oracle RAC in a Cloud? - A Support Question
 
Oracle Clusterware Node Management and Voting Disks
Oracle Clusterware Node Management and Voting DisksOracle Clusterware Node Management and Voting Disks
Oracle Clusterware Node Management and Voting Disks
 
Cluster Health Advisor (CHA) Deep Dive by Mark Scardina
Cluster Health Advisor (CHA)  Deep Dive by Mark ScardinaCluster Health Advisor (CHA)  Deep Dive by Mark Scardina
Cluster Health Advisor (CHA) Deep Dive by Mark Scardina
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC Performance
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive
 
Rac 12c optimization
Rac 12c optimizationRac 12c optimization
Rac 12c optimization
 
High Availability for Oracle SE2
High Availability for Oracle SE2High Availability for Oracle SE2
High Availability for Oracle SE2
 
Exadata master series_asm_2020
Exadata master series_asm_2020Exadata master series_asm_2020
Exadata master series_asm_2020
 
Oracle Data Masking and Subsettingのご紹介
Oracle Data Masking and Subsettingのご紹介Oracle Data Masking and Subsettingのご紹介
Oracle Data Masking and Subsettingのご紹介
 
Oracle RAC on Extended Distance Clusters - Presentation
Oracle RAC on Extended Distance Clusters - PresentationOracle RAC on Extended Distance Clusters - Presentation
Oracle RAC on Extended Distance Clusters - Presentation
 
Understanding oracle rac internals part 1 - slides
Understanding oracle rac internals   part 1 - slidesUnderstanding oracle rac internals   part 1 - slides
Understanding oracle rac internals part 1 - slides
 
Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle Multitenant
 
"It can always get worse!" – Lessons Learned in over 20 years working with Or...
"It can always get worse!" – Lessons Learned in over 20 years working with Or..."It can always get worse!" – Lessons Learned in over 20 years working with Or...
"It can always get worse!" – Lessons Learned in over 20 years working with Or...
 
Anil nair rac_internals_sangam_2016
Anil nair rac_internals_sangam_2016Anil nair rac_internals_sangam_2016
Anil nair rac_internals_sangam_2016
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
 
Oracle RAC 12c Overview
Oracle RAC 12c OverviewOracle RAC 12c Overview
Oracle RAC 12c Overview
 
Oracle RAC on Extended Distance Clusters - Customer Examples
Oracle RAC on Extended Distance Clusters - Customer ExamplesOracle RAC on Extended Distance Clusters - Customer Examples
Oracle RAC on Extended Distance Clusters - Customer Examples
 
Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on Exadata
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
 

Viewers also liked

Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slidesMohamed Farouk
 
Oracle RAC 11g Release 2 Client Connections
Oracle RAC 11g Release 2 Client ConnectionsOracle RAC 11g Release 2 Client Connections
Oracle RAC 11g Release 2 Client ConnectionsMarkus Michalewicz
 
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...Markus Michalewicz
 
Oracle RAC 12c Release 2 - Overview
Oracle RAC 12c Release 2 - OverviewOracle RAC 12c Release 2 - Overview
Oracle RAC 12c Release 2 - OverviewMarkus Michalewicz
 
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Markus Michalewicz
 
Oracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and conceptOracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and conceptSantosh Kangane
 
Paper: Oracle RAC and Oracle RAC One Node on Extended Distance (Stretched) Cl...
Paper: Oracle RAC and Oracle RAC One Node on Extended Distance (Stretched) Cl...Paper: Oracle RAC and Oracle RAC One Node on Extended Distance (Stretched) Cl...
Paper: Oracle RAC and Oracle RAC One Node on Extended Distance (Stretched) Cl...Markus Michalewicz
 
Oracle Multitenant meets Oracle RAC - IOUG 2014 Version
Oracle Multitenant meets Oracle RAC - IOUG 2014 VersionOracle Multitenant meets Oracle RAC - IOUG 2014 Version
Oracle Multitenant meets Oracle RAC - IOUG 2014 VersionMarkus Michalewicz
 
Cloug Troubleshooting Oracle 11g Rac 101 Tips And Tricks
Cloug Troubleshooting Oracle 11g Rac 101 Tips And TricksCloug Troubleshooting Oracle 11g Rac 101 Tips And Tricks
Cloug Troubleshooting Oracle 11g Rac 101 Tips And TricksScott Jenner
 
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 versionOracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 versionMarkus Michalewicz
 
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Yury Velikanov
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACKristofferson A
 
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim WilliamsOracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim WilliamsMarkus Michalewicz
 
Oracle 12c New Features For Better Performance
Oracle 12c New Features For Better PerformanceOracle 12c New Features For Better Performance
Oracle 12c New Features For Better PerformanceZohar Elkayam
 
Aioug sangam13 v3
Aioug sangam13 v3Aioug sangam13 v3
Aioug sangam13 v3pasalapudi
 
11g r2 rac grid clusterware doug presentation 10 21-10
11g r2 rac grid clusterware doug presentation 10 21-1011g r2 rac grid clusterware doug presentation 10 21-10
11g r2 rac grid clusterware doug presentation 10 21-10admdbarac
 
Sql server scalability fundamentals
Sql server scalability fundamentalsSql server scalability fundamentals
Sql server scalability fundamentalsChris Adkin
 
Oracle RDBMS architecture
Oracle RDBMS architectureOracle RDBMS architecture
Oracle RDBMS architectureMartin Berger
 

Viewers also liked (18)

Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slides
 
Oracle RAC 11g Release 2 Client Connections
Oracle RAC 11g Release 2 Client ConnectionsOracle RAC 11g Release 2 Client Connections
Oracle RAC 11g Release 2 Client Connections
 
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
 
Oracle RAC 12c Release 2 - Overview
Oracle RAC 12c Release 2 - OverviewOracle RAC 12c Release 2 - Overview
Oracle RAC 12c Release 2 - Overview
 
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
 
Oracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and conceptOracle 11g R2 RAC implementation and concept
Oracle 11g R2 RAC implementation and concept
 
Paper: Oracle RAC and Oracle RAC One Node on Extended Distance (Stretched) Cl...
Paper: Oracle RAC and Oracle RAC One Node on Extended Distance (Stretched) Cl...Paper: Oracle RAC and Oracle RAC One Node on Extended Distance (Stretched) Cl...
Paper: Oracle RAC and Oracle RAC One Node on Extended Distance (Stretched) Cl...
 
Oracle Multitenant meets Oracle RAC - IOUG 2014 Version
Oracle Multitenant meets Oracle RAC - IOUG 2014 VersionOracle Multitenant meets Oracle RAC - IOUG 2014 Version
Oracle Multitenant meets Oracle RAC - IOUG 2014 Version
 
Cloug Troubleshooting Oracle 11g Rac 101 Tips And Tricks
Cloug Troubleshooting Oracle 11g Rac 101 Tips And TricksCloug Troubleshooting Oracle 11g Rac 101 Tips And Tricks
Cloug Troubleshooting Oracle 11g Rac 101 Tips And Tricks
 
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 versionOracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
 
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
 
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim WilliamsOracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
 
Oracle 12c New Features For Better Performance
Oracle 12c New Features For Better PerformanceOracle 12c New Features For Better Performance
Oracle 12c New Features For Better Performance
 
Aioug sangam13 v3
Aioug sangam13 v3Aioug sangam13 v3
Aioug sangam13 v3
 
11g r2 rac grid clusterware doug presentation 10 21-10
11g r2 rac grid clusterware doug presentation 10 21-1011g r2 rac grid clusterware doug presentation 10 21-10
11g r2 rac grid clusterware doug presentation 10 21-10
 
Sql server scalability fundamentals
Sql server scalability fundamentalsSql server scalability fundamentals
Sql server scalability fundamentals
 
Oracle RDBMS architecture
Oracle RDBMS architectureOracle RDBMS architecture
Oracle RDBMS architecture
 

Similar to Understanding Oracle RAC 11g Release 2 Internals

Talk IT_ Oracle_정병선_110928
Talk IT_ Oracle_정병선_110928Talk IT_ Oracle_정병선_110928
Talk IT_ Oracle_정병선_110928Cana Ko
 
Sesion Marzo Zaragoza
Sesion Marzo ZaragozaSesion Marzo Zaragoza
Sesion Marzo ZaragozaFran Navarro
 
Sun oracletechupdate emea2008
Sun oracletechupdate emea2008Sun oracletechupdate emea2008
Sun oracletechupdate emea2008Sal Marcus
 
Best practices oracle_clusterware_session355_wp
Best practices oracle_clusterware_session355_wpBest practices oracle_clusterware_session355_wp
Best practices oracle_clusterware_session355_wpwardell henley
 
Exadata overview audio
Exadata overview audioExadata overview audio
Exadata overview audioAhmed Mekawy
 
Oracle rac-in-ldoms-sunblueprint
Oracle rac-in-ldoms-sunblueprintOracle rac-in-ldoms-sunblueprint
Oracle rac-in-ldoms-sunblueprintSal Marcus
 
Oracle Fusion Middleware - pragmatic approach to build up your applications -...
Oracle Fusion Middleware - pragmatic approach to build up your applications -...Oracle Fusion Middleware - pragmatic approach to build up your applications -...
Oracle Fusion Middleware - pragmatic approach to build up your applications -...ORACLE USER GROUP ESTONIA
 
Oracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo PruscinoOracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo PruscinoMarkus Michalewicz
 
Oracle 10g sql fundamentals i
Oracle 10g sql fundamentals iOracle 10g sql fundamentals i
Oracle 10g sql fundamentals iManaswi Sharma
 
Oracle my sql cluster cge
Oracle my sql cluster cgeOracle my sql cluster cge
Oracle my sql cluster cgeseungdon1
 
Engineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the FutureEngineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the FutureBob Rhubart
 
Oracle Security: Bridging the gap between enterprise and cloud
Oracle Security: Bridging the gap between enterprise and cloudOracle Security: Bridging the gap between enterprise and cloud
Oracle Security: Bridging the gap between enterprise and cloudNormand Sauve
 
001.Oracle RAC Architecture - Real Application Cluster.pdf
001.Oracle RAC Architecture - Real Application Cluster.pdf001.Oracle RAC Architecture - Real Application Cluster.pdf
001.Oracle RAC Architecture - Real Application Cluster.pdfVAMSICHOWDARY61
 
Oracle Linux Nov 2011 Webcast
Oracle Linux Nov 2011 WebcastOracle Linux Nov 2011 Webcast
Oracle Linux Nov 2011 WebcastTerry Wang
 
Time for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RACTime for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RACSatishbabu Gunukula
 
Engineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the FutureEngineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the FutureBob Rhubart
 
Uk Linux Presentation Abhishek Kapoor
Uk Linux Presentation Abhishek KapoorUk Linux Presentation Abhishek Kapoor
Uk Linux Presentation Abhishek KapoorIDS Infotech
 
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RACThe Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RACMarkus Michalewicz
 
Oracle RAC - Standard Edition, Enterprise Edition &amp; One Node
Oracle RAC - Standard Edition, Enterprise Edition &amp; One NodeOracle RAC - Standard Edition, Enterprise Edition &amp; One Node
Oracle RAC - Standard Edition, Enterprise Edition &amp; One NodeLeighton Nelson
 

Similar to Understanding Oracle RAC 11g Release 2 Internals (20)

Talk IT_ Oracle_정병선_110928
Talk IT_ Oracle_정병선_110928Talk IT_ Oracle_정병선_110928
Talk IT_ Oracle_정병선_110928
 
Sesion Marzo Zaragoza
Sesion Marzo ZaragozaSesion Marzo Zaragoza
Sesion Marzo Zaragoza
 
Sun oracletechupdate emea2008
Sun oracletechupdate emea2008Sun oracletechupdate emea2008
Sun oracletechupdate emea2008
 
Best practices oracle_clusterware_session355_wp
Best practices oracle_clusterware_session355_wpBest practices oracle_clusterware_session355_wp
Best practices oracle_clusterware_session355_wp
 
Exadata overview audio
Exadata overview audioExadata overview audio
Exadata overview audio
 
Oracle rac-in-ldoms-sunblueprint
Oracle rac-in-ldoms-sunblueprintOracle rac-in-ldoms-sunblueprint
Oracle rac-in-ldoms-sunblueprint
 
Oracle Fusion Middleware - pragmatic approach to build up your applications -...
Oracle Fusion Middleware - pragmatic approach to build up your applications -...Oracle Fusion Middleware - pragmatic approach to build up your applications -...
Oracle Fusion Middleware - pragmatic approach to build up your applications -...
 
Oracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo PruscinoOracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo Pruscino
 
Oracle 10g sql fundamentals i
Oracle 10g sql fundamentals iOracle 10g sql fundamentals i
Oracle 10g sql fundamentals i
 
Oracle my sql cluster cge
Oracle my sql cluster cgeOracle my sql cluster cge
Oracle my sql cluster cge
 
Engineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the FutureEngineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the Future
 
Exalogic Bcn
Exalogic BcnExalogic Bcn
Exalogic Bcn
 
Oracle Security: Bridging the gap between enterprise and cloud
Oracle Security: Bridging the gap between enterprise and cloudOracle Security: Bridging the gap between enterprise and cloud
Oracle Security: Bridging the gap between enterprise and cloud
 
001.Oracle RAC Architecture - Real Application Cluster.pdf
001.Oracle RAC Architecture - Real Application Cluster.pdf001.Oracle RAC Architecture - Real Application Cluster.pdf
001.Oracle RAC Architecture - Real Application Cluster.pdf
 
Oracle Linux Nov 2011 Webcast
Oracle Linux Nov 2011 WebcastOracle Linux Nov 2011 Webcast
Oracle Linux Nov 2011 Webcast
 
Time for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RACTime for Change: Migrate your Non-RAC Database to RAC
Time for Change: Migrate your Non-RAC Database to RAC
 
Engineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the FutureEngineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the Future
 
Uk Linux Presentation Abhishek Kapoor
Uk Linux Presentation Abhishek KapoorUk Linux Presentation Abhishek Kapoor
Uk Linux Presentation Abhishek Kapoor
 
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RACThe Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
 
Oracle RAC - Standard Edition, Enterprise Edition &amp; One Node
Oracle RAC - Standard Edition, Enterprise Edition &amp; One NodeOracle RAC - Standard Edition, Enterprise Edition &amp; One Node
Oracle RAC - Standard Edition, Enterprise Edition &amp; One Node
 

More from Markus Michalewicz

Achieving Continuous Availability for Your Applications with Oracle MAA
Achieving Continuous Availability for Your Applications with Oracle MAAAchieving Continuous Availability for Your Applications with Oracle MAA
Achieving Continuous Availability for Your Applications with Oracle MAAMarkus Michalewicz
 
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - OverviewHA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - OverviewMarkus Michalewicz
 
Oracle Cloud is Best for Oracle Database - High Availability
Oracle Cloud is Best for Oracle Database - High AvailabilityOracle Cloud is Best for Oracle Database - High Availability
Oracle Cloud is Best for Oracle Database - High AvailabilityMarkus Michalewicz
 
Oracle Database – Mission Critical
Oracle Database – Mission CriticalOracle Database – Mission Critical
Oracle Database – Mission CriticalMarkus Michalewicz
 
Standard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & HowStandard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & HowMarkus Michalewicz
 
"Changing Role of the DBA" Skills to Have, to Obtain & to Nurture - Updated 2...
"Changing Role of the DBA" Skills to Have, to Obtain & to Nurture - Updated 2..."Changing Role of the DBA" Skills to Have, to Obtain & to Nurture - Updated 2...
"Changing Role of the DBA" Skills to Have, to Obtain & to Nurture - Updated 2...Markus Michalewicz
 
MAA for Oracle Database, Exadata and the Cloud
MAA for Oracle Database, Exadata and the CloudMAA for Oracle Database, Exadata and the Cloud
MAA for Oracle Database, Exadata and the CloudMarkus Michalewicz
 
(Oracle) DBA and Other Skills Needed in 2020
(Oracle) DBA and Other Skills Needed in 2020(Oracle) DBA and Other Skills Needed in 2020
(Oracle) DBA and Other Skills Needed in 2020Markus Michalewicz
 
Make Your Application “Oracle RAC Ready” & Test For It
Make Your Application “Oracle RAC Ready” & Test For ItMake Your Application “Oracle RAC Ready” & Test For It
Make Your Application “Oracle RAC Ready” & Test For ItMarkus Michalewicz
 
MAA Best Practices for Oracle Database 19c
MAA Best Practices for Oracle Database 19cMAA Best Practices for Oracle Database 19c
MAA Best Practices for Oracle Database 19cMarkus Michalewicz
 
Best Practices for the Most Impactful Oracle Database 18c and 19c Features
Best Practices for the Most Impactful Oracle Database 18c and 19c FeaturesBest Practices for the Most Impactful Oracle Database 18c and 19c Features
Best Practices for the Most Impactful Oracle Database 18c and 19c FeaturesMarkus Michalewicz
 
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?Markus Michalewicz
 
From HA to Maximum Availability - A Holistic Historical Discussion
From HA to Maximum Availability - A Holistic Historical DiscussionFrom HA to Maximum Availability - A Holistic Historical Discussion
From HA to Maximum Availability - A Holistic Historical DiscussionMarkus Michalewicz
 
Why to Use an Oracle Database?
Why to Use an Oracle Database? Why to Use an Oracle Database?
Why to Use an Oracle Database? Markus Michalewicz
 
A Cloud Journey - Move to the Oracle Cloud
A Cloud Journey - Move to the Oracle CloudA Cloud Journey - Move to the Oracle Cloud
A Cloud Journey - Move to the Oracle CloudMarkus Michalewicz
 
Oracle MAA Best Practices - Applications Considerations
Oracle MAA Best Practices - Applications ConsiderationsOracle MAA Best Practices - Applications Considerations
Oracle MAA Best Practices - Applications ConsiderationsMarkus Michalewicz
 
Oracle RAC 19c with Standard Edition (SE) 2 - Support Update
Oracle RAC 19c with Standard Edition (SE) 2 - Support UpdateOracle RAC 19c with Standard Edition (SE) 2 - Support Update
Oracle RAC 19c with Standard Edition (SE) 2 - Support UpdateMarkus Michalewicz
 
(Oracle) DBA Skills to Have, to Obtain and to Nurture
(Oracle) DBA Skills to Have, to Obtain and to Nurture(Oracle) DBA Skills to Have, to Obtain and to Nurture
(Oracle) DBA Skills to Have, to Obtain and to NurtureMarkus Michalewicz
 

More from Markus Michalewicz (20)

Achieving Continuous Availability for Your Applications with Oracle MAA
Achieving Continuous Availability for Your Applications with Oracle MAAAchieving Continuous Availability for Your Applications with Oracle MAA
Achieving Continuous Availability for Your Applications with Oracle MAA
 
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - OverviewHA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
 
Oracle Cloud is Best for Oracle Database - High Availability
Oracle Cloud is Best for Oracle Database - High AvailabilityOracle Cloud is Best for Oracle Database - High Availability
Oracle Cloud is Best for Oracle Database - High Availability
 
Oracle Database – Mission Critical
Oracle Database – Mission CriticalOracle Database – Mission Critical
Oracle Database – Mission Critical
 
2020 – A Decade of Change
2020 – A Decade of Change2020 – A Decade of Change
2020 – A Decade of Change
 
Standard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & HowStandard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & How
 
Why Use an Oracle Database?
Why Use an Oracle Database?Why Use an Oracle Database?
Why Use an Oracle Database?
 
"Changing Role of the DBA" Skills to Have, to Obtain & to Nurture - Updated 2...
"Changing Role of the DBA" Skills to Have, to Obtain & to Nurture - Updated 2..."Changing Role of the DBA" Skills to Have, to Obtain & to Nurture - Updated 2...
"Changing Role of the DBA" Skills to Have, to Obtain & to Nurture - Updated 2...
 
MAA for Oracle Database, Exadata and the Cloud
MAA for Oracle Database, Exadata and the CloudMAA for Oracle Database, Exadata and the Cloud
MAA for Oracle Database, Exadata and the Cloud
 
(Oracle) DBA and Other Skills Needed in 2020
(Oracle) DBA and Other Skills Needed in 2020(Oracle) DBA and Other Skills Needed in 2020
(Oracle) DBA and Other Skills Needed in 2020
 
Make Your Application “Oracle RAC Ready” & Test For It
Make Your Application “Oracle RAC Ready” & Test For ItMake Your Application “Oracle RAC Ready” & Test For It
Make Your Application “Oracle RAC Ready” & Test For It
 
MAA Best Practices for Oracle Database 19c
MAA Best Practices for Oracle Database 19cMAA Best Practices for Oracle Database 19c
MAA Best Practices for Oracle Database 19c
 
Best Practices for the Most Impactful Oracle Database 18c and 19c Features
Best Practices for the Most Impactful Oracle Database 18c and 19c FeaturesBest Practices for the Most Impactful Oracle Database 18c and 19c Features
Best Practices for the Most Impactful Oracle Database 18c and 19c Features
 
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
 
From HA to Maximum Availability - A Holistic Historical Discussion
From HA to Maximum Availability - A Holistic Historical DiscussionFrom HA to Maximum Availability - A Holistic Historical Discussion
From HA to Maximum Availability - A Holistic Historical Discussion
 
Why to Use an Oracle Database?
Why to Use an Oracle Database? Why to Use an Oracle Database?
Why to Use an Oracle Database?
 
A Cloud Journey - Move to the Oracle Cloud
A Cloud Journey - Move to the Oracle CloudA Cloud Journey - Move to the Oracle Cloud
A Cloud Journey - Move to the Oracle Cloud
 
Oracle MAA Best Practices - Applications Considerations
Oracle MAA Best Practices - Applications ConsiderationsOracle MAA Best Practices - Applications Considerations
Oracle MAA Best Practices - Applications Considerations
 
Oracle RAC 19c with Standard Edition (SE) 2 - Support Update
Oracle RAC 19c with Standard Edition (SE) 2 - Support UpdateOracle RAC 19c with Standard Edition (SE) 2 - Support Update
Oracle RAC 19c with Standard Edition (SE) 2 - Support Update
 
(Oracle) DBA Skills to Have, to Obtain and to Nurture
(Oracle) DBA Skills to Have, to Obtain and to Nurture(Oracle) DBA Skills to Have, to Obtain and to Nurture
(Oracle) DBA Skills to Have, to Obtain and to Nurture
 

Recently uploaded

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 

Recently uploaded (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 

Understanding Oracle RAC 11g Release 2 Internals

  • 1. 1/20/2012 1 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Understanding Oracle RAC Internals Markus Michalewicz (Markus.Michalewicz@oracle.com) Senior Principal Product Manager Oracle RAC and Oracle RAC One Node 2 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 1
  • 2. 1/20/2012 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. 3 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Agenda • The Oracle RAC Architecture • VIPs and Networks • Listeners and SCAN – and Services • Client Connectivity • Node Membership • The Interconnect • Installation and Upgrade 4 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 2
  • 3. 1/20/2012 The Oracle RAC Architecture Typical hardware architecture Network Public Lan Client Node 1 Node 2 Node N-1 Node N Interconnect with switch SAN switch Shared Storage 5 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. The Oracle RAC Architecture Typical software deployment 11g Release 2 Oracle Real Application Clusters (RAC) Oracle Grid Infrastructure OS OS OS OS Shared Storage 6 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 3
  • 4. 1/20/2012 The Oracle RAC Architecture Typical software deployment 11g Release 2 Oracle Real Application Clusters (RAC) Oracle Automatic Storage Management (ASM) Oracle Clusterware OS OS OS OS Oracle ASM managed Shared Storage 7 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. The Oracle RAC Architecture Oracle RAC 11g Release 2 per node layer • Cloud File System (aka ASM Cluster File File System - ACFS) DB Instance • For all other files Oracle RAC • 11.2.0.3: For Backup Sets ASM Instance Oracle Grid Infrastructure • Oracle Clusterware files HA Framework OS OS • Voting Files (disks) Node Membership • Cluster Registry (OCR) OS • Database Files • Redo / Archive Logs Oracle ASM managed • Control Files Shared Storage • etc. 8 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 4
  • 5. 1/20/2012 The Oracle RAC Architecture Oracle Grid Infrastructure 11g Release 2 process overview ASM Instance Oracle Grid Infrastructure HA Framework OS OS Node Membership • My Oracle Support (MOS) OS • Note 1053147.1 - 11gR2 Clusterware and Grid Home - What You Need to Know • Note 1050908.1 - How to Troubleshoot Grid Infrastructure Startup Issues 9 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. The Oracle RAC Architecture Local and Cluster Resources (11.2.0.2 list) LISTENER_SCAN1 LISTENER_SCAN2 LISTENER_SCAN3 ora.oc4j If database is deployed: ora.SCAN1.VIP ora.SCAN2.VIP ora.SCAN3.VIP ora.cvu • ora.Dbname.db ora.node1.vip ora.node2.vip ora.node3.vip ora.node4.vip • ora.Dbname.Srvcname.svc ora.asm ora.asm ora.asm ora.asm ora.dgname.dg ora.dgname.dg ora.dgname.dg ora.dgname.dg Command to list: ora.listener.lsnr ora.listener.lsnr ora.listener.lsnr ora.listener.lsnr • crsctl stat res -t ora.ons ora.ons ora.ons ora.ons ora.gsd ora.gsd ora.gsd ora.gsd ora.net1.network ora.net1.network ora.net1.network ora.net1.network ora.registry.acfs ora.registry.acfs ora.registry.acfs ora.registry.acfs Oracle Grid Infrastructure OS OS OS OS 10 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 5
  • 6. 1/20/2012 VIPs and Networks 11 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. VIPs and Networks Oracle VIPs • SCAN and node VIPs are cluster resources • SCAN VIPs can float in the cluster • Node VIPs per default run on specific nodes rac1 rac2 LISTENER_SCAN1 LISTENER_SCAN2 ora.SCAN1.VIP ora.SCAN2.VIP ora.rac1.vip ora.rac2.vip • All VIPs on the public network (SCAN, node, user or application VIPs) depend on the Oracle … … network resource. ora.listener.lsnr ora.listener.lsnr … … • The network resource monitors ora.net1.network ora.net1.network the public network interface(s). • IOCTL based checks vs. default gateway ping Oracle Grid Infrastructure OS OS • Default gateway checks as backup • racgvip for backward compatibility only 12 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 6
  • 7. 1/20/2012 VIPs and Networks Node VIP Details [GRID]> crsctl status res ora.rac1.vip -p NAME=ora.rac1.vip TYPE=ora.cluster_vip_net1.type ... 1 AGENT_FILENAME=%CRS_HOME%/bin/orarootagent%CRS_EXE_SUFFIX% ... rac1 rac2 CHECK_INTERVAL=1 … … 2 CHECK_TIMEOUT=30 … … ... ora.rac1.vip ora.rac2.vip START_DEPENDENCIES=hard(ora.net1.network) 3 pullup(ora.net1.network) … … ... ora.listener.lsnr ora.listener.lsnr STOP_DEPENDENCIES=hard(ora.net1.network) … … ... ora.net1.network ora.net1.network USR_ORA_VIP=rac1-vip VERSION=11.2.0.2.0 Oracle Grid Infrastructure OS OS 13 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. VIPs and Networks The network resource • The Oracle network resource monitors the public network interface(s) (e.g. eth0). • The default is network number 1 (net1) • There is one network resource per subnet: rac1 rac2 … … [GRID]> srvctl config network … … Network exists: ora.rac1.vip ora.rac2.vip 1/192.168.0.0/255.255.255.0/eth0, type static … … ora.listener.lsnr ora.listener.lsnr • New in 11.2.0.2: … … • Direct management of the network resource ora.net1.network ora.net1.network • srvctl verb network Oracle Grid Infrastructure • Network type support (static, dhcp, mixed) OS OS 14 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 7
  • 8. 1/20/2012 VIPs and Networks How to enable multiple networks in the cluster? 1 [GRID]> srvctl add network –h Adds a network configuration to the Oracle Clusterware. Usage: srvctl add network -k <net_num> network number (default number is 1) -S <subnet>/<netmask>/[if1[|if2...]] NET address spec for network -w <network_type> The network type (static, dhcp, mixed) … … ora.net1.network ora.net1.network -h Print usage ora.net2.network ora.net2.network -v Verbose output … … Oracle Grid Infrastructure • For example: srvctl add network -k 2 -S 10.1.1.0/255.255.255.0 OS OS 15 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. VIPs and Networks How to enable multiple networks in the cluster? 2 [GRID]> srvctl add vip -h Adds a VIP to the Oracle Clusterware. Usage: srvctl add vip -n <node_name> Node name -A <vip_name|ip>/<netmask>/[if1[|if2...]] ora.rac1.vip ora.rac2.vip VIP address spec for node applications ora.rac1-vip2.vip ora.rac2-vip2.vip -k <net_num> network number (default number is 1) … … -h Print usage ora.net1.network ora.net1.network ora.net2.network ora.net2.network -v Verbose output … … Oracle Grid Infrastructure • For example: srvctl add vip -n rac1 -k 2 -A rac1-vip2/255.255.255.0 OS OS srvctl add vip -n rac2 -k 2 -A rac2-vip2/255.255.255.0 16 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 8
  • 9. 1/20/2012 VIPs and Networks Application / user and node VIPs 1 [GRID]> crsctl stat res ora.rac1-vip2.vip -p NAME=ora.rac1-vip2.vip TYPE=ora.cluster_vip_net2.type ... HOSTING_MEMBERS=rac1 This is a node vip! ora.rac1.vip ora.rac2.vip ora.rac1-vip2.vip ora.rac2-vip2.vip ... START_DEPENDENCIES=hard(ora.net2.network) pullup(ora.net2.network) … … ora.net1.network ora.net1.network ... ora.net2.network ora.net2.network STOP_DEPENDENCIES=hard(ora.net2.network) … … ... Oracle Grid Infrastructure USR_ORA_VIP=rac1-vip2 OS OS VERSION=11.2.0.2.0 17 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. VIPs and Networks Application / user and node VIPs 2 [GRID]> appvipcfg create -network=1 -ip 192.168.0.66 -vipname=myVIP -user=root This is an application vip! ora.rac1.vip ora.rac2.vip [GRID]> appvipcfg create ora.rac1-vip2.vip ora.rac2-vip2.vip -network=2 -ip 10.1.1.88 myVIP myNewVIP -vipname=myNewVIP … … -user=root ora.net1.network ora.net1.network ora.net2.network ora.net2.network … … Oracle Grid Infrastructure OS OS 18 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 9
  • 10. 1/20/2012 VIPs and Networks Application / user and node VIPs 3 [GRID]> crsctl stat res myVIP -p NAME=myVIP TYPE=app.appvip_net1.type ... HOSTING_MEMBERS=rac1 This is an application vip! ora.rac1.vip ora.rac2.vip ora.rac1-vip2.vip ora.rac2-vip2.vip ... RESTART_ATTEMPTS=0 myVIP myNewVIP ... … … ora.net1.network ora.net1.network USR_ORA_VIP=192.168.0.66 ora.net2.network ora.net2.network VERSION=11.2.0.2.0 … … Oracle Grid Infrastructure • You can modify it as needed! OS OS 19 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Listeners and SCAN 20 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 10
  • 11. 1/20/2012 Listeners Listeners and dependencies • In Oracle RAC 11g Release 2 there have been three major changes regarding listeners: rac1 rac2 LISTENER_SCAN1 LISTENER_SCAN2 1. Listeners per default now run from the ora.SCAN1.VIP ora.SCAN2.VIP Oracle Grid Infrastructure (GRID) home ora.rac1.vip ora.rac2.vip 2. Listeners are managed by an Oracle agent … … ora.listener.lsnr ora.listener.lsnr 3. SCAN Listeners were introduced … … ora.net1.network ora.net1.network • A listener depends on a VIP Oracle Grid Infrastructure • A listener depends indirectly on a network OS OS 21 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Listeners The default LISTENER [GRID]> srvctl config listener Name: LISTENER Network: 1, Owner: oracle  Grid Software Owner Home: <CRS home> rac1 rac2 End points: TCP:1521 … … ora.LISTENER.lsnr ora.LISTENER.lsnr … … ora.net1.network ora.net1.network Oracle Grid Infrastructure OS OS 22 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 11
  • 12. 1/20/2012 Listeners The default LISTENER FAQ • Can you define another port? - YES rac1 rac2 • Can you define another owner? – YES • Can you define another home? – YES, if really needed. … … ora.LISTENER.lsnr ora.LISTENER.lsnr … … • Can I add another listener on another port? - YES ora.net1.network ora.net1.network Oracle Grid Infrastructure OS OS 23 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. The default LISTENER Can you define another port? - YES 1 [GRID]> srvctl modify listener -l LISTENER -p TCP:1545 [GRID]> srvctl config listener Name: LISTENER rac1 rac2 Network: 1, Owner: oracle Home: <CRS home> End points: TCP:1545 … … ora.LISTENER.lsnr ora.LISTENER.lsnr • Check: <CRS HOME>/network/admin/endpoints_listener.ora before: … … LISTENER_RAC1=(DESCRIPTION=(ADDRESS_LIST= ora.net1.network ora.net1.network (ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip) (PORT=1521))(ADDRESS=(PROTOCOL=TCP) Oracle Grid Infrastructure (HOST=192.168.0.51)(PORT=1521)(IP=FIRST)))) OS OS # line added by Agent 24 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 12
  • 13. 1/20/2012 The default LISTENER Can you define another port? - YES 2 [GRID]> srvctl modify listener -l LISTENER -p TCP:1545 [GRID]> srvctl config listener Name: LISTENER rac1 rac2 Network: 1, Owner: oracle Home: <CRS home> End points: TCP:1545 … … ora.LISTENER.lsnr ora.LISTENER.lsnr • Check: <CRS HOME>/network/admin/endpoints_listener.ora after restart: … … LISTENER_RAC1=(DESCRIPTION=(ADDRESS_LIST= ora.net1.network ora.net1.network (ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip) (PORT=1545))(ADDRESS=(PROTOCOL=TCP) Oracle Grid Infrastructure (HOST=192.168.0.51)(PORT=1545)(IP=FIRST)))) OS OS # line added by Agent 25 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. The default LISTENER Can you define another owner? - YES [GRID]> srvctl modify listener -l LISTENER -u root You need to be root… [GRID]> srvctl config listener Name: LISTENER rac1 rac2 Network: 1, Owner: root  For demonstration purposes only… Home: <CRS home> End points: TCP:1545 … … ora.LISTENER.lsnr ora.LISTENER.lsnr … … ora.net1.network ora.net1.network Oracle Grid Infrastructure OS OS 26 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 13
  • 14. 1/20/2012 The default LISTENER Can you define another home? - YES [GRID]> srvctl modify listener -l LISTENER -o /u01/app/oracle/product/11.2.0/dbhome_1 [GRID]> srvctl config listener Name: LISTENER rac1 rac2 Network: 1, Owner: oracle Home: /u01/app/oracle/product/11.2.0/dbhome_1 End points: TCP:1545 … … ora.LISTENER.lsnr ora.LISTENER.lsnr … … ora.net1.network ora.net1.network • This may not be required. Oracle Grid Infrastructure • Instead, create a new listener from a separate home, if needed and use the SRVCTL command as shown, but try using the GI home. OS OS 27 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Listeners Can I add another listener on another port? - YES [GRID]> srvctl config listener Name: LISTENER Network: 1, Owner: oracle Home: <CRS home> rac1 rac2 End points: TCP:1521 Name: LISTENER2011 Network: 1, Owner: oracle … … Home: <CRS home> ora.LISTENER.lsnr ora.LISTENER.lsnr End points: TCP:2011 ora.LISTENERK2.lsnr ora.LISTENERK2.lsnr ora.net1.network ora.net1.network • MOS Note 220970.1 - RAC: Frequently Asked Questions Oracle Grid Infrastructure • How to use SCAN and node listeners with different ports? OS OS • Add additional node listeners to the system using different ports 28 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 14
  • 15. 1/20/2012 Listeners Can I add another listener on another network? - YES [GRID]> srvctl add listener -l ListenerK2 -p 1544 -k 2 [GRID]> srvctl config listener Name: LISTENER Network: 1, Owner: oracle rac1 rac2 Home: <CRS home> End points: TCP:1545 … … Name: LISTENERK2 ora.LISTENER.lsnr ora.LISTENER.lsnr Ora.LISTENERK2.lsnr ora.LISTENERK2.lsnr Network: 2, Owner: oracle ora.net1.network ora.net1.network Home: <CRS home> ora.net2.network ora.net2.network End points: TCP:1544 … … Oracle Grid Infrastructure • MOS Note 1063571.1 - How to Configure A Second OS OS Listener on a Separate Network in 11.2 Grid Infrastructure 29 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Listeners Remember – it’s just another listener … 1 [GRID]> srvctl config listener Name: JUSTALISTENER Network: 1, Owner: root Home: <CRS home> rac1 rac2 End points: TCP:1522 LISTENER_SCAN1 LISTENER_SCAN2 ... ora.SCAN1.VIP ora.SCAN2.VIP ora.rac1.vip ora.rac2.vip [GRID]> vi /u01/app/11.2.0/grid/network/admin/listener.ora … … JUSTALISTENER=(DESCRIPTION=(ADDRESS_LIST= ora.LISTENER.lsnr ora.LISTENER.lsnr (ADDRESS=(PROTOCOL=IPC)(KEY=JUSTALISTENER)))) # line added by Agent … … ora.net1.network ora.net1.network [GRID]> vi /u01/app/11.2.0/grid/network/admin/endpoints_listener.ora JUSTALISTENER_RAC1=(DESCRIPTION=(ADDRESS_LIST= Oracle Grid Infrastructure (ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1522)) (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.51)(PORT=1522)(IP=FIRST)))) OS OS 30 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 15
  • 16. 1/20/2012 Listeners Remember – it’s just another listener … 2 [GRID]> vi /u01/app/11.2.0/grid/network/admin/listener.ora JUSTALISTENER=(DESCRIPTION=(ADDRESS_LIST= (ADDRESS=(PROTOCOL=IPC)(RATE_LIMIT=10)  For demonstration purposes only… (KEY=JUSTALISTENER)))) # line added by Agent ... rac1 rac2 [GRID]> srvctl stop listener -l JustAListener LISTENER_SCAN1 LISTENER_SCAN2 ora.SCAN1.VIP ora.SCAN2.VIP [GRID]> srvctl start listener -l JustAListener ora.rac1.vip ora.rac2.vip [GRID]> vi /u01/app/11.2.0/grid/network/admin/listener.ora … … ... ora.LISTENER.lsnr ora.LISTENER.lsnr [GRID]> vi /u01/app/11.2.0/grid/network/admin/listener.ora … … ora.net1.network ora.net1.network JUSTALISTENER=(DESCRIPTION=(ADDRESS_LIST= (ADDRESS=(PROTOCOL=IPC)(RATE_LIMIT=10) Oracle Grid Infrastructure (KEY=JUSTALISTENER)))) # line added by Agent OS OS 31 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. SCAN The basics and overview • In Oracle RAC 11g Release 2 SCAN Listeners were introduced SCAN • There is one SCAN setup per cluster • Read about SCAN: rac1 rac2 rac3 LISTENER_SCAN1 LISTENER_SCAN2 LISTENER_SCAN3 • http://www.oracle.com/technetwork/database/ ora.SCAN1.VIP ora.SCAN2.VIP ora.SCAN3.VIP clustering/overview/scan-129069.pdf … … … • MOS Note 887522.1 – … … … 11gR2 Grid Infrastructure Single Client Access Name (SCAN) Explained ora.LISTENER.lsnr ora.LISTENER.lsnr ora.LISTENER.lsnr … … … ora.net1.network ora.net1.network ora.net1.network • SCAN consists of a bundle containing: 1. SCAN IP Oracle Grid Infrastructure OS OS OS 2. Associated (dependency) SCAN Listener 32 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 16
  • 17. 1/20/2012 SCAN The SCAN bundle 1 • 3 SCANs are the default for HA and LB • Regardless of number of nodes SCAN • You can define less or more, if really needed. • SCAN listener resources run with rac1 rac2 rac3 an active dispersion dependency LISTENER_SCAN1 LISTENER_SCAN2 LISTENER_SCAN3 • If you use more nodes in the cluster than ora.SCAN1.VIP ora.SCAN2.VIP ora.SCAN3.VIP … … … SCAN listeners are defined, no node should run more than one SCAN bundle at a time … … … ora.LISTENER.lsnr ora.LISTENER.lsnr ora.LISTENER.lsnr • If you use less nodes in the cluster than … … … SCAN listeners are defined, there will be ora.net1.network ora.net1.network ora.net1.network nodes running more than one SCAN bundle at a time. Oracle Grid Infrastructure • SCAN VIP moves with the listener, if possible. OS OS OS 33 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. SCAN The SCAN bundle 2 [GRID]> srvctl config scan SCAN name: cluster1, Network: 1/192.168.0.0/255.255.255.0/eth0 SCAN VIP name: scan1, IP: /cluster1.us.oracle.com/192.168.0.41 SCAN rac1 rac2 [GRID]> srvctl modify scan LISTENER_SCAN1 … Modifies the SCAN name. ora.SCAN1.VIP … … … Usage: srvctl modify scan … … -n <scan_name> Domain name qualified SCAN name ora.LISTENER.lsnr ora.LISTENER.lsnr -h Print usage … … ora.net1.network ora.net1.network • http://www.oracle.com/technetwork/database/ Oracle Grid Infrastructure clustering/overview/scan-129069.pdf page 2 OS OS 34 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 17
  • 18. 1/20/2012 SCAN The SCAN bundle 3 [GRID]> srvctl add scan -h Adds a SCAN VIP to the Oracle Clusterware. Usage: srvctl add scan -n <scan_name> SCAN -n <scan_name> Domain name qualified SCAN name rac1 rac2 -k <net_num> network number (default number is 1) LISTENER_SCAN1 … -S <subnet>/<netmask>/[if1[|if2...]] ora.SCAN1.VIP … NET address spec for network … … -h Print usage … … ora.LISTENER.lsnr ora.LISTENER.lsnr … … • Note: SCAN can only operate on one network / in one subnet. ora.net1.network ora.net1.network Oracle Grid Infrastructure OS OS 35 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. SCAN The SCAN FAQ 1 • From MOS Note 220970.1 – RAC: Frequently Asked Questions • How to use SCAN and node listeners with different ports? SCAN • With Oracle RAC 11g Release 2 using SCAN is the default. rac1 rac2 • As with other listeners, there is no direct communication LISTENER_SCAN1 … between the node (listeners) and the SCAN listeners. ora.SCAN1.VIP … … … • Listeners are only aware of the instances and services served, since the instances (PMON) register themselves and the services … … they host with the listeners. ora.LISTENER.lsnr ora.LISTENER.lsnr … … • The instances use the LOCAL and REMOTE Listener ora.net1.network ora.net1.network parameters to know with which listeners to register. • Listeners used for a client connection to Oracle RAC should be Oracle Grid Infrastructure managed by Oracle Clusterware and should be listening on an OS OS Oracle managed VIP. 36 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 18
  • 19. 1/20/2012 SCAN The SCAN FAQ 2 • Can you define another port? - YES • See MOS Note 220970.1 – RAC: Frequently Asked Questions SCAN • How to use SCAN and node listeners with different ports? rac1 rac2 • Use srvctl modify scan_listener –p <newPort> LISTENER_SCAN1 … • Can you define another owner? – NO ora.SCAN1.VIP … … … • Can you define another home? – NO … … ora.LISTENER.lsnr ora.LISTENER.lsnr • Can you have more than one node listener with SCAN? – YES … … • Can the SCAN and the node listener ports differ? - YES ora.net1.network ora.net1.network • See also MOS Note 972500.1 – How to Oracle Grid Infrastructure Modify SCAN Setting or SCAN Listener Port after Installation OS OS 37 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Listeners and Instance Registration Listener changes may require instance changes • See MOS Note 220970.1 – RAC: Frequently Asked Questions • How to use SCAN and node listeners with different ports? SCAN • Whenever you change an instance parameter configuration rac1 rac2 a change to the LOCAL_LISTENER or REMOTE_LISTENER DB Instance DB Instance per database (instance) may be required. LISTENER_SCAN1 … • Note that using server-side TNSANMES aliases to ora.SCAN1.VIP … resolve the listener configuration is not recommended. … … • The use of the TNSNAMES connector string is the default: ora.LISTENER.lsnr ora.LISTENER.lsnr … … local_listener = ‘(DESCRIPTION= (ADDRESS_LIST= (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.61)(PORT=2011)) Oracle Grid Infrastructure ))' OS OS 38 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 19
  • 20. 1/20/2012 Listeners and Instance Registration EXAMPLE 1 • Taken from MOS Note 220970.1 – RAC: FAQ • How to use SCAN and node listeners with different ports? • Add additional node listeners to the system using different ports SCAN • srvctl add listener -l LISTENER2011 -p 2011 rac1 rac2 • srvctl start listener -l LISTENER2011 DB Instance DB Instance • srvctl status listener -l LISTENER2011 LISTENER_SCAN1 … • lsnrctl status LISTENER2011 ora.SCAN1.VIP … … … [GRID]> srvctl config listener ora.LISTENER.lsnr ora.LISTENER.lsnr Name: LISTENER2011 … … Network: 1, Owner: oracle Oracle Grid Infrastructure Home: <CRS home> OS OS End points: TCP:2011 39 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Listeners and Instance Registration EXAMPLE 2 • Taken from MOS Note 220970.1 – RAC: FAQ • How to use SCAN and node listeners with different ports? • Add additional node listeners to the system using different ports SCAN rac1 rac2 • New node listener does not serve any database instance DB Instance DB Instance • You must alter the LOCAL_LISTENER parameters LISTENER_SCAN1 … for each instance accordingly: ora.SCAN1.VIP … alter system set local_listener =‘ … … (DESCRIPTION= (ADDRESS_LIST= ora.LISTENER.lsnr ora.LISTENER.lsnr (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.61)(PORT=2011)))) … … ' scope=BOTH SID='OCRL1'; alter system register; Oracle Grid Infrastructure OS OS 40 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 20
  • 21. 1/20/2012 Listeners and Instance Registration EXAMPLE 3 • Taken from MOS Note 220970.1 – RAC: FAQ • How to use SCAN and node listeners with different ports? • Add additional node listeners to the system using different ports SCAN rac1 rac2 • Note: Use spaces between the various segments of the command DB Instance DB Instance • Reason: the database agent in Oracle Clusterware currently LISTENER_SCAN1 … determines whether the local_listener or remote_listener have ora.SCAN1.VIP … been manually set by a string comparison operation. … … • If the string looks unaltered it will reset these parameters ora.LISTENER.lsnr ora.LISTENER.lsnr with the default values that it determines on instance startup. … … • Slight modifications are therefore required. ER 11772838 Oracle Grid Infrastructure has been filed to allow for a more convenient mechanism. OS OS 41 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Listeners and Instance Registration Using listeners in different subnets / networks • SCAN can only operate in one network / subnet rac1 rac2 DB Instance DB Instance • If listeners in different subnets are used, LISTENER_SCAN1 … • use LISTENER_NETWORKS: ora.SCAN1.VIP … http://download.oracle.com/docs/cd/E11882_01 … … … … /server.112/e17110/initparams115.htm#REFRN10313 ora.LISTENER.lsnr ora.LISTENER.lsnr • Note: Listeners specified by the LISTENER_NETWORKS Ora.LISTENERK2.lsnr ora.LISTENERK2.lsnr parameter should not be used in the LOCAL_LISTENER and ora.net1.network ora.net1.network REMOTE_LISTENER parameters. Otherwise, cross registration will happen and connections will be redirected cross networks. ora.net2.network ora.net2.network … … Oracle Grid Infrastructure • For more information, see also MOS Note 1063571.1 – How to Configure A Second OS OS Listener on a Separate Network in 11.2 Grid Infrastructure 42 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 21
  • 22. 1/20/2012 Listeners, SCAN and Services 43 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Listeners and Service Registration A summary • Services depend on a database • Per default, the database instance will register all services it hosts with all listeners it registers with. SCAN rac1 rac2 • Services operate within the following boundaries: DB Instance DB Instance • Network (indirectly via dependency) ora.Dbname.db ora.Dbname.db • Server Pools (in policy-managed database environments) ora.Dbname.Srvcname.svc ora.Dbname.Srvcname.svc … … ora.LISTENER.lsnr ora.LISTENER.lsnr • Currently there is no support for service failover … … • Between Server Pools Oracle Grid Infrastructure • Between networks OS OS 44 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 22
  • 23. 1/20/2012 Services and Dependencies Dependency on DB and Server Pool [GRID]> srvctl config service -d ORCL -s MyService 1 Service name: MyService Service is enabled SCAN Server pool: ORCL rac1 rac2 Cardinality: 1 Disconnect: false DB Instance DB Instance Service role: PRIMARY ora.ORCL.db ora.ORCL.db ora.ORCL.MyService.svc ora.Dbname.Srvcname.svc Management policy: AUTOMATIC … … ... ora.LISTENER.lsnr ora.LISTENER.lsnr Preferred instances: ORCL_1 … … Available instances: Oracle Grid Infrastructure OS OS 45 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Services and Dependencies Start / Stop dependencies [GRID]> crsctl stat res ora.orcl.myservice.svc -p 2 ... DEFAULT_TEMPLATE=PROPERTY(RESOURCE_CLASS=service) PROPERTY(SERVICE_NAME=%GEN_SERVICE_NAME%) SCAN PROPERTY(DB_UNIQUE_NAME=CONCAT(PARSE(%NAME%, ., rac1 rac2 2), STAT(ora.orcl.db, USR_ORA_DOMAIN), .)) ELEMENT(INSTANCE_NAME=STAT(ora.orcl.db, DB Instance DB Instance GEN_USR_ORA_INST_NAME)) ora.ORCL.db ora.Dbname.db ... ora.ORCL.MyService.svc ora.Dbname.Srvcname.svc START_DEPENDENCIES=hard(ora.orcl.db,type:ora.cluster … … _vip_net1.type) weak(type:ora.listener.type) ora.LISTENER.lsnr ora.LISTENER.lsnr pullup(type:ora.cluster_vip_net1.type) … … pullup:always(ora.orcl.db) dispersion(type:ora.service.type) Oracle Grid Infrastructure STOP_DEPENDENCIES=hard(intermediate:ora.orcl.db,inte OS OS rmediate:type:ora.cluster_vip_net1.type) ... 46 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 23
  • 24. 1/20/2012 Client Connectivity 47 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Client Connectivity Direct or indirect connect • Connect Time Load Balancing (CTLB) • Connect Time Connection Failover (CTCF) • Runtime Connection Load Balancing (RTLB) • Runtime Connection Failover (RTCF) BATCH Production Email SCAN Connection Pool 48 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 24
  • 25. 1/20/2012 Client Connectivity Connect Time Connection Failover jdbc:oracle:thin:@MySCAN:1521/Email PMRAC = (DESCRIPTION = (FAILOVER=ON) (ADDRESS = (PROTOCOL = TCP)(HOST = MySCAN)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = Email))) BATCH Production Email MySCAN Connection Pool 49 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Client Connectivity Runtime Time Connection Failover PMRAC = (DESCRIPTION = (FAILOVER=ON) (ADDRESS = (PROTOCOL = TCP)(HOST = MySCAN)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = Email) ...)) BATCH Production Email MySCAN Connection Pool 50 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 25
  • 26. 1/20/2012 Client Connectivity Runtime Time Connection Failover PMRAC = (DESCRIPTION = (FAILOVER=ON) (ADDRESS = (PROTOCOL = TCP)(HOST = MySCAN)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = Email) (FAILOVER_MODE= (TYPE=select)(METHOD=basic)(RETRIES=180)(DELAY=5)))) BATCH Production Email MySCAN ? Connection Pool 51 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Client Connectivity More information • If problems occur, see: • Note 975457.1 – How to Troubleshoot Connectivity Issues with 11gR2 SCAN Name • For more advanced configurations, see: • Note 1306927.1 – Using the TNS_ADMIN variable and changing the default port number of all Listeners in an 11.2 RAC for an 11.2, 11.1, and 10.2 Database ?? BATCH Production Email MySCAN ? Connection Pool 52 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 26
  • 27. 1/20/2012 Client Connectivity Two ways to protect the client 1. Transparent Application Failover (TAF) 2. Fast Application Notification (FAN) • Tries to make the client unaware of a failure • FAN wants to inform clients ASAP • Provides means of CTCF and RTCF • Client can react to failure asap • Allows for pure ‘selects’ (reads) to continue • Expects clients to re-connect on failure (FCF) • Write transactions need to be re-issued • Sends messages about changes in the cluster • The Application needs to be TAF aware BATCH Production Email MySCAN ? Connection Pool 53 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Client Connectivity and Service Definition Define settings on the server • HA (and LB) settings [GRID]> srvctl config service -d ORCL -s MyService can be defined per service Service name: MyService • Clients connecting to the service will ... adhere to the settings considering the DTP transaction: false client used. AQ HA notifications: false Failover type: NONE BATCH Failover method: NONE Production Email MySCAN TAF failover retries: 0 TAF failover delay: 0 Connection Load Balancing Goal: LONG Runtime Load Balancing Goal: NONE TAF policy specification: BASIC 54 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 27
  • 28. 1/20/2012 Client Connectivity Use a FAN aware connection pool 1• If a connection pool is used • The clients (users) get a physical connection to the connection pool • The connection pool creates a physical connection to the database • It is a direct client to the database • Internally the pool maintains logical connections BATCH Production Connection Pool Email MySCAN 55 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Client Connectivity Use a FAN aware connection pool 2• The connection pool • Invalidates connections to one instance • Re-establishes new logical connections • May create new physical connections • Prevent new clients to be misrouted • The application needs to handle the transaction failure that might have occurred. BATCH Production Connection Pool Email MySCAN 56 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 28
  • 29. 1/20/2012 Client Connectivity The Load Balancing (LB) cases • Connect Time Load Balancing (CTLB) • Runtime Connection Load Balancing (RTLB) • On the Client Side • On the Server Side BATCH Production MySCAN Email Connection Pool 57 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Client Connectivity Connect Time Load Balancing (CTLB) – on the client side PMRAC = (DESCRIPTION = (FAILOVER=ON)(LOAD_BALANCE=ON) (ADDRESS = (PROTOCOL = TCP)(HOST = MySCAN)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = Email))) BATCH Production Email MySCAN Connection Pool 58 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 29
  • 30. 1/20/2012 Client Connectivity Connect Time Load Balancing (CTLB) – on the server side • Traditionally, PMON dynamically registers the services to the specified listeners with: • Service names for each running instance of the database and instance names for the DB • The listener is updated with the load information for every instance and node as follows: • 1-Minute OS Node Load Average all 30 secs. • Number of Connections to Each Instance • Number of Connections to Each Dispatcher BATCH Production Email MySCAN Connection Pool 59 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. ? Client Connectivity Use FAN for the Load Balancing cases • Connect Time Load Balancing (CTLB) • Connect Time Connection Failover (CTCF) • Runtime Connection Load Balancing (RTLB) RAC Database • Runtime Connection Failover (RTCF) 30% connections I’m busy Instance1 10% connections I’m very busy I’m idle Instance2 60% connections Instance3 60 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 30
  • 31. 1/20/2012 Client Connectivity Use FAN for the Load Balancing cases • Connect Time Load Balancing (CTLB) • Runtime Connection Load Balancing (RTLB) • Also via AQ (Advanced Queuing) based notifications • Background is always the Load Balancing Advisory RAC Database 30% connections I’m busy Instance1 10% connections MySCAN • For more information, see: I’m very busy • Oracle® Real Application I’m idle Instance2 Clusters Administration and Deployment Guide 11g Release 2: 5 Introduction to Automatic Workload Management 60% connections Instance3 61 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Node Membership 62 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 31
  • 32. 1/20/2012 Oracle Clusterware Architecture Node Membership Processes and Basics Public Lan Public Lan Main processes involved: Private Lan / Interconnect • CSSD (ora.cssd) Oracle Clusterware • CSSDMONITOR • was: oprocd CSSD CSSD CSSD • now: ora.cssdmonitor SAN SAN Network Network Voting Disk 63 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle Clusterware Architecture What does CSSD do? • Monitors nodes using 2 communication channels: – Private Interconnect  Network Heartbeat – Voting Disk based communication  Disk Heartbeat • Evicts (forcibly removes nodes from a cluster) nodes dependent on heartbeat Oracle Clusterware feedback (failures) CSSD “Ping” CSSD “Ping” 64 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 32
  • 33. 1/20/2012 Oracle Clusterware Architecture Interconnect basics – network heartbeat • Each node in the cluster is “pinged” every second • Nodes must respond in css_misscount time (defaults to 30 secs.) – Reducing the css_misscount time is generally not supported • Network heartbeat failures “Ping” will lead to node evictions – CSSD-log: [date / time] [CSSD][1111902528] clssnmPollingThread: node mynodename CSSD CSSD (5) at 75% heartbeat fatal, removal in 6.770 seconds 65 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle Clusterware Architecture Voting Disk basics – disk heartbeat 1 • Each node in the cluster “pings” (r/w) the Voting Disk(s) every second • Nodes must receive a response in (long / short) diskTimeout time – IF I/O errors indicate clear accessibility problems  timeout is irrelevant • Disk heartbeat failures will lead to node evictions – CSSD-log: … [CSSD] [1115699552] >TRACE: clssnmReadDskHeartbeat: CSSD CSSD node(2) is down. rcfg(1) wrtcnt(1) LATS(63436584) Disk lastSeqNo(1) “Ping” 66 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 33
  • 34. 1/20/2012 Oracle Clusterware Architecture Voting Disk basics – Structure 2 • Voting Disks contain dynamic and static data: – Dynamic data: disk heartbeat logging – Static data: information about the nodes in the cluster • With 11.2.0.1 Voting Disks got an “identity”: – E.g. Voting Disk serial number: [GRID]> crsctl query css votedisk 1. 2 1212f9d6e85c4ff7bf80cc9e3f533cc1 (/dev/sdd5) [DATA] Node information Disk Heartbeat Logging • Voting Disks must therefore not be copied using “dd” or “cp” anymore 67 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle Clusterware Architecture Voting Disk basics – Simple Majority rule 3 • Oracle supports redundant Voting Disks for disk failure protection • “Simple Majority Rule” applies: – Each node must “see” the simple majority of configured Voting Disks at all times in order not to be evicted (to remain in the cluster)  trunc(n/2+1) with n=number of voting disks configured and n>=1 CSSD CSSD “Ping” 68 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 34
  • 35. 1/20/2012 Oracle Clusterware Architecture Simple Majority rule – in extended clusters • http://www.oracle.com/goto/rac – Using standard NFS to support a third voting file for extended cluster configurations (PDF) CSSD CSSD • Same principles apply • Voting Disks are just geographically dispersed 69 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle Clusterware Architecture Voting Disks in Oracle ASM does not change their usage [GRID]> crsctl query css votedisk 1. 2 1212f9d6e85c4ff7bf80cc9e3f533cc1 (/dev/sdd5) [DATA] 2. 2 aafab95f9ef84f03bf6e26adc2a3b0e8 (/dev/sde5) [DATA] 3. 2 28dd4128f4a74f73bf8653dabd88c737 (/dev/sdd6) [DATA] Located 3 voting disk(s). • Oracle ASM auto creates 1/3/5 Voting Files – Voting Disks reside in one diskgroup only – Based on Ext/Normal/High redundancy and on Failure Groups in the Disk Group – Per default there is one failure group per disk – ASM will enforce the required number of disks – New failure group type: Quorum Failgroup 70 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 35
  • 36. 1/20/2012 Oracle Clusterware Architecture Oracle Cluster Registry (OCR) placement in Oracle ASM • The OCR is managed like a datafile in ASM (new type) • It adheres completely to the redundancy settings for the diskgroup (DG) • There can be more than one OCR location in more than one DG (DG:OCR  1:1) • Recommendation is 2 OCR locations, 1 in DATA, 1 in FRA for example 71 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle Clusterware Architecture Backup of Clusteware files is fully automatic (11.2+) • Clusterware Files (managed in ASM) enables fully Automatic Backups: • The Voting Disks are backed up into the OCR • Any configuration change in the cluster (e.g. node addition) triggers a new backup of the Voting Files. • A single, failed Voting Disks is restored by ASM automatically within a Disk Group – no action required • Note: Do not use DD to back up the Voting Disks anymore! • The OCR is backed up automatically every 4 hours • Manual Backups can be taken as required • ONLY IF all Voting Disks are corrupted or failed AND (all copies of) the OCR are also corrupted or unavailable THEN manual interference would be required – the rest is automatic. 72 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 36
  • 37. 1/20/2012 Fencing Basics Why are nodes evicted? • Evicting (fencing) nodes is a preventive measure (it’s a good thing)! • Nodes are evicted to prevent consequences of a split brain: – Shared data must not be written by independently operating nodes – The easiest way to prevent this is to forcibly remove a node from the cluster 1 2 CSSD CSSD 73 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Fencing Basics How are nodes evicted? – STONITH • Once it is determined that a node needs to be evicted, – A “kill request” is sent to the respective node(s) – Using all (remaining) communication channels • A node (CSSD) is requested to “kill itself”  “STONITH like” – “STONITH” foresees that a remote node kills the node to be evicted 1 2 CSSD CSSD 74 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 37
  • 38. 1/20/2012 Fencing Basics EXAMPLE: Network heartbeat failure • The network heartbeat between nodes has failed – It is determined which nodes can still talk to each other – A “kill request” is sent to the node(s) to be evicted  Using all (remaining) communication channels  Voting Disk(s)  A node is requested to “kill itself”; executer: typically CSSD 1 2 CSSD CSSD 2 75 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Fencing Basics What happens, if CSSD is stuck? • A node is requested to “kill itself” • See also: MOS note • BUT CSSD is “stuck” or “sick” (does not execute) – e.g.: 1050693.1 - – CSSD failed for some reason Troubleshooting 11.2 – CSSD is not scheduled within a certain margin Clusterware Node Evictions (Reboots)  OCSSDMONITOR (was: oprocd) will take over and execute 1 2 CSSD CSSDmonitor CSSD 2 CSSD 76 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 38