• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CRSCTL Command Examples in ASM Standalone Configurations

by admin

The CRSCTL command utility is an essential tool to master in the DBA toolbox for Clusterware maintenance and administration. It provides Clusterware monitoring functions as well as the ability to add and remove key components of the Oracle Clusterware such as adding or removing vote disks and management of Clusterware processes and resources.

With the introduction of 11GR2 (11.2 Oracle Version) ASM becomes part of the cluster and is configured and run from the Grid Infrastructure Home instead of from the RDBMS home. Because of this move officially making ASM part of the clusterware stack it is essential that the DBA become familiar with crsctl commands even if ASM is being run in a standalone non RAC configuration. This document is intended to introduce the commands and syntax needed to manage a standalone ASM configuration.

crsctl Command Examples

The CRS control (CRSCTL) utility was introduced in Oracle 10.1 and has been significantly enhanced in the later versions. It is located in $ORA_CRS_HOME/bin and must be executed by the root user. You can list the options available in CRSCTL using.

$ crsctl

1. Use the crsctl check css command to check the status of Cluster Synchronization Services. This command is most often used when Oracle Automatic Storage Management (Oracle ASM) is installed on the local server.

Syntax:

$ crsctl check css

Example:
The crsctl check css command returns output similar to the following:

CRS-4529: Cluster Synchronization Services is online

2. Use the crsctl get css command to obtain the value of a specific Cluster Synchronization Services parameter.

Syntax:

$ crsctl get css parameter

Usage Notes:

Cluster Synchronization Services parameters and their default values include:

clusterguid
diagwait
disktimeout (200 (seconds))
misscount (30 (seconds))
reboottime (3 (seconds))
priority (4 (UNIX), 3 (Windows))
logfilesize (50 (MB))

This command does not display default values. This command only affects the local server.

Example:
The crsctl get css disktimeout command returns output similar to the following:

$ crsctl get css disktimeout
CRS-4678: Successful get disktimeout 200 for Cluster Synchronization Services.

3. Use the crsctl check has command to check the status of ohasd.

Syntax:

$ crsctl check has

Example:
The crsctl check has command returns output similar to the following:

CRS-4638: Oracle High Availability Services is online

4. Use the crsctl start has command to start Oracle High Availability Services on the local server.

Syntax:

$ crsctl start has

Example:
To start Oracle High Availability Services on the local server:

# crsctl start has
crsctl stop has

5. Use the crsctl stop has command to stop Oracle High Availability Services on the local server.

Syntax:

$ crsctl stop has [-f]

Usage Notes:
This command attempts to gracefully stop resources managed by Oracle Clusterware while attempting to stop Oracle High Availability Services. If any resources that Oracle Clusterware manages are still running after you run the crsctl stop has command, then the command fails. Use the -f option to unconditionally stop all resources and stop Oracle High Availability Services.

Example:
To stop Oracle High Availability Services on the local server:

# crsctl stop has

Filed Under: ASM, oracle, RAC

Some more articles you might also be interested in …

  1. How to extend ASM disk from OS level in CentOS/RHEL
  2. What are Command Rules in oracle Database
  3. How to Change the Default Home Page of Oracle HTTP Server
  4. Understanding Oracle Database Automatic SGA Memory Tuning
  5. How to Merge Multiple Partitions in Oracle 12c
  6. FATAL: Error inserting rds_rdma
  7. ORA-65010: maximum number of pluggable databases created
  8. Queries to find out the SQL which is using these temporary tablespace
  9. Monitoring a Data Guard Broker Configuration using DGMGRL and SQL
  10. How to move a Datafile to a different Location on a Physical Standby Database

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright