@echo off
echo %time%>t1.txt
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_RAU.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_TCP.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_CELLTRAFFIC.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_UDP.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_WTP.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_QOS.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_TCPCONN.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_TCPSOCKET.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_MSCAPABILITY.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_FLOWCTRLIMSI.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_SM.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_IMEI.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_MMS.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_HTTPINFO.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_FLOWCTRLCELL.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_RADIOSTATUS.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_CELLRESELECT.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_WSPCONN.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_CELLSTATUS.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_TCPCROWD.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_GMM.ctl errors=9999 direct=y 
start sqlldr userid=admin/[email protected]/wda2g control=./TMP/TBL_TMP_WSPINFO.ctl errors=9999 direct=y 
echo %time%>t2.txt需求是要并发执行上面代码段的22个sqlldr命令,并监控所有sqlldr命令都已完成,里面t1.txt和t2.txt记录的时候只是调用开始和调用结束的时间,并没有真正记录sqlldr完成的时间,不知道能不能在bat批处理里获取到sqlldr的完成时间。
自己想过一个思路就是:sqlldr命令本身会对应的生成一个日志文件,当sqlldr未完成时,该日志文件还是处于读写状态不能删除,然后有bat命令去判断所有的sqlldr日志文件是否可以删除,若可以删除则表示所有sqlldr命令执行已完成。但是鉴于自己对bat不熟悉,此方法未能实现也不知道是否可行。sqlldr并发完成状态