LINUX 自动备份程序日志(shell)
定期备份脚本案列用tar压缩7天前日志删除7天压缩完日志删除压缩完356天前日志#!/bin/bash#delete expire log#script name drop_log#script default remove 7 day log and remove remove archived a year ago#make date 2015/06/15result_client=`find /orafile/app/smsclient/runlogs/ -mtime +7 -name "*log....
(Datagurad)监控脚本
dg监控脚本<br />功能<p><span style="font-family:宋体;">邮箱告警,</span><span>primary</span><span style="font-family:宋体;">服务器宕机,数据库被关闭,</span><span>datagurad</span><span style="font-family:宋体;">服务器不同步</span><span>standby</span><span style="font-family:宋体;">就会发起告警邮...
Shell磁盘空间和表空间告警程序
把下面内容添加到文件夹里面/etc/mail.rcset from=1423646477@139.comset smtp=smtp.139.comset smtp-auth=loginset smtp-auth-user=253645765878@139.comset smtp-auth-password=2015set ssl-verify=ignore这下面脚本#!/bin/bash#More than 80% the alarm#Contents are saved to disk/home/oracle/disk.log...
自动启动ORACLE Script Service
一切只为了做的更好All just to do betterSCRIPT NAME:oracle#!/bin/bash# chkconfig: 345 99 10# description: script for the Oracle Instance, Listener ## Set ORA_HOME to be equivalent to the $ORACLE_HOME# from which you wish to execute dbstart and dbshut;## Set ORA_OWNER to the user id of the...
自动化RMAN脚本
#!/bin/bash# chkconfig: 345 99 10# description: script for the SMS MESSAGE OR Oracle Instance, Listener#Choose to run the script by week#The script will automatically choose the backup level#software make : muxinqingtime=$(date +%A)ora=$(ps -aux | grep ora | grep -v "grep" | wc -l)ca...
autoswitch Datagurad script
分享给有需要的人下面脚本通过网络判断主机是否被关机来执行自动切换autoswitch Datagurad scriptautodg.sh#!/bin/bashif [ -f ~/.bashrc ]; then . ~/.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/binumask 022PATH=/bin:/usr/bi...