Reports2017-11-18T12:27:27+00:00

INV Item Import Performance

Description
Categories: DBA, Enginatics, Manufacturing
Performance of inventory item background processes (usually INCOIN) by looking at the number of items created and the run time of the corresponding concurrent request.
If the number of items processed per second is decreasing with increasing total items processed, then the interface SQLs are most likely using a wrong non selective index on mtl_system_items_interface.

select
x.request_id,
x.program,
x.description,
x.requested_by,
x.created_by,
x.actual_start_date,
x.actual_completion_date,
x.seconds,
xxen_util.time(x.seconds) time,
x.item_count,
x.total_item_count,
round(x.item_count/xxen_util.zero_to_null(x.seconds),3) items_per_second,
round(x.total_item_count/xxen_util.zero_to_null(x.seconds),2) total_items_per_second,
x.min_creation_date
from
(
select distinct
msib.request_id,
case when fcr.program_application_id=160 and fcr.concurrent_program_id=20392 /*alecdc*/ or fcr.request_type='M' then fcr.description else fcpt.user_concurrent_program_name end program,
fcr.description,
xxen_util.user_name(fcr.requested_by) requested_by,
xxen_util.user_name(msib.created_by) created_by,
fcr.actual_start_date,
fcr.actual_completion_date,
(nvl(fcr.actual_completion_date,sysdate)-fcr.actual_start_date)*86400 seconds,
count(distinct msib.inventory_item_id) over (partition by msib.created_by, msib.request_id) item_count,
count(*) over (partition by msib.created_by, msib.request_id) total_item_count,
min(msib.creation_date) over (partition by msib.created_by, msib.request_id) min_creation_date
from
mtl_system_items_b msib,
fnd_concurrent_requests fcr,
fnd_concurrent_programs_tl fcpt
where
1=1 and
msib.request_id=fcr.request_id and
fcr.program_application_id=fcpt.application_id(+) and
fcr.concurrent_program_id=fcpt.concurrent_program_id(+) and
fcpt.language(+)=userenv('lang')
) x
where
2=2
order by
x.request_id desc

Parameter Name SQL text Validation
Min Total Item Count
x.total_item_count>=:min_total_item_count
Number
Past Days
msib.creation_date>=sysdate-:past_days
Number

By continuing to use the site, you agree to the use of cookies. Accept