Oracle RAC 集群启动与停止

Oracle RAC 启动时,需要使用 root 用户执行,为了方便,写了启动和停止的脚本,

将该脚本放到 /root/bin ,因为bin 目录本身就在环境变量里,所以使用时直接root用户运行脚本即可

1. 启动脚本 start_oracle_all.sh

#!/bin/sh

echo "start oracle RAC..."
/u01/app/11.2.0/grid/bin/crs_start -all

echo "start finished ... "



2. 停止脚本 stop_oracle_all.sh

#!/bin/sh

echo "stop oracle RAC..."
/u01/app/11.2.0/grid/bin/crs_stop -all

echo "stop finished ... "




原文地址:https://www.cnblogs.com/moonciki/p/8145827.html