Oracle RAC background process Introduction

Source: Internet
Author: User

Oracle RAC background process Introduction

There are more processes in the Oracle RAC database than in a single instance database. These processes are unique to RAC and are set to implement cluster database functions. This article will introduce RAC-specific processes.

1. LMSn: Global Cache Service Process.

The LMSn Process maintains the data files in the Global Resource Directory (GRD) and the status of each cached block. LMSn is used to transmit messages and data blocks between RAC instances. The corresponding Service is GCS (Global Cache Service). LMS is an important part of Cache Fusion. The LMS process is the most active background process on RAC, which consumes a lot of CPU. generally, each instance has multiple LMS processes. The default number of LMS processes for each Oracle version varies. The default value for most versions is MIN (CPU_COUNT/2, 2 ))

2. LMD: Global Enqueue Service Daemon. (The corresponding service is called the GES Service)

The LMD process mainly processes resource requests sent from remote nodes and coordinates the access sequence of data blocks among multiple instances to ensure consistent data access. The process is as follows:

+ A connection sends a global enqueue request.
+ This request will be sent to the LMD0 process of the current node.
+ The foreground process will be in the waiting status.
+ LMD0 will find the master node of this resource.
+ LMD0 will send this request to the master node.
+ If necessary, a new master resource will be added to the master node.
+ At this time, you can find out who is the owner and waiter from the master node.
+ When the resource is granted to requestor, The LMD0 process of the master node will notify the LMD0 of the requestor node.
+ Then, the LMD0 of the requestor node notifies the foreground process of the resource application.

The GCS service, GES service, and GRD constitute the Cache Fusion (Cache Fusion) of RAC)

Cache convergence is the most complex part of RAC. How data blocks are transmitted between instances through the private network and how access sequence is controlled are complicated. If you are interested, you can study

In the above summary, LMD mainly processes global enqueue requests, while LCK0 mainly processes the lock of this instance.
In addition, global deadlock on RAC is also discovered by LMD.

3. LCK0: Instance Enqueue Process.

The LCK0 process mainly processes non-cache fustion resource requests, such as library and row cache requests.

LCK0 handles the lock at the instance level:
Row cache entries
Library cache entries
Result cache entries
The owner of these instance-level locks. waiter is the LCK0 process.
As long as the owner of the Instance lock is LCK0, any connection to the instance can use this cached metedata.
If the local instance does not have this lock, you need to apply for this lock, and the foreground process will wait for the DFS Lock Handle.
In addition, when the shared pool is under pressure and some memory needs to be released to store new cursor, The LCK process will release some memory of the dictionary cache.

4. LMON: Global Enqueue Service Monitor.

LMON is used to monitor the global enqueues and resources of the entire cluster, and global enqueue recovery is executed. After an exception is terminated, LMON will handle the GCS memory. When an instance joins or leaves the cluster, LMON reconfiguration the lock and resource. in other words, when a node fails, LMON is responsible for cluster reconstruction, GRD recovery, and other operations. In addition, LMON checks communication between different instances. If the other node finds that communication times out, the node eviction occurs, so many times after the node eviction (ORA-481, ORA-29740, etc.), we need to check the LMON trace to understand the cause of the eviction.

Oracle 11g installation manual on RedHat Linux 5.8 _ x64 Platform

Installing Oracle 12C in Linux-6-64

Install Oracle 11gR2 (x64) in CentOS 6.4)

Steps for installing Oracle 11gR2 in vmwarevm

Install Oracle 11g XE R2 In Debian

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.