zOs/SQL/EXPLAIU0
--- versionen, compiles und explains eines packages -------------------
select *
from cmnbatch.plan_view0
where collid = 'UU'
and prog = 'YUU1016'
order by pcBi desc, bind_Time desc
with ur
;
--- ausgewählte Explains analysieren
select *
-- from cmnbatch.plan_view1
-- from cmnbatch.plan_view2
from cmnbatch.plan_view2Det
where collid = 'UU'
and progName = 'YUU1016'
and bind_time = '2011-08-11-12.20.58.014422'
order by collid, progName, version, bind_time,
queryno, qBlockNo, planno, mixopSeq
with ur
;
select *
from cmnbatch.plan_viewPred
where collid = 'UU'
and progName = 'YUU1016'
and bind_time = '2011-08-11-12.20.58.014422'
order by collid, progName, applName, bind_time,
queryNo, qBlockNo, planno,
stage, predNo
with ur
;