Tuesday, July 9, 2019

RAC - crsctl / srvctl commands

RAC \ crsctl \srvctl commands

1 . Clusterware Resource Status\start\stop commands Check  
============================================================  
crsctl status resource -t  
crsctl status res -t  
crsctl check crs  
crsctl start\stop crs    
(or)  
#/etc/init.d/init.crs start\stop
crsctl start/stop cluster -all    csr services on all nodes of clusterware (run as root)                


2. to check\start\stop ohasd configuration\status and enable autostart (run as root)  
============================================================  
crsctl config has  
crsctl check has                                
crsctl enable has                              
crsctl disable has
crsctl start has                                
crsctl stop has        
   
 
3. Check , start\stop individual component of RAC
========================================================================
crsctl check cssd  
crsctl check crsd  
crsctl check evmd  
crsctl check oprocd  
crsctl check ctss  
#/etc/init.d/init.cssd stop\start
#/etc/rc.d/init.d/init.evmd stop\start
#/etc/rc.d/init.d/init.cssd stop\start
#/etc/rc.d/init.d/init.crsd stop\start

4. to check the votedisk informations
========================================================================
crsctl -- to get help  
crsctl query crs activeversion    
crsctl query crs softwareversion [node_name]  
#crsctl check css votedisk
#crsctl query css votedisk -- lists the voting disks used by CSS
#crsctl add css votedisk PATH
#crsctl add css votedisk PATH -force -- if Clusterware is not running
#crsctl delete css votedisk PATH
#crsctl delete css votedisk PATH -force -- if Clusterware is not running
 
 
5. Status of a single instance  
========================================================================    
srvctl status instance -d orcl -i orcl2  
   
6. Check STATUS/configuration of  service    
====================================================================  
srvctl status service -d orcl -s orcltest  
srvctl config service -d orcl  
   
7. Check STATUS/configuration of resources (database/listner/nodeapplications/asm instance)  
============================================================  
srvctl status database -d ORCL  
srvctl config database -d orcl  
srvctl status listener -l  LISTENER_NAME    
srvctl status nodeapps -n node1  
$ srvctl status asm -n node1  
srvctl config asm -n node1  
#crsctl start\stop resources -- starts Clusterware resources
./crsctl start resource ora.DATA.dg
crsctl status resource
crsctl status resource -t
crsctl stat resource -t
   
8. Display the configuration for node applications - (VIP, GSD, ONS, Listener)  
==========================================================  
srvctl config nodeapps -n node1 -a -g -s -l  
   
   
9. LISTENER STATUS Check\START\STOP\config local and scan listener    
============================================================  
ps -ef | grep tns -- to find listener name    
srvctl status listener -l  LISTENER_NAME    
srvctl start listener -l LISTENER_NAME          
srvctl stop listener -l LISTENER_NAME  
srvctl config scan_listener  
   
   
10. Start / Stop All Instances with SRVCTL  
==============================================  
srvctl start database -d orcl  
srvctl stop database -d orcl  
   
11. List all configured databases  
================================  
srvctl config database  
   
12. check status and  start/stop nodesapps  
======================================================  
srvctl status nodeapps -n rac1  
 ./crs_stat -p ora.myrac1.LISTENER_MYRAC1.lsnr  
 srvctl stop nodeapps -n rac1  
srvctl start nodeapps -n rac1 

No comments:

Post a Comment

  How to Change Instance Type & Security Group of EC2 in AWS By David Taylor Updated April 29, 2023 EC2 stands for Elastic Compute Cloud...