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;

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值