The following lines contain the word 'select', 'insert', 'update' or 'delete':
l_tmpclcode_va.delete;
l_tmpclcodecnt_va.delete;
l_tmpclsumovn_va.delete;
l_tmpclminesd_va.delete;
l_tmpclmineed_va.delete;
select ERROR_MESSAGE_CODE,
max(person_id) mx_perid,
count(*) cnt
from ben_reporting
where benefit_action_id = c_bft_id
and ERROR_MESSAGE_CODE is not null
group by ERROR_MESSAGE_CODE
order by count(*) desc;
select bft.last_update_date
from ben_benefit_actions bft
where bft.benefit_action_id = c_bft_id;
select pil.ler_id,
pil.LF_EVT_OCRD_DT
from ben_per_in_ler pil
where pil.per_in_ler_id =
(select max(pil1.per_in_ler_id)
from ben_per_in_ler pil1
where pil1.person_id = pil.person_id
and pil1.PER_IN_LER_STAT_CD not in ('VOIDD','BCKDT')
)
and pil.person_id = c_per_id
and pil.ler_id = c_ler_id;
select rbv.rollup_code,
rbv.rollup_count,
rbv.rollup_sumovn,
rbv.rollup_minesd,
rbv.rollup_mineed,
rbv.rollup_id_string
from ben_rollup_rbv_summary rbv,
ben_batch_actions pba
where pba.batch_id = c_bft_id
and rbv.batch_action_id = pba.batch_action_id
and rbv.rollup_count > 0
order by rbv.rollup_id;
select bft.benefit_action_id,
bft.mode_cd,
bft.process_date,
bft.last_update_date,
bft.business_group_id,
bft.BENFTS_GRP_ID,
bft.person_id,
bft.pgm_id,
bft.pl_id,
bft.COMP_SELECTION_RL,
bft.AUDIT_LOG_FLAG,
bft.VALIDATE_FLAG,
bft.LF_EVT_OCRD_DT
from ben_benefit_actions bft
where bft.last_update_date > c_bft_credt-c_duration
and bft.last_update_date < c_bft_credt
and bft.mode_cd = c_mode_cd
and bft.process_date = c_process_date
and bft.business_group_id = c_bgp_id
and nvl(bft.ler_id,-1) = nvl(c_ler_id,-1)
and nvl(bft.person_id,-1) = nvl(c_per_id,-1)
and nvl(bft.pgm_id,-1) = nvl(c_pgm_id,-1)
and nvl(bft.pl_id,-1) = nvl(c_pl_id,-1)
and nvl(bft.opt_id,-1) = nvl(c_opt_id,-1)
and nvl(bft.BENFTS_GRP_ID,-1) = nvl(c_bfg_id,-1)
and bft.VALIDATE_FLAG = 'B'
and exists
(select 1
from ben_batch_actions pba
where pba.batch_id = bft.benefit_action_id
)
order by bft.benefit_action_id desc;
select bgp.name
from per_business_groups bgp
where bgp.business_group_id = c_bgp_id;
select per.full_name
from per_all_people_f per
where per.person_id = c_per_id;
select pgm.name
from ben_pgm_f pgm
where pgm.pgm_id = c_pgm_id;
select pln.name
from ben_pl_f pln
where pln.pl_id = c_pl_id;
select ler.name
from ben_ler_f ler
where ler.ler_id = c_ler_id;
select opt.name
from ben_opt_f opt
where opt.opt_id = c_opt_id;
select text
from ben_reporting
where benefit_action_id = c_bft_id
and text like '%ORA-%'
order by THREAD_ID, REPORTING_ID;
select adf.FILENAME,
adv.VERSION,
adv.last_update_date
from ad_files adf,
AD_FILE_VERSIONS adv
where adf.file_id = adv.file_id
and adf.LAST_UPDATE_DATE >
(select bft.last_update_date
from ben_benefit_actions bft
where bft.benefit_action_id = c_basebft_id)
and adf.LAST_UPDATE_DATE <
(select bft.last_update_date
from ben_benefit_actions bft
where bft.benefit_action_id = c_bft_id)
and adf.APP_SHORT_NAME = 'BEN'
and adf.SUBDIR = 'patch/115/sql'
order by adv.last_update_date desc;
select adb.APPLICATION_SHORT_NAME,
adb.BUG_NUMBER,
adb.last_update_date
from ad_bugs adb
where adb.LAST_UPDATE_DATE >
(select bft.last_update_date
from ben_benefit_actions bft
where bft.benefit_action_id = c_basebft_id)
and adb.LAST_UPDATE_DATE <
(select bft.last_update_date
from ben_benefit_actions bft
where bft.benefit_action_id = c_bft_id)
and adb.APPLICATION_SHORT_NAME = 'BEN'
order by adb.last_update_date desc;
select rep.person_id
from ben_reporting rep
where rep.benefit_action_id = c_bft_id
and rep.ERROR_MESSAGE_CODE = c_err_cd;
select bpi.ELPSD_TM
from BEN_BATCH_PROC_INFO bpi
where bpi.benefit_action_id = c_bft_id;
select count(*)
from ben_person_actions
where benefit_action_id = c_bft_id
and action_status_cd = 'P';
select count(*)
from ben_person_actions
where benefit_action_id = c_bft_id
and action_status_cd = 'E';
select count(*)
from ben_person_actions
where benefit_action_id = c_bft_id
and action_status_cd = 'U';
select bbr.last_update_login,
bft.creation_date,
max(bbr.last_update_date) max_lud,
count(*) cnt,
round((max(bbr.last_update_date)-bft.creation_date)*(24*3600),2) tot_secs,
round(((max(bbr.last_update_date)-bft.creation_date)*(24*3600))/count(*),2) avg_secs
from ben_batch_ranges bbr,
ben_benefit_actions bft
where bbr.benefit_action_id = c_bft_id
and bbr.benefit_action_id = bft.benefit_action_id
group by bbr.last_update_login,
bft.creation_date
order by count(*) desc;
select ccr.request_id,
ccr.ORACLE_PROCESS_ID,
ccr.ORACLE_SESSION_ID,
ccr.PARENT_REQUEST_ID,
ccr.phase_code,
ccr.status_code,
substr(replace(replace(ccr.completion_text,fnd_global.local_chr(10),' ')
,fnd_global.local_chr(13),' '),1,1000),
count(*)
from fnd_concurrent_requests ccr,
ben_benefit_actions bft,
ben_batch_ranges bbr
where ccr.parent_request_id = bft.request_id
and bbr.last_update_login = ccr.last_update_login
and bft.benefit_action_id = bbr.benefit_action_id
and bft.benefit_action_id = c_bft_id
group by ccr.request_id,
ccr.ORACLE_PROCESS_ID,
ccr.ORACLE_SESSION_ID,
ccr.PARENT_REQUEST_ID,
ccr.phase_code,
ccr.status_code,
substr(replace(replace(ccr.completion_text,fnd_global.local_chr(10),' ')
,fnd_global.local_chr(13),' '),1,1000);
select ccr.request_id,
ccr.ORACLE_PROCESS_ID,
ccr.ORACLE_SESSION_ID,
ccr.PARENT_REQUEST_ID,
ccr.phase_code,
ccr.status_code,
substr(replace(replace(ccr.completion_text,fnd_global.local_chr(10),' ')
,fnd_global.local_chr(13),' '),1,1000),
count(*)
from fnd_concurrent_requests ccr,
ben_benefit_actions bft
where ccr.request_id = bft.request_id
and bft.benefit_action_id = c_bft_id
group by ccr.request_id,
ccr.ORACLE_PROCESS_ID,
ccr.ORACLE_SESSION_ID,
ccr.PARENT_REQUEST_ID,
ccr.phase_code,
ccr.status_code,
substr(replace(replace(ccr.completion_text,fnd_global.local_chr(10),' ')
,fnd_global.local_chr(13),' '),1,1000);
select text,
max(person_id) mx_perid,
count(*) cnt
from ben_reporting
where benefit_action_id = c_bft_id
and text like '%ORA-%'
group by text
order by count(*) desc;
l_reptext_va.delete;
||' and bft.last_update_date '
||' between :st_date and :end_date ';
l_sel_str := ' select bft.benefit_action_id, '
||' bft.business_group_id, '
||' bft.person_id, '
||' bft.ler_id, '
||' bft.process_date ';
l_where_str := ' where bft.last_update_date '
||' between :st_date and :end_date '
||' and pba.batch_id = bft.benefit_action_id '
||' and pba.batch_type = '||''''||'BEN_BFT'||'''';
l_sql_str := 'select max(bft.benefit_action_id) max_bftid, '
||' bft.process_date, '
||' bft.mode_cd, '
||' bft.business_group_id, '
||' bft.BENFTS_GRP_ID, '
||' bft.person_id, '
||' bft.pgm_id, '
||' bft.pl_id, '
||' bft.ler_id, '
||' bft.opt_id, '
||' max(bft.creation_date) max_credt, '
||' max(bft.request_id) '
||' from ben_benefit_actions bft, '
||' ben_batch_actions pba '
||' '||l_where_str
||' group by bft.process_date, '
||' bft.mode_cd, '
||' bft.business_group_id, '
||' bft.BENFTS_GRP_ID, '
||' bft.person_id, '
||' bft.pgm_id, '
||' bft.pl_id, '
||' bft.ler_id, '
||' bft.opt_id '
||' order by max(bft.benefit_action_id) desc ';
,p_comp_selection_rl => null
,p_person_selection_rl => null
,p_ler_id => null
,p_organization_id => null
,p_benfts_grp_id => null
,p_location_id => null
,p_pstl_zip_rng_id => null
,p_rptg_grp_id => null
,p_pl_typ_id => null
,p_opt_id => null
,p_eligy_prfl_id => null
,p_vrbl_rt_prfl_id => null
,p_legal_entity_id => null
,p_payroll_id => null
,p_debug_messages_flag => 'N'
,p_audit_log_flag => 'N'
,p_lmt_prpnip_by_org_flag => 'N'
,p_request_id => fnd_global.conc_request_id
,p_program_application_id => fnd_global.prog_appl_id
,p_program_id => fnd_global.conc_program_id
,p_program_update_date => sysdate
,p_object_version_number => l_thnbft_ovn
,p_lf_evt_ocrd_dt => null
,p_effective_date => null
--
,p_benefit_action_id => l_thnbft_id
);
l_ccrerrcomptxt_va.delete;
l_ccrhanderrcomptxt_va.delete;
g_alertsev1reas_va.delete;
g_alertsev1bftid_va.delete;
g_alertsev1prevbftid_va.delete;
g_alertsev2reas_va.delete;
g_alertsev2bftid_va.delete;
g_alertsev1reas_va.delete;
g_alertsev1bftid_va.delete;
g_alertsev1prevbftid_va.delete;
g_alertsev2reas_va.delete;
g_alertsev2bftid_va.delete;
l_mmclccode_va.delete;
l_mmoclcount_va.delete;
l_mmnclcount_va.delete;
l_mtclccode_va.delete;
l_mtoclcount_va.delete;
l_mtnclcount_va.delete;
l_mmrltyp_rbvclcd_va.delete;
||' Time: '||to_char(row.LAST_UPDATE_DATE,'DD-MON-YYYY-HH24-MI-SS');
||' Time: '||to_char(row.LAST_UPDATE_DATE,'DD-MON-YYYY-HH24-MI-SS');
||' Time: '||to_char(row.LAST_UPDATE_DATE,'DD-MON-YYYY-HH24-MI-SS');
l_apperrtypdiscr_messcd_va.delete;
l_apperrtypdiscr_cnt_va.delete;
l_newapperr_peridva.delete;
l_periddiscrep_errcd_va.delete;
l_periddiscrep_perid_va.delete;
||' Time: '||to_char(row.LAST_UPDATE_DATE,'DD-MON-YYYY-HH24-MI-SS');
||' Time: '||to_char(row.LAST_UPDATE_DATE,'DD-MON-YYYY-HH24-MI-SS');
(p_lud => row.last_update_date
,p_mmperid_va => l_mmperid_va
,p_mmperlud_va => l_mmperlud_va
,p_mmcombnm_va => l_mmcombnm_va
,p_mmcombnm2_va => l_mmcombnm2_va
,p_mmcombid_va => l_mmcombid_va
,p_mmcombid2_va => l_mmcombid2_va
,p_mmcnt_va => l_mmcnt_va
,p_exclperid_va => l_mmexclperid_leva
);
if l_mmperlud_va(subvaen) > row.last_update_date
then
--
l_reptext := 'LE Change: '||l_reptext;
||' Time: '||to_char(row.LAST_UPDATE_DATE,'DD-MON-YYYY-HH24-MI-SS');
(p_lud => row.last_update_date
,p_mmperid_va => l_mmperid_va
,p_mmperlud_va => l_mmperlud_va
,p_mmcombnm_va => l_mmcombnm_va
,p_mmcombnm2_va => l_mmcombnm2_va
,p_mmcombid_va => l_mmcombid_va
,p_mmcombid2_va => l_mmcombid2_va
,p_mmcnt_va => l_mmcnt_va
,p_exclperid_va => l_mmexclperid_leva
);
if l_mmperlud_va(subvaen) > row.last_update_date
then
--
l_reptext := 'LE Change: '||l_reptext;
select ben_reporting_s.nextval into
l_num1_col(repvaen)
from sys.dual;
insert into ben_reporting
(reporting_id,
benefit_action_id,
thread_id,
sequence,
text,
object_version_number,
rep_typ_cd,
error_message_code,
national_identifier,
related_person_ler_id,
temporal_ler_id,
ler_id,
person_id,
pgm_id,
pl_id,
related_person_id,
oipl_id,
pl_typ_id,
actl_prem_id,
val,
mo_num,
yr_num)
values
(l_num1_col(insvaen),
l_num2_col(insvaen),
l_num3_col(insvaen),
l_num4_col(insvaen),
l_var1_col(insvaen),
l_num5_col(insvaen),
l_var2_col(insvaen),
l_var3_col(insvaen),
l_var4_col(insvaen),
l_num6_col(insvaen),
l_num7_col(insvaen),
l_num8_col(insvaen),
l_num9_col(insvaen),
l_num10_col(insvaen),
l_num11_col(insvaen),
l_num12_col(insvaen),
l_num13_col(insvaen),
l_num14_col(insvaen),
l_num15_col(insvaen),
l_num16_col(insvaen),
l_num17_col(insvaen),
l_num18_col(insvaen));
select rep.ERROR_MESSAGE_CODE
from ben_reporting rep
where rep.benefit_action_id = c_bft_id
and rep.ERROR_MESSAGE_CODE is not null;
select ERROR_MESSAGE_CODE,
max(person_id) mx_perid,
count(*) cnt
from ben_reporting
where benefit_action_id = c_bft_id
and ERROR_MESSAGE_CODE is not null
group by ERROR_MESSAGE_CODE
order by count(*) desc;
select rep.text,
rep.thread_id,
rep.person_id,
rep.last_update_login
from ben_reporting rep
where rep.benefit_action_id = c_bft_id
order by thread_id, reporting_id;
select count(*)
from BEN_EXT_RSLT_DTL
where EXT_RSLT_ID = c_ext_rslt_id;
select TYP_CD,
ERR_NUM,
count(*) cnt
from BEN_EXT_RSLT_ERR
where EXT_RSLT_ID = c_ext_rslt_id
group by TYP_CD,
ERR_NUM
order by count(*) desc;
select ERR_NUM,
ERR_TXT,
count(*) cnt
from BEN_EXT_RSLT_ERR
where EXT_RSLT_ID = c_ext_rslt_id
and TYP_CD = c_typ_cd
group by ERR_NUM,
ERR_TXT
order by count(*) desc;