Managing Priorities

Oracle allows you to assign priorities to jobs, and that is critical functionality for any robust scheduling mechanism.

Suppose that you have created several jobs in the database with a variety of schedules. There is always a possibility that some jobs will overlap with others. After all, there are only 24 hours in a day. When two jobs run at the same time, they might consume resources such as CPU and memory at a pace not usually seen during the normal operation of the database. The resource consumption—more accurately, the resource contention—may cause both jobs to slow down (as well as other applications running on the system). In such a case, what should be done? You may want to give Job A all the resources it needs, and let Job B suffer a little until Job A completes. Or you may want to give Job B more resources.

Get Oracle PL/SQL for DBAs now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.