Todays Failed Session Target Details

Displays, by folder and repository, the target details for all target instances in sessions that started today and failed. This report is the second node in a workflow associated with the Todays Failed Session Statistics primary report.


Click on the text to copy the query report to your clipboard.


select "MAPPING_NAME",
"THROUGHPUT",
"SUBJECT_AREA",
"GROUP_NAME",
"END_TIME",
"TABLE_BUSNAME",
"REPOSITORY_NAME",
"MAPPLET_INSTANCE_NAME",
"WORKFLOW_NAME",
"TABLE_INSTANCE_NAME",
"ACTUAL_START_CONVERSION",
"PARTITION_NAME",
"SESSION_INSTANCE_NAME",
"WIDGET_NAME",
"SUCCESSFUL_ROWS",
"SUCCESSFUL_AFFECTED_ROWS",
"LAST_ERROR_CODE",
"START_TIME",
"LAST_ERROR",
"FAILED_ROWS",
"SESSION_NAME"
from (SELECT  SESSION_REPOSIT_INFO.REPOSITORY_NAME,  TO_CHAR(SESSION_LOG.ACTUAL_START,'DD-MON-YYYY') AS ACTUAL_START_CONVERSION,  ALL_SESSIONS.SUBJECT_AREA,  SESSION_LOG.WORKFLOW_NAME,  SESSION_LOG.SESSION_NAME,  SESSION_LOG.SESSION_INSTANCE_NAME,  SESSION_LOG.MAPPING_NAME,  SESSION_TBL_LOG.MAPPLET_INSTANCE_NAME,  SESSION_TBL_LOG.WIDGET_NAME,  SESSION_TBL_LOG.TABLE_INSTANCE_NAME,  SESSION_TBL_LOG.TABLE_BUSNAME,  SESSION_TBL_LOG.PARTITION_NAME,  SESSION_TBL_LOG.GROUP_NAME,  SESSION_TBL_LOG.START_TIME,  SESSION_TBL_LOG.END_TIME,  SESSION_TBL_LOG.LAST_ERROR_CODE,  SESSION_TBL_LOG.LAST_ERROR AS LAST_ERROR,  (SUM(SESSION_TBL_LOG.SUCCESSFUL_ROWS)) AS SUCCESSFUL_ROWS,  (SUM(SESSION_TBL_LOG.FAILED_ROWS)) AS FAILED_ROWS,  (SUM(SESSION_TBL_LOG.SUCCESSFUL_AFFECTED_ROWS)) AS SUCCESSFUL_AFFECTED_ROWS,  (SUM(SESSION_TBL_LOG.THROUGHPUT)) AS THROUGHPUT  FROM  REP_SESS_LOG SESSION_LOG,  REP_SESS_TBL_LOG SESSION_TBL_LOG,  REP_LOAD_SESSIONS ALL_SESSIONS,  REP_REPOSIT_INFO SESSION_REPOSIT_INFO  WHERE  (SESSION_LOG.SESSION_ID = SESSION_TBL_LOG.SESSION_ID AND  SESSION_LOG.TASK_VERSION_NUMBER = SESSION_TBL_LOG.SESSION_VERSION_NUMBER AND  SESSION_LOG.INSTANCE_ID = SESSION_TBL_LOG.SESSION_INSTANCE_ID AND  SESSION_TBL_LOG.START_TIME >= SESSION_LOG.ACTUAL_START AND  SESSION_TBL_LOG.START_TIME <= SESSION_LOG.SESSION_TIMESTAMP AND  ALL_SESSIONS.SESSION_ID = SESSION_LOG.SESSION_ID AND  ALL_SESSIONS.SESSION_VERSION_NUMBER = SESSION_LOG.TASK_VERSION_NUMBER AND  ALL_SESSIONS.SESSION_ID <> SESSION_REPOSIT_INFO.REPOSITORY_ID) AND  (TO_CHAR(SESSION_LOG.ACTUAL_START,'DD-MON-YYYY') = TO_CHAR(TRUNC(SYSDATE), 'DD-MON-YYYY') AND  CASE    WHEN SESSION_LOG.RUN_STATUS_CODE <= 9    THEN    CASE     WHEN SESSION_LOG.RUN_STATUS_CODE = 1     THEN 'Succeeded'     ELSE     CASE      WHEN SESSION_LOG.RUN_STATUS_CODE = 2      THEN 'Disabled'      ELSE      CASE       WHEN SESSION_LOG.RUN_STATUS_CODE = 3       THEN 'Failed'       ELSE       CASE        WHEN SESSION_LOG.RUN_STATUS_CODE = 4        THEN 'Stopped'        ELSE        CASE         WHEN SESSION_LOG.RUN_STATUS_CODE = 5         THEN 'Aborted'         ELSE         CASE          WHEN SESSION_LOG.RUN_STATUS_CODE = 6          THEN 'Running'          ELSE          CASE           WHEN SESSION_LOG.RUN_STATUS_CODE = 7           THEN 'Suspending'           ELSE           CASE            WHEN SESSION_LOG.RUN_STATUS_CODE = 8            THEN 'Suspended'            ELSE            CASE             WHEN SESSION_LOG.RUN_STATUS_CODE = 9             THEN 'Stopping'            END           END          END         END        END       END      END     END    END    ELSE    CASE     WHEN SESSION_LOG.RUN_STATUS_CODE = 10     THEN 'Aborting'     ELSE     CASE      WHEN SESSION_LOG.RUN_STATUS_CODE = 11      THEN 'Waiting'      ELSE      CASE       WHEN SESSION_LOG.RUN_STATUS_CODE = 12       THEN 'Scheduled'       ELSE       CASE        WHEN SESSION_LOG.RUN_STATUS_CODE = 13        THEN 'UnScheduled'        ELSE        CASE         WHEN SESSION_LOG.RUN_STATUS_CODE = 14         THEN 'Unknown'         ELSE         CASE          WHEN SESSION_LOG.RUN_STATUS_CODE = 15          THEN 'Terminated'         END        END       END      END     END    END   END = 'Failed' )  GROUP BY  SESSION_REPOSIT_INFO.REPOSITORY_NAME,  TO_CHAR(SESSION_LOG.ACTUAL_START,'DD-MON-YYYY'),  ALL_SESSIONS.SUBJECT_AREA,  SESSION_LOG.WORKFLOW_NAME,  SESSION_LOG.SESSION_NAME,  SESSION_LOG.SESSION_INSTANCE_NAME,  SESSION_LOG.MAPPING_NAME,  SESSION_TBL_LOG.MAPPLET_INSTANCE_NAME,  SESSION_TBL_LOG.WIDGET_NAME,  SESSION_TBL_LOG.TABLE_INSTANCE_NAME,  SESSION_TBL_LOG.TABLE_BUSNAME,  SESSION_TBL_LOG.PARTITION_NAME,  SESSION_TBL_LOG.GROUP_NAME,  SESSION_TBL_LOG.START_TIME,  SESSION_TBL_LOG.END_TIME,  SESSION_TBL_LOG.LAST_ERROR_CODE,  SESSION_TBL_LOG.LAST_ERROR) "query"
order by "REPOSITORY_NAME", "ACTUAL_START_CONVERSION", "SUBJECT_AREA"

Leave a Comment

Your email address will not be published. Required fields are marked *

*
*