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