Job is in a chain or not
search cancel

Job is in a chain or not

book

Article ID: 259077

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM) CA Automic Applications Manager (AM)

Issue/Introduction

Is there any way to run a query against Oracle DB to find out if a job is in a chain or not?

Environment

Applications Manager: 9.x

Resolution

The easiest way to find out if a Job is used in a Chain is to do it from the Java client by selecting the Job from the Job selector Window and selecting the Usage button.

For SQL there are two tables related to the request; the so_job_table which holds the Job name or Process Flow name and the so_chain_detail table which is the table that holds on the component objects. 

Here is the SQL statement:

select a.so_module as "Job Name", b.so_task_name as "Component Alias", a.so_command_type as "CHAIN or JOB"
from so_job_table a, so_chain_detail b
where
a.so_job_seq=b.so_job_seq or
a.so_job_seq=b.so_chain_seq;