OraMatt: YABAOracle

Yet Another Blog About Oracle

Script to START all RAC clones on a cluster


#!/bin/bash -x
#
#
# Matt D 6/15/2011
#
# Start all RAC databases in your cluster
#
#
#
clear
echo "----------------------------------------"
echo "This script will start all RAC databases"
echo "as found in /etc/oratab across the cluster."
echo "Would you like to continue? "
echo "Enter yes or no"
read DOWHAT
if [[ $DOWHAT = no ]]; then
	exit 1
fi
echo "----------------------------------------"


for i in `cat  /etc/oratab | cut -d : -f1`
do srvctl start database -d ${i}
done


clear
sleep 5
echo "Current running RAC databases"
ps -ef | grep pmon | cut -d _ -f3

Leave a comment

Navigation

About

I’m Matt and I do Oracle things.