export ORAENV_ASK=NO
export ORACLE_SID=+ASM
. oraenv
echo " "
echo "enabling has and checking status"
echo " "
crsctl enable has
crsctl start has
crsctl check has
echo " "
echo "listener status before start"
echo " "
srvctl status listener
echo " "
echo "asm/diskgroup status before start"
echo " "
srvctl status diskgroup -g DATA1_T3
srvctl status asm
echo " "
echo "db status before start"
echo " "
srvctl status database -d db1
srvctl status database -d db2
echo " "
echo "Now starting grid home components"
echo " "
srvctl start home -o /ora01/GRID -s /ora01/state_file/gridhome_state
echo " "
echo "asm/diskgroup/listener status after start"
echo " "
srvctl status diskgroup -g DATA1_T3
srvctl status asm
srvctl status listener
echo " "
echo "Now starting db"
echo " "
srvctl start database -d db1
srvctl start database -d db2
echo " "
echo "Status after start..."
echo " "
srvctl status database -d db1
srvctl status database -d db2
No comments:
Post a Comment