#!/bin/sh
remoteIp=`grep DB file |awk -F ' ' '{print $2}'|tr -d ' '`
echo "remoteIp is :$remoteIp"
scp mdndb.sh $remoteIp:/home/oracle/
ssh $remoteIp "chown oracle:oinstall /home/oracle/db.sh;chmod +x /home/oracle/db.sh"
ssh $remoteIp "
su - oracle -c \"
sh /home/oracle/db.sh rollback
\"
"
Shell脚本远程回滚数据库
最新推荐文章于 2022-07-10 20:13:33 发布