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 ... "




相关文章:

  • 2022-01-29
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-11-17
  • 2020-01-13
猜你喜欢
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-02-20
  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案