当前位置:网站首页>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
边栏推荐
- Find My Technology | Prevent your pet from getting lost, Apple Find My technology can help you
- Cisco - Small Network Topology (DNS, DHCP, Web Server, Wireless Router)
- 1403. 非递增顺序的最小子序列
- Zheng Qing freshmen school competition and middle-aged engineering selection competition
- Android Sqlite3 basic commands
- 7 天找个 Go 工作,Gopher 要学的条件语句,循环语句 ,第3篇
- RTC 场景下的屏幕共享优化实践
- C语言写简单三子棋
- leetcode: 250. Count subtrees of equal value
- leetcode: 255 Verify preorder traversal sequence binary search tree
猜你喜欢

输入输出流总结

蓝牙技术|上半年全国新增 130 万台充电桩,蓝牙充电桩将成为市场主流

2022 Hangzhou Electric Multi-School 4

leetcode: 255 Verify preorder traversal sequence binary search tree

Why, when you added a unique index or create duplicate data?

2022年7月国产数据库大事记-墨天轮

uni-app 从零开始-生命周期(二)

##ansible自动化运维架构与简介

CloudCompare&PCL 点云按网格划分(点云分幅)

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
随机推荐
IP第十七天笔记
leetcode:250. 统计同值子树
leetcode:259. 较小的三数之和
程序猿七夕礼物-如何30分钟给女朋友快速搭建专属语聊房
卖家寄卖流程梳理
Compound Refractive Lenses for X-ray Focusing
洛谷题解P1028 数的计算
Latex 去掉行号
Go 语言快速入门指南: 变量和常量
Nuget 通过 dotnet 命令行发布
CloudCompare&PCL 点云按网格划分(点云分幅)
Http-Sumggling缓存漏洞分析
QT笔记——Q_INVOKABLE了解
Google plug-in. Download contents file is automatically deleted after solution
24、shell编程-流程控制
IP第十六天笔记
I/O stream summary
手搓一个“七夕限定”,用3D Engine 5分钟实现烟花绽放效果
C# 谁改了我的代码
属于程序猿的浪漫