"RAC" uses a "PS" command to obtain information about all RAC cluster processes in the Linux environment

Source: Internet
Author: User

How to get all the information related to the RAC cluster process using just one PS command.
From the point of view of the command used is very simple, only need to use the PS command combined with grep command can be implemented. The key issue is determining which keywords to retrieve.

1. Processes related to the RAC cluster
1) General process of resident system
Ocssd.bin
Evmd.bin
Evmlogger.bin
Crsd.bin

These generic processes need to be started on a variety of platforms and database versions.

2) Unique Process
OPROCD: On UNIX platforms when the third-party cluster software is run, the process is started and the process is started on the Linux platform on the Oracle 10.2.0.4 version
Oclsvmon.bin: Process started with third-party cluster software
Oclsomon.bin: Launched on the Oracle 10.2.0.1 platform for checking the Ocssd.bin
Diskmon.bin: New process initiated for Exadata in Oracle 11.1.0.7
Oclskd.bin: This process is used to restart the node after the database instance has a hang-dead behavior in Oracle 11.1.0.6 version

Note: All of the three processes that are associated with the RAC cluster, such as Ocssd.bin, Oprocd.bin, and Oclsomon.bin, will cause the node to restart when the exception is killed or stopped, and the other process will automatically restart when there is a problem.

2. Query commands for the RAC cluster process
The RAC operating environment here is the linux,oracle version is 10.2.0.3.
We use the operating system "PS-EF | Grep-v grep | Grep-e ' init|d.bin|ocls|oprocd|diskmon|evmlogger| PID ' "(Here we use grep's-e regular expression function) command to complete our task.
This gives you a handle on the keyword information that needs to be retrieved.

After the RAC first node command executes, the display results are as follows:
[Email protected]/home/oracle$ Ps-ef | Grep-v grep | Grep-e ' init|d.bin|ocls|oprocd|diskmon|evmlogger| PID '
UID PID PPID C stime TTY time CMD
Root 1 0 0 Feb10? 00:00:06 Init [5]
Root 5666 1 0 Feb10? 01:01:52/BIN/SH/ETC/INIT.D/INIT.CSSD Fatal
Root 5668 1 0 Feb10? 00:32:18/oracle/crs/oracle/product/10.2.0/crs/bin/crsd.bin reboot
Root 6063 5666 0 Feb10? 00:00:00/BIN/SH/ETC/INIT.D/INIT.CSSD Daemon
Oracle 6090 5663 0 FEB10? 00:01:18/oracle/crs/oracle/product/10.2.0/crs/bin/evmd.bin
Oracle 6224 6189 0 FEB10? 00:03:59/oracle/crs/oracle/product/10.2.0/crs/bin/ocssd.bin
Oracle 6512 6090 0 FEB10? 00:00:03/oracle/crs/oracle/product/10.2.0/crs/bin/evmlogger.bin-o/oracle/crs/oracle/product/10.2.0/crs/evm/log /evmlogger.info-l/oracle/crs/oracle/product/10.2.0/crs/evm/log/evmlogger.log

3. Summary
The most critical part of the process of viewing the RAC cluster is to understand the process information and functionality, based on which the operating system commands are just tools.

Ext.: http://blog.itpub.net/519536/viewspace-693769/

"RAC" uses a "PS" command to obtain information about all RAC cluster processes in the Linux environment

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.