当前位置:网站首页>OGG判断mgr状态并自动启动脚本
OGG判断mgr状态并自动启动脚本
2022-08-04 15:10:00 【君子不怨天】
OGG判断mgr状态并自动启动脚本
#!/bin/sh
#根据自己的环境定义ORACLE_HOME
export ORACLE_HOME=$ORACLE_HOME
export LD_LIBRARY_PATH=/goldengate/ggs:$ORACLE_HOME/lib
#根据自己的环境定义GGATE_HOME
cd $GGATE_HOME
echo 'INFO MGR' | ./ggsci > ggs_log.out
# GROUP=`cat ggs_log.out | awk '{print $1}'`
STATUS=`cat ggs_log.out | grep 'Manager is DOWN!' | awk '{print $3}'`
if [ $STATUS == "DOWN!" ] ; then
echo 'start MGR' | ./ggsci >> ggs_log.out
else
printf "MGR is running!"
fi
边栏推荐
猜你喜欢

Cisco - Small Network Topology (DNS, DHCP, Web Server, Wireless Router)

Legal education combined with VR panorama, intuitively feel and learn the spirit of the rule of law

洛谷题解P1028 数的计算

【Web技术】1401- 图解 Canvas 入门

QT笔记——QUuid了解

期货开户之前要谈好最低手续费和交返

leetcode: 253. How many meeting rooms are required at least

性能提升400倍丨外汇掉期估值计算优化案例

Flutter 运动鞋商铺小demo

CloudCompare&PCL 点云按网格划分(点云分幅)
随机推荐
Redis-哨兵模式
Next -20- 使用自定义样式 (custom style)
C# BBcode 转 Markdown
我爱七夕哈哈哈
leetcode:254. 因子的组合
leetcode:253. 至少需要多少间会议室
leetcode: 255 Verify preorder traversal sequence binary search tree
Flutter 运动鞋商铺小demo
C# TextBlock 上标
7 天找个 Go 工作,Gopher 要学的条件语句,循环语句 ,第3篇
Semaphore 基本原理
【Harmony OS】【FAQ】Hongmeng Questions Collection 2
[Beiya data recovery] IBM System Storage storage lvm information lost data recovery solution
Hangzhou Electric School Competition (Counter Attack Index)
SublimeText 粘贴图片保存到本地
Bluetooth Technology|In the first half of the year, 1.3 million charging piles were added nationwide, and Bluetooth charging piles will become the mainstream of the market
Http-Sumggling缓存漏洞分析
24、shell编程-流程控制
leetcode:255 验证前序遍历序列二叉搜索树
leetcode: 253. How many meeting rooms are required at least