we are using oracle database as job control repository. we have 1000's of ETL jobs to execute based on the dependency. So far i have built some control tables and a stored procedure to pull the jobs based on the dependency. When we need to start the batch, i need to update the "BATCH_STATUS" to "START" and trigger the batch jobs based on the dependency. im trying to build a perl script to start the batch and keep running the stored procedure to pull the jobs based on the dependencies and execute the jobs. when job execution starts i need to log with a start time and when completes update the end time and elapsed time. this script will run until batch completes. After that we need to stop the batch by updating "STOP" in control table so that the infinite process gets killed.

START_STOP_CTL (BATCH_STATUS,NO_OF_JOBS_CAN_RUN_PARALLEL) JOBS (all the jobs with status - READY, RUNNING,SUCCESS,FAILED) JOBPARAMS - All the job parameters JOBDEPENDENCIES - All jobs dependent information JOB_LOG -- Log each job execution

I need your help to run this script in loop and execute the jobs.my common script name is "run_etl_jobs.pl". the same script will be called to execute each and every ETL job with different parameters. Please provide your ideas to build this script.


In reply to Job scheduling? by laknarc

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.