caodc1
29th July 2004, 04:38
I have a script as below. It was OK before this Monday.
But now every time I ran it, it hung on the "Select" before doing anything.
Do you have any concern?
Thanks in advance.
db.retry.point()
select tdsls045.*, tdsls040.*, tdsls041.*, tccom010.*
from tdsls045 for update, tdsls040, tdsls041, tccom010
where ( tdsls045._index1 = {:orno.1} or
tdsls045._index1 = {:orno.2} or
tdsls045._index1 = {:orno.3} or
tdsls045._index1 = {:orno.4} or
tdsls045._index1 = {:orno.5} or
tdsls045._index1 = {:orno.6} or
tdsls045._index1 = {:orno.7} or
tdsls045._index1 = {:orno.8} or
tdsls045._index1 = {:orno.9} or
tdsls045._index1 = {:orno.10} )
and tdsls045.ssls = :stno.4403
and tdsls045.ddat inrange :ddat.f and :ddat.t
and tdsls045.pino inrange :pino.f and :pino.t
and tdsls045.dqua <> 0
and tdsls045.orno refers to tdsls040 unref skip
and tdsls040.crte inrange :crte.f and :crte.t
and tdsls040.comp inrange :comp.f and :comp.t
and not (tdsls040.bkyn = tcyesno.yes and :blcs = :prog.name$)
and tdsls045.cmba refers to tdsls041 unref skip
and tdsls045.cuno refers to tccom010 unref skip
and tccom010.cnpa <> tccnpa.blocked
order by tdsls045.ssls, tdsls045.cuno, tdsls045.orno,
tdsls045.pono, tdsls045.srnb
with retry
selectdo
But now every time I ran it, it hung on the "Select" before doing anything.
Do you have any concern?
Thanks in advance.
db.retry.point()
select tdsls045.*, tdsls040.*, tdsls041.*, tccom010.*
from tdsls045 for update, tdsls040, tdsls041, tccom010
where ( tdsls045._index1 = {:orno.1} or
tdsls045._index1 = {:orno.2} or
tdsls045._index1 = {:orno.3} or
tdsls045._index1 = {:orno.4} or
tdsls045._index1 = {:orno.5} or
tdsls045._index1 = {:orno.6} or
tdsls045._index1 = {:orno.7} or
tdsls045._index1 = {:orno.8} or
tdsls045._index1 = {:orno.9} or
tdsls045._index1 = {:orno.10} )
and tdsls045.ssls = :stno.4403
and tdsls045.ddat inrange :ddat.f and :ddat.t
and tdsls045.pino inrange :pino.f and :pino.t
and tdsls045.dqua <> 0
and tdsls045.orno refers to tdsls040 unref skip
and tdsls040.crte inrange :crte.f and :crte.t
and tdsls040.comp inrange :comp.f and :comp.t
and not (tdsls040.bkyn = tcyesno.yes and :blcs = :prog.name$)
and tdsls045.cmba refers to tdsls041 unref skip
and tdsls045.cuno refers to tccom010 unref skip
and tccom010.cnpa <> tccnpa.blocked
order by tdsls045.ssls, tdsls045.cuno, tdsls045.orno,
tdsls045.pono, tdsls045.srnb
with retry
selectdo