dmpfilepath='./'
connfile=report.ini
configtable=configtable.ini
DT=$1
while [ ! -r ${dmpfilepath}${DT}.*.dmp ]
do
if [ -n "$DT" ]
then
ll -rt ${dmpfilepath}*.dmp | tail -20
fi
echo "Please input dmp's basename:\c"
read DT
done
#检查连接串正确性
checkconn()
{
if [ "$#" -ne 1 ]
then
echo "-1"
exit
fi
VALUE=`sqlplus -s /nolog <
set head off
conn $dbconn
select 1 from dual;
exit
EOF`
echo $VALUE
}
#将密码写入配置文件
modipswd()
{
if [ "$#" -ne 2 ]
then
echo "-1"
exit
fi