- 论坛徽章:
- 0
|
各位informix大师,小弟麻烦你们帮我检查我的系统到底出了什么问题。
我通过系统调用分步执行两个shell程序11_1.sh及11_2.sh,
sh程序中涉及四个数据表
saacn(记录数 740000),
saamt(记录数 750000),
zhdzb(记录数 1040000),
tdacn(记录数 450000),
机器是联想T270 G5,双至强CPU,2G内存,2x146G SCSI硬盘,安装SCOUNIX5.06
及ids 7.31 UC7.
程序在执行到11_2.sh的第二个unload语句时online就dump下来。现附上压缩的af文件及
两个sh程序,请大师们帮忙查找原因,谢谢。
11_1.sh文件
dbaccess dcc - <<! 1>/tmp/stdcc_mng.log 2>/tmp/stdcc_mng.log
unload to $TEMPDIR/dg_sa.txt select b.opac_instn_no,c.zh,b.cust_no,b.cust_name,
a.acct_bal from saamt a,saacn b,zhdzb c where a.acct_no=b.acct_no
and a.acct_no=c.acct_no and a.ddp_acct_sts<>"3" and a.sleep_sts="0" and
a.acct_no[13,14] in ("25" ,"42","62") and a.acct_no[1,9]= "123456789"
and a.acct_bal>= 0.001 order by c.zh;
unload to $TEMPDIR/dg_td.txt select a.opac_tlr_no[1,9],b.zh,a.psbk_no_n,a.cust_no,
a.cust_name,a.actu_amt,a.opac_dt from tdacn a,zhdzb b
where a.acct_no=b.acct_no and a.acct_sts<>"1" and
a.acct_no[13,14] in ("41","61") and
a.acct_no[1,9]= "123456789" and
a.actu_amt>= 0.001
order by b.zh;
!
T=`awk '{ print substr($0,5) }' /tmp/stdcc_mng.log | grep "Error" | head`
if [ -z "$T" ]
then
exit 0
else
exit 1
fi
11_2.sh文件
dbaccess dcc - <<! 1>/tmp/stdcc_mng.log 2>/tmp/stdcc_mng.log
unload to $TEMPDIR/ds_sa.txt select b.opac_instn_no,c.zh,b.cust_no,b.cust_name,
a.acct_bal from saamt a,saacn b,zhdzb c where a.acct_no=b.acct_no
and a.acct_no=c.acct_no and a.ddp_acct_sts<>"3" and a.sleep_sts="0" and
a.acct_no[13,14] in ("27" ,"28","34") and a.acct_no[1,9]= "123456789"
and a.acct_bal>= 0.001 order by c.zh;
unload to $TEMPDIR/ds_td.txt select a.opac_tlr_no[1,9],b.zh,a.psbk_no_n,a.cust_no,
a.cust_name,a.actu_amt,a.opac_dt from tdacn a,zhdzb b
where a.acct_no=b.acct_no and a.acct_sts<>"1" and
a.acct_no[13,14] in ("27","28","34") and
a.acct_no[1,9]= "123456789" and
a.actu_amt>= 0.001
order by b.zh;
!
T=`awk '{ print substr($0,5) }' /tmp/stdcc_mng.log | grep "Error" | head`
if [ -z "$T" ]
then
exit 0
else
exit 1
fi
[ 本帖最后由 stxrh 于 2005-11-6 13:19 编辑 ] |
-
-
AF.rar
23.46 KB, 下载次数: 55
压缩af文件
|