OEM 12 C Job System Purpose and Overview

16
OEM 12 C Job System Purpose: The Enterprise Manager Job System serves these purposes: Automates many administrative tasks; for example: backup, cloning, and patching Enables you to create your own jobs using your own custom OS and SQL scripts Enables you to create your own multi-task jobs comprised of multiple tasks A job is a unit of work that you define to automate commonly-run tasks. Scheduling flexibility is one of the advantages of jobs. You can schedule a job to start immediately or start at a later date and time. You can also run the job once or at a specific interval, such as three times every month. The Job Activity page is the hub of the Job System. From this page, you can: Search for existing job runs and job executions filtered by name, owner, status, scheduled start, job type, target type, and target name Create a job View or edit the job definition Create like, copy to library, suspend, resume, stop, and delete a job View results, edit, create like, suspend, resume, retry, stop, and delete a job run or execution

description

This document will give you a idea how to create a job in the OEM 12C Environment.

Transcript of OEM 12 C Job System Purpose and Overview

Page 1: OEM 12 C Job System Purpose and Overview

OEM 12 C Job System

Purpose:

The Enterprise Manager Job System serves these purposes:

Automates many administrative tasks; for example: backup, cloning, and patching Enables you to create your own jobs using your own custom OS and SQL scripts

Enables you to create your own multi-task jobs comprised of multiple tasks

A job is a unit of work that you define to automate commonly-run tasks. Scheduling flexibility is one of the advantages of jobs. You can schedule a job to start immediately or start at a later date and time. You can also run the job once or at a specific interval, such as three times every month.

The Job Activity page is the hub of the Job System. From this page, you can:

Search for existing job runs and job executions filtered by name, owner, status, scheduled start, job type, target type, and target name

Create a job

View or edit the job definition

Create like, copy to library, suspend, resume, stop, and delete a job

View results, edit, create like, suspend, resume, retry, stop, and delete a job run or execution

Page 2: OEM 12 C Job System Purpose and Overview

Besides accessing the Job Activity page from the Enterprise menu, you can also access this page from any Database or Cluster Database property page (Home, Performance, Availability, and so forth) by selecting Job Activity from the Oracle Database menu. When you access this page from these alternate locations, rather than showing the entire list of jobs, the Job Activity page shows a subset of the jobs associated with the particular target.

Page 3: OEM 12 C Job System Purpose and Overview

Job Type

Using the Job System, you can create a job by selecting one of the job types from the Create Job drop-down in the Job Activity page. The most commonly used types are as follows:

• OS CommandRuns an operating system command or script.

• SQL ScriptRuns a user-defined SQL or PL/SQL script

• RMAN Script:Runs a Rman backup job

• Startup DatabaseRuns a database startup operation for the attached databases.

• Shutdown DatabaseRuns a database shutdown operation for the attached databases.

• Multi-Task

Use to specify primary characteristics for multi-task jobs or corrective actions. Multi-task jobs enable you to create composite jobs by defining tasks, with each task functioning as an independent job. You edit and define tasks similarly to a regular job.

Here we have given the screenshot for creating the OS Command job.

Step 1:

Enter the Job Activity Page:

Enterprise Job Activity

Page 4: OEM 12 C Job System Purpose and Overview
Page 5: OEM 12 C Job System Purpose and Overview

Creating the Job:

In the Job Activity Page some many button is used to guide us to perform the administration activity in that we can find the create job.

Create job drop down box Choose OS Command then Press

Button

Page 6: OEM 12 C Job System Purpose and Overview

Job Creating Page:

In the Job Definition page we need to specify the name of the job and select the target type and add the target to the page.

Here in our example we are creating a job that is going to run at the host level so here we are selecting the target type as “Host”

To add the target we need to click the “Add” button on the target place. After that you will see the Search and Select Targets Page.

Target Adding page:

Here you need to specify the host type

Here you need to Specify the Job Name

Page 7: OEM 12 C Job System Purpose and Overview
Page 8: OEM 12 C Job System Purpose and Overview

Note:

For adding the target click on the check box. Once you done the step the target will appear at the target place below is the example for that action.

Page 9: OEM 12 C Job System Purpose and Overview

Parameter specification Page:

In this page we need to specify the script detail which you want to schedule.

Here we have 2 option.

1) OS Command Directly we can specify the command.2) Script Here you need to specify the fully qualified script location with script

name. So that the specified script will be used for the job operation.

In this example I have scheduled a script that is used to fetch the tns error issue.

1) In the command type option select script2) OS Script Script with Script location

Page 10: OEM 12 C Job System Purpose and Overview

Credential Tab:

Here we need to specify the credential type 1) Preferred Credential It will ask for the credential detail2) Named Credential It will take the agent host connection detail.3) New New Credential Type

Here I have used the named credential type the credential will automatically come

Page 11: OEM 12 C Job System Purpose and Overview

Schedule:

In this page we need the specify the frequency of the script execution.

1) One Time Only one time the script will execute2) One Time Later It will execute later but only one time.3) Repeating This schedule will used to schedule repeatly.

Here in the example we used the repeating schedule Frequency type By Minutes ,By Hour ,By Week , Weekly, Monthly , Yearly

(Here we Specified By Minutes)Repeat Every 10 MinTime zone Country Time ZoneStart Data and Time On which date and timeGrace Period and Repeat Until When the script going to stop execution and when it need to stop.

Once you Specify the above mentioned detail then your will be scheduled.

Below is the example to specify the scheduled operation.

Page 12: OEM 12 C Job System Purpose and Overview

Access Page:

In this page you can give the credential to modify the job.

Default user are sys ,system, sysman In that sysman have the full privilege and other sys and system have read only privilege. And in this page you can specify when you want mail whether you need a mail after success or error like that. Below the screenshot for the access page.

Click the submit button to summit the created job.

Page 13: OEM 12 C Job System Purpose and Overview
Page 14: OEM 12 C Job System Purpose and Overview

Once you complete the above operation your script will be scheduled for the operation.

Below you can see the job is created and appearing on the page.

------------------------------------------ Thank You --------------------------------------------------