Ask the Expert

How to set up a job for an SQL query in Oracle 10g Grid Control

Regarding Oracle 10g Grid Control, is there a way to run adhoc SQL within Grid without having to set up a job to execute it?

    Requires Free Membership to View

The term "adhoc" means designed for the specific purposes of that specific task at that specific time. If you want to run a SQL statement at a regular interval, then the query is not considered "adhoc".

Oracle's preferred method of running SQL statements at a regularly scheduled time is to set up a job. In Oracle 10g+, you can use the DBMS_SCHEDULER package for this task.

Alternatively, you can set up a batch program or shell script which uses SQL*Plus to run the SQL statement. Once the program or script is created, it can be scheduled with Windows task scheduler or from cron in Unix/Linux.

This was first published in July 2008

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: