16.10.2015 Views

Getting Started with IBM Data Studio for DB2

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

196 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>IBM</strong> <strong>Data</strong> <strong>Studio</strong> <strong>for</strong> <strong>DB2</strong><br />

Notification<br />

Chains<br />

user ID that will run the job. If you schedule a job to run on more than one<br />

database, the job is run on each database by the user ID that is stored in the<br />

database connection <strong>for</strong> that database.<br />

Notifications are one of two methods that you can use to determine whether<br />

your jobs ran successfully. Use notifications to alert you by email on the<br />

successful or failed run of a job on your databases.<br />

The other method of determining the outcome of your jobs is to look in the job<br />

history tab of the job manager, where you can see the status of all jobs on all<br />

databases that are configured <strong>for</strong> your system.<br />

You can add a chain of subsequent jobs that run depending on the outcome<br />

of the primary job. A job chain can consist of three consecutive jobs: the<br />

primary job, a job that runs if the primary job is successful or a job that runs if<br />

it is unsuccessful, and finally an ending job that runs at the end of the chain<br />

regardless of the outcome of the preceding jobs.<br />

Important:<br />

When a job is run as part of a chain, any schedules and chains that are<br />

associated <strong>with</strong> that job are ignored.<br />

Table 6.1 – Components of a job<br />

6.3.2 Job types<br />

The job manager supports three default job types. The job type indicates the way that the<br />

job manager connects to the databases to run the scripts.<br />

Job type<br />

SQL-only script<br />

<strong>DB2</strong> command line<br />

processor script<br />

Executable/Shell<br />

script<br />

Connection method<br />

The job manager connects to the database and runs the SQL<br />

commands that are included in the job script directly on the<br />

database.<br />

The job manager logs in to the database server by using SSH as<br />

the user ID defined in the database connection, and then it runs<br />

command line processor commands directly on the <strong>DB2</strong> console<br />

of the server.<br />

The job manager logs in to the database server by using SSH as<br />

the user ID that is defined in the database connection, and then<br />

runs shell commands directly on the server.<br />

Note:<br />

To run <strong>DB2</strong> command line processor script jobs or executable/shell script jobs on a<br />

database, the user ID that is used to run the job must have permission to log in to the<br />

database server by using SSH.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!