Informatica 9.1常用查询

 

select

a.mapping_name,

a.mapping_id,

a.subject_id,

a.is_valid,

b.pv_precision,

c.pv_value,

b.pv_default,

b.pv_name

from 

opb_mapping a,

opb_map_parmvar b,

OPb_map_persisval c

where a.mapping_id=b.mapping_id

and c.mapping_id=a.mapping_id

;
查询Mapping参数变量
select distinct SUBJ_NAME as folder_name,

      x.mapping_name,

       decode(widget_type, 1, instance_name) as src

  from opb_widget_inst t, opb_mapping x, opb_subject y

 WHERE widget_type in (1, 2)

   and t.mapping_id = x.mapping_id

   and x.subject_id = y.subj_id

   and decode(widget_type, 1, instance_name) in('DW_F_SBJMXX','DW_F_ZSXX','DW_F_JRKXX')

   ORDER BY FOLDER_NAME,mapping_name
查询mapping与数据源表 语句
select *

  from opb_workflow a, opb_scheduler b,opb_server_info c

 where a.scheduler_id = b.scheduler_id

 and a.server_id = c.server_id
查询服务器、工作流、计划等信息
SELECT T.SUBJECT_AREA    主题,

       T.WORKFLOW_NAME   工作流名称,

       T.TASK_TYPE       类型,

       T.TASK_TYPE_NAME  类型名称,

       T.INSTANCE_NAME   实际运行组件名,

       T.TASK_NAME       初始组件名,

       T.START_TIME      开始时间,

       T.END_TIME        结束时间,

       T.RUN_STATUS_CODE 执行状态,

       T.RUN_ERR_CODE    错误代码,

       T.RUN_ERR_MSG     错误信息

  FROM REP_TASK_INST_RUN T

  WHERE  t.TASK_TYPE_NAME='Worklet'--取值为Workflow重的组件名称:'Session','Command','Start','Control','Timer','Worklet ,

  AND t.START_TIME>= TRUNC(SYSDATE-1)
查询任务运行情况
SELECT T1.SUBJECT_AREA           主题,

       T1.WORKFLOW_NAME          工作流名称,

       T1.SESSION_INSTANCE_NAME  会话名,

       T1.MAPPING_NAME           映射名,

       T1.SUCCESSFUL_SOURCE_ROWS 源成功num,

       T1.FAILED_SOURCE_ROWS     源失败num,

       T1.SUCCESSFUL_ROWS        目标成功num,

       T1.FAILED_ROWS            目标失败num,

       t1.ACTUAL_START           执行时间,

       t1.FIRST_ERROR_CODE       错误代码,      

       t1.FIRST_ERROR_MSG        错误信息

  FROM REP_SESS_LOG T1

  WHERE t1.ACTUAL_START>TRUNC(SYSDATE)
查询SESSION运行情况
SELECT START_TIME            开始,

       END_TIME              结束,

       SUBJECT_AREA          FOLIDER,

       WORKFLOW_NAME         WF,

       WLT_NAME              WLT,

       SESS_NAME             SESS,

       RUN_STAT_CODE         STAT,

       RUN_ERR_CODE          ERR,

       RUN_ERR_MSG           ERR_MSG,

       MAPPING_NAME          MAPPING,

       SUSSESSFUL_SOURC_ROWS SSR,

       FAILED_SOURCE_ROWS    FSR,

       SUCCCESSFUL_ROWS      SR,

       FAILED_ROWS           FR

  FROM (SELECT T1.START_TIME            START_TIME,

               T1.END_TIME              END_TIME,

               T.SUBJECT_AREA           SUBJECT_AREA,

               T.WORKFLOW_NAME          WORKFLOW_NAME,

               T2.INSTANCE_NAME         WLT_NAME,

               T1.INSTANCE_NAME         SESS_NAME,

               T1.RUN_STATUS_CODE       RUN_STAT_CODE,

               T1.RUN_ERR_CODE          RUN_ERR_CODE,

               T1.RUN_ERR_MSG           RUN_ERR_MSG,

               T.MAPPING_NAME           MAPPING_NAME,

               T.SUCCESSFUL_SOURCE_ROWS SUSSESSFUL_SOURC_ROWS,

               T.FAILED_SOURCE_ROWS     FAILED_SOURCE_ROWS,

               T.SUCCESSFUL_ROWS        SUCCCESSFUL_ROWS,

               T.FAILED_ROWS            FAILED_ROWS

          FROM REP_SESS_LOG T

         INNER JOIN REP_TASK_INST_RUN T1

            ON T.SUBJECT_ID = T1.SUBJECT_ID

           AND T.WORKFLOW_ID = T1.WORKFLOW_ID

           AND T.WORKFLOW_RUN_ID = T1.WORKFLOW_RUN_ID

           AND T.WORKLET_RUN_ID = T1.WORKLET_RUN_ID

           AND T.SESSION_ID = T1.TASK_ID

           AND T1.TASK_TYPE_NAME = 'Session'

          LEFT JOIN REP_TASK_INST_RUN T2

            ON T1.SUBJECT_ID = T2.SUBJECT_ID

           AND T1.WORKFLOW_ID = T2.WORKFLOW_ID

           AND T1.WORKFLOW_RUN_ID = T2.WORKFLOW_RUN_ID

           AND T1.WORKLET_RUN_ID = T2.CHILD_RUN_ID

           AND T2.TASK_TYPE_NAME = 'Worklet'

        --AND t.ACTUAL_START>TRUNC(SYSDATE)

        )

 WHERE SESS_NAME = 's_m_F_Posbk_Sale1_6'

 ORDER BY START_TIME;
查询工作流运行情况

 

你可能感兴趣的:(Informatica)