informatica工作流运行状况监控情况

各个workfloww下的session运行状态星系情况:

select C.SUBJ_NAME,B.WORKFLOW_NAME,a.instance_name,to_char(a.start_time,'yyyy-mm-dd hh24:mi:ss') start_time,

to_char(a.end_time,'yyyy-mm-dd hh24:mi:ss') end_time,a.run_err_msg,a.task_name,d.instance_name,d.widget_type,

applied_rows sucessful_rows,affected_rows successful_affected_rows,rejected_rows failed_rows,

replace(last_err_msg,chr('44'),chr('35')) last_error

from opb_task_inst_run a, opb_wflow_run b,opb_subject c,opb_swidginst_log d

where c.subj_id=a.subject_id and b.workflow_id=a.workflow_id and a.workflow_run_id=b.workflow_run_id

and d.workflow_run_id=a.workflow_run_id and d.task_instance_id=a.instance_id

and d.widget_type in (3,2)

and trunc(a.start_time)=trunc(sysdate-1,'DD');

工作流运行状况监控情况

select

a.SERVER_NAME,a.SUBJECT_AREA,a.WORKFLOW_NAME,a.SCHEDULER_NAME,

case when c.user_logic_type=1 and c.frequency_intervl=1 then 'Daily Job'

when c.user_logic_type=1 and c.frequency_intervl>1 and c.frequency_intervl<8

then 'Weekly Job' else 'Month Job' end job_type,

replace(substr(a.START_TIME,-5,5),'/',':') schedule_time,

case when b.run_err_code=0 and b.end_time is not null then 'Completed'

when b.run_err_code=0 and b.end_time is null then 'Runing'

when b.run_err_code >= 1 then 'Failed'

else 'Not Start' end as status,

b.start_time,b.end_time,b.run_err_code

from rep_workflows a,opb_wflow_run b , opb_schedule_logic c

where a.WORKFLOW_ID=b.workflow_id

and a.SCHEDULER_ID=c.scheduler_id

and trunc(b.start_time)=trunc(sysdate,'dd')

and c.version_number in (

select max(k.version_number) from opb_schedule_logic k

where c.scheduler_id=k.scheduler_id)

and a.RUN_OPTIONS > 1

order by 1,2,3;

 

你可能感兴趣的:(informatica)