Legal | Privacy
Managing Jobs using Oracle Enterprise Manager 10g Release 2

Managing Jobs Using Oracle Enterprise Manager 10g Release 2

The goal of this tutorial is to show you how to create single-task and multi-task jobs as well as set up the e-mail notifications about the job status.

Approximately 45 minutes

Topics

This tutorial covers the following topics:

Place the cursor over this icon to load and view all the screenshots for this tutorial. (Caution: Because this action loads all screenshots simultaneously, response time may be slow depending on your Internet connection.)

Note: Alternatively, you can place the cursor over each individual icon in the following steps to load and view only the screenshot associated with that step.

The screenshots will not reflect the specific environment you are using. They are provided to give you an idea of where to locate specific functionality in the Oracle Enterprise Manager 10g Grid Control console.

 

Overview

The Oracle Enterprise Manager 10g Release 2 job system is a repository-based system that enables users to submit and schedule jobs to run one or more times. The person who submits the job is the owner. Jobs can consist of everything from cloning Oracle homes to custom OS jobs. All job outputs and logs are recorded for review.

Single-task jobs encapsulate one task as a scheduled unit of work, whereas a multi-task jobs represent several tasks in the same unit of work. These tasks may be run against the same target or segregated for different targets.

Each task in a multi-task job may be executed based on the condition of the preceding task in the list. The Initialization Error Handling Task runs if any task in the list causes an initialization error.

The Notification System which is associated with jobs allows administrators to receive notifications through e-mail on the status of jobs.

Back to Topic List

 

Before starting this tutorial, you need to have performed the following

1.

Specify one or more e-mail addresses of the administrators and set up the notification schedule.

Back to Topic List

Creating a Single-Task Job

Perform the following steps to create a single-task job that starts up the database.

1.

Open the browser and enter the following URL:

http://<management service hostname>.<domain>:<port>/em/

The default port value on a clear machine is 7777. However, if there are other instances running on the machine, then the port may be different.

The login page will be displayed. Enter the User Name and Password, and then click the Login button.

Move your mouse over this icon to see the image

 

2.

The Oracle Enterprise Manager 10g Grid Control Home page appears showing you a high-level summary of your entire environment. Click the Jobs tab.

Move your mouse over this icon to see the image

3.

Select the Startup Database option from the Create Job drop-down list. Click Go.

Move your mouse over this icon to see the image

 

4.

Enter the name and description of the task. Click the Add button to add database targets.

Move your mouse over this icon to see the image

 

5.

Select any database target and click the Select button.

Move your mouse over this icon to see the image

 

6.

Click the Parameters subtab.

Move your mouse over this icon to see the image

 

7.

Select the appropriate startup mode and initialization parameter. Click the Credentials subtab.

Move your mouse over this icon to see the image

 

8.

Select Override Preferred Credentials and enter the appropriate values. Click the Schedule subtab.

Move your mouse over this icon to see the image

 

9.

Schedule the task and click the Access subtab.

Move your mouse over this icon to see the image

 

10.

Select the status values for E-Mail Notification for Owner and click the Submit button.

Move your mouse over this icon to see the image

 

11.

The confirmation page appears. You have successfully created a new single-task job.

Move your mouse over this icon to see the image

 

 

Back to Topic

Creating a Multi-Task Job

Perform the following steps to create a Multi-task job that consists of three tasks. The first task perform a database shutdown, the second takes a cold backup and the third starts the database again. Error-handling tasks are also defined. An Initialization Error Handling Task that runs on the failure of any job that comprises the Multi-Task Job, and a task that runs on the failure of the first task (that is, database shutdown).

 

1.

Select the Multi-Task option from the Create Job drop-down list and click Go.

Move your mouse over this icon to see the image


2.

Enter the name and description of the Multi-Task job, and select Database Instance as Target Type. Click the Add button to add database targets.

Move your mouse over this icon to see the image

 

3.

Select any database target and click the Select button.

Move your mouse over this icon to see the image

 

4.

Click the Tasks subtab.

Move your mouse over this icon to see the image

 

5.

Add the first task. Select Shutdown Database from the Type drop-down list. Click the Add button.

Move your mouse over this icon to see the image

 

6.

Enter the name of the first task and click the Parameters subtab.

Move your mouse over this icon to see the image

 

7.

Select Immediate as the shutdown mode. Click the Credentials subtab.

Move your mouse over this icon to see the image

 

8.

Select Override Preferred Credentials and enter appropriate values. Click Continue.

Move your mouse over this icon to see the image

 

9.

Add the second task. Select SQL Script from the Type drop-down list . Click the Add button.

Move your mouse over this icon to see the image

 

10.

Enter the name of the second task. Click the Parameters tab.

Move your mouse over this icon to see the image

 

11.

Enter the name of the backup script. Click the Credentials subtab.

Move your mouse over this icon to see the image

 

12.

Select Override Preferred Credentials and enter appropriate values. Click Continue.

Move your mouse over this icon to see the image

 

13.

Add the third task. Select Startup Database from the Type drop-down list . Click the Add button.

Move your mouse over this icon to see the image

 

14.

Enter the Name of the third task. Click the Parameters subtab.

Move your mouse over this icon to see the image

 

15..

Select the appropriate startup options. Click the Credentials subtab.

Move your mouse over this icon to see the image

 

16.

Select Override Preferred Credentials and enter appropriate values. Click Continue.

Move your mouse over this icon to see the image

 

17.

Click the Schedule subtab.

Move your mouse over this icon to see the image

 

18.

Schedule the task and click the Tasks subtab.

Move your mouse over this icon to see the image

 

19.

Define an Initialization Error Handler Task for all jobs in this Multi-Task Job. Click the Add button.

Move your mouse over this icon to see the image

 

20.

Select OS Command from the Type drop-down list. Click Continue.

Move your mouse over this icon to see the image

 

21.

Enter the name of the Initialization Error Handler Task. Click the Parameters subtab.

Move your mouse over this icon to see the image

 

22.

Enter the name of the error handler script. Click the Credentials subtab.

Move your mouse over this icon to see the image

 

23.

Select Override Preferred Credentials and enter the appropriate values. Click Continue.

Move your mouse over this icon to see the image

 

24.

The Error Handler Task is defined.

Move your mouse over this icon to see the image

 

25.

Click the Access subtab.

Move your mouse over this icon to see the image

 

26.

Select all status values for E-Mail Notification for Owner and click the Submit button.

Move your mouse over this icon to see the image

 

27.

The Confirmation page appears. You have successfully created a new multi-task job.

Move your mouse over this icon to see the image

 

Back to Topic

In this lesson, you've learned how to:

Back to Topic List

Place the cursor over this icon to hide all screenshots.

Copyright © 2005, Oracle Corporation. All rights reserved. Contact Us Legal Notices and Terms of UsePrivacy Statement

 

 

E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy