Book Image

Oracle 11g R1 / R2 Real Application Clusters Handbook

Book Image

Oracle 11g R1 / R2 Real Application Clusters Handbook

Overview of this book

RAC or Real Application Clusters is a grid computing solution that allows multiple nodes (servers) in a clustered system to mount and open a single database that resides on shared disk storage. Should a single system (node) fail, the database service will still be available on the remaining nodes. RAC is an integral part of the Oracle database setup: one database, multiple users accessing it, in real time. This book will enable DBAs to get their finger on the pulse of the Oracle 11g RAC environment quickly and easily. This practical handbook documents how to administer a complex Oracle 11g RAC environment. It covers all areas of the Oracle 11g R1 RAC environment, with bonus R2 information included, and is indispensable if you are an Oracle DBA charged with configuring and implementing Oracle11g. It presents a complete method for the design, installation, and configuration of Oracle 11g RAC, ultimately enabling rapid administration of Oracle 11g RAC environments.Packed with real-world examples, expert tips, and troubleshooting advice, the book begins by introducing the concept of RAC and High Availability. It then dives deep into the world of RAC design, installation, and configuration, enabling you to support complex RAC environments for real-world deployments. Chapters cover RAC and High Availability, Oracle 11g RAC Architecture, Oracle 11g RAC Installation, Automatic Storage Management, Troubleshooting, Workload Management, and much more. By following the practical examples in the book, you will learn every concept of the RAC environment and how to successfully support complex Oracle 11g R1 and R2 RAC environments for various deployments in real-world situations.
Table of Contents (20 chapters)
Oracle 11g R1/R2 Real Application Clusters Handbook
Credits
About the Authors
About the Reviewers
Preface

Clusterware startup sequence for Oracle 11gR2


Understanding how the clusterware startup occurs is critical to the diagnosis and resolution of Oracle RAC problems.

In Unix and Linux operating systems, there is a master daemon process called INIT that functions to start up additional system background processes. The INIT process first spawns the init.ohasd process, which in turn starts up the Oracle High Availability Services Daemon (OHASD). In turn, the OHASD daemon then spawns additional Clusterware processes at each startup level as shown next:

  • Level 1 - OHASD spawns:

    • Cssdagent: Agent responsible for spawning CSSD

    • Orarootagent: Agent responsible for managing all root-owned ohasd resources

    • Oraagent: Agent responsible for managing all Oracle-owned ohasd resources

    • cssdmonitor: Monitors CSSD and node health (along wth the cssdagent)

  • Level 2 - OHASD rootagent spawns:

    • Cluster Ready Services Daemon (CRSD) primary daemon responsible for managing cluster resources

    • Cluster Time Synchronization Services Daemon (CTSSD)

    • Diskmon provides disk monitoring services

    • ASM Cluster File System (ACFS) Drivers

During the second level of startup for Clusterware, the oraagent spawns the following Clusterware processes for 11gR2:

  • MDNSD: Used for DNS lookup

  • GIPCD: Used for inter-process and inter-node communication

  • GPNPD: Grid Plug and Play Profile Daemon

  • EVMD: Event Monitor Daemon

  • ASM: Resource for monitoring ASM instances

  • Level 3 CRSD spawns:

    • orarootagent: Agent responsible for managing all root-owned CRSD resources

    • oraagent: Agent responsible for managing all Oracle-owned CRSD resources

  • Level 4 CRSD rootagent spawns:

    • Network resource: To monitor the public network

    • SCAN VIP(s): Single Client Access Name Virtual IPs

    • Node VIPs: One per node

    • ACFS Registery: For mounting ASM Cluster File system

    • GNS VIP (optional): VIP for GNS

During this phase for Clusterware startup with 11gR2, the oraagent spawns the following processes:

  • ASM Resouce: ASM Instance(s) resource

  • Diskgroup: Used for managing/monitoring ASM diskgroups

  • DB Resource: Used for monitoring and managing the DB and instances

  • SCAN Listener: Listener for single client access name, listening on SCAN VIP

  • Listener: Node listener listening on the Node VIP

  • Services: Used for monitoring and managing services

  • ONS: Oracle Notification Service

  • eONS: Enhanced Oracle Notification Service

  • GSD: For 9i backward compatibility

  • GNS (optional): It is a grid naming service that performs name resolution

In order to view these processes, you can issue the ps command for Linux and Unix. The following diagram shows the startup sequence for the Oracle 11gR2 clusterware:

A more detailed breakdown of the Clusterware sequence for 11gR2 is displayed in the following image: