Professional Documents
Culture Documents
Suppose you want to find out on which of your sessions, truncate target table option is set on. Instead of manually opening each task and checking if the truncate table option is on, you may use the below query:
select task_name, 'Truncate Target Table' ATTR, decode(attr_value,1,'Yes','No') Value from OPB_EXTN_ATTR OEA, REP_ALL_TASKS RAT where OEA.SESSION_ID=rat.TASK_ID and attr_id=9
UNION SELECT subject_area, 'SQ_NON_OVERIDE', COUNT (DISTINCT mapping_name) nb_mapping, COUNT (DISTINCT (mapping_name || source_qualifier_name)) nb_map_inst, COUNT (DISTINCT (source_qualifier_name)) nb_inst FROM detail WHERE OVR_OK =0 GROUP BY subject_area
from WHERE
REP_SESS_CONFIG_PARM CFG, opb_task TSK CFG.SESSION_ID=TSK.TASK_ID and tsk.TASK_TYPE=68 and attr_id=204 and attr_type=6
and attr_id=1
where
all_map.mapping_id=wid.mapping_id and wid.WIDGET_ID=widat.WIDGET_ID and wid.WIDGET_TYPE=11 and widat.WIDGET_TYPE=11 and widat.ATTR_ID in (2,6)