Wednesday, June 15

Oracle Enterprise Manager and Real Application Cluster

Oracle Enterprise Manager and Real Application Cluster
some useful commands 

Status of the services: crs_stat -t
 
Stop the instance: srvctl stop  instance –d mydb –i mydb1 –o immediate

Start the instance: srvctl start instance –d mydb –i mydb2

Find cluster name: CRS_HOME/bin/cemutlo -n 


Script to see the services in formated:
crs_stat -l  | \
awk ' { if ( $0 ~ /NAME/ ) printf "%-45s", $1 ;
if ( $0 ~/TYPE|TARGET/ )printf "%-20s", $1; if ( $0 ~ /STATE/) print $0 } '\
 | sort +1


0 comments:

Post a Comment