0% found this document useful (0 votes)
13 views4 pages

Basic RAC Commands For Monitoring

CRSCTL and SRVCTL are command line utilities used for managing clusterware services and database services, respectively. CRSCTL allows users to configure, start, stop, and check the status of Oracle High Availability Services, while SRVCTL manages ASM instances and Oracle databases. Both utilities provide commands for monitoring and managing resources within an Oracle environment.

Uploaded by

Arbaz Shaikh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views4 pages

Basic RAC Commands For Monitoring

CRSCTL and SRVCTL are command line utilities used for managing clusterware services and database services, respectively. CRSCTL allows users to configure, start, stop, and check the status of Oracle High Availability Services, while SRVCTL manages ASM instances and Oracle databases. Both utilities provide commands for monitoring and managing resources within an Oracle environment.

Uploaded by

Arbaz Shaikh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

CRSCTL is a command line utilities.

It is use to manage clusterware


services.

1) To display Oracle High Availability Services automatic startup


configuration.
#> crsctl config has

2) To enable or disable automatic startup of clusterware services.


#>crsctl enable crs
#>crsctl disable crs

Note: If it is enabled then clusterware service will come up


automatically after server starts/reboot. If it is disabled then we need
to start the clusterware services manually.

3) To check the status of Oracle High Availability Services and the


Oracle Clusterware stack.
#> crsctl check crs ( For local Node )
#> crsctl check cluster –all (from any node of cluster)

4) To start the clusterware services manually.


#> crsctl start crs (for local Node)
#> crsctl start cluster -all (from any one node of the cluster)

5) To stop the clusterware services.


#> crsctl stop crs (for local Node)
#> crsctl stop cluster –all (from any one node of the cluster)
NOTE: use –f option to stop clusterware services forcefully

6) Location of Clusterware Alert log file.


GRID_HOME/log/<hostname>/

7) To check the resources are online or offline.


$>crsctl stat res –t

SRVCTL is a command line utility. It is use to manage database services.

1) To check the status of ASM instance.


$>srvctl status asm

2) To Start or Stop ASM instance.


$> srvctl start asm
$> srvctl stop asm

3) To Start or Stop ASM instance from sqlplus.


Login as grid user
export ORACLE_SID

$> sqlplus / as sysasm

Startup ;
Shut immediate;
4) To Displays the configuration information for the Oracle ASM
instance
srvctl config asm –a

5) Location of Alter log file for ASM.


$ORACLE_BASE/diag/asm/+asm/<asm_instance_name>/trace/alert_<asm_instance_name>.log)

6) Login to ASMCMD utility


$> login to grid user
$>export ORACLE_SID
$>asmcmd (press enter)

7) Query for Monitoring ASM diskgroups:


SQL > select name,state,total_mb,total_free from v$asm_diskgroup;
NOTE: From asmcmd type lsdg to get diskgroup information.

8) To check the configuration of Oracle database.


$>srvctl config database -d <database_name>

9) To Start stop Oracle Database.


$> srvctl start database –d <database name> -o nomount|mount|open
$>srvctl stop database –d <database name> -o normal | transactional
|immediate|abort

10 ) To Start or Stop particular Instance.


$> srvctl start instance –d database_name –i instance_name
$> srvctl stop instance –d database_name –i instance_name
11) To check which scan listener services is running on which
node
$>srvctl status scan_listener

12) To check status of local listener


$srvctl status listener –n node_name

13) To start|Stop local listener


$> srvctl start listener –n node_name
$> srvctl stop listener –n node_name

You might also like