Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Content grammar corrected

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

We recommend using our PL/SQLJob job for working with SQL and Oracle™ RDBMS.
This is one of our JITL jobs Jobs by Topic: Database jobs that are delivered with JobScheduler.

Use JOE to create a PL/SQL job.:

  • Open JOE's Job Wizard
  • Select
  • open the wizard
  • select JobSchedulerPLSQLJob in the list of available jobs and enter a job name
  • goto Goto "next" to set some parameters for the database connection etc.
  • follow above link See the reference documentation for the PL/SQLJob job to get more information about the parameter etc..job parameters
  • After after you have finished the wizard then you can insert the PL/SQL script in the script tab of the job.
  • alternatively Alternatively you can put the PL/SQL script in an external file and enter this filename in the parameter "command".

...

Code Block
languagehtml/xml

<?xml version="1.0" encoding="ISO-8859-1"?>


<job  title="Execute PL/SQL procedure" order="no">
    <description >
        <include  file="jobs/JobSchedulerPLSQLJob.xml"/>
    </description>

    <params >
        <param  name="db_url" value="jdbc:oracle:thin:@localhost:1521:test"/>

        <param  name="db_user" value="test"/>

        <param  name="db_password" value="test"/>
    </params>

    <script  language="java" java_class_path="" java_class="sos.scheduler.db.JobSchedulerPLSQLJobJSAdapterClass">
        <![CDATA[
begin
      dbms_output.put_line('hello world');
end;
        ]]>
    </script>

    <run_time />
</job>