oracle检查备份,oracle 备份,表空间检查shell脚本代码

#!/bin/ksh

#****************************************************************************

#

# (C) Copyright CPIC. 2008

#

# File name:    check_db_alert.sh

# Project:      Database Alerts Check

#

# Parameter : app_name -- name of db application(=oracle_sid)

#         ipaddress -- ip of the db server

#

# Creation Date:        Aug 19, 2008

# Origin Author:        Shangkun Peng

#

#

# Prerequisites:

# before using this shell script, directory $DAILY_CHECK must be created

# and this shell script should be put into it.

# for each application, environment file $DBENVFILE must be put into it.

# also, variables for auto ftp must be set

#

# Limitations:

# this shell script can be run at most once an hour

# additional job can be added but variable JOB_LIST must be modified

# and relative function must be coded too

#

#****************************************************************************

# record start date and time

echo "------------------------------------------------------------"

echo "database information collect started at:"; date

# check necessary parameter(s)

if [ $# -ne 2 ]

then

echo "ERROR: parameter(s) not supplied correctly"

echo "USAGE: check_db_alert.sh app_name ipaddress"

echo "WHERE:"

echo "app_name -- name of db application"

echo "ipaddress -- ip of the db server"

exit 1

fi

# -----------------------------------------------------------------------------------------------------------

# DEFINE VALUES FOR VARIABLES IN THIS SHELL

# general variables, can not be modified

APP_NAME=$1     # name of db application

IPADDRESS=$2     # ip of db server

DAILY_CHECK=/tmp/db_dailycheck   # directory for information collection of db application

DBENVFILE=$APP_NAME".dbenv"&

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值