Parallel Execution SQL

Posted on 2015-02-19
Last Modified: 2015-02-19
With Parallel execution in Oracle, is there a way to only allow certain procedures to use it?

We have a scheduler which runs our critical jobs, only these should be allowed to use parallel (even if someone has put parallel hints in non scheduled procedures)

I want to block anything other than specified procedures from using it.
Question by:janoxley
  • 4
  • 3
LVL 74

Expert Comment

ID: 40619304
use different resource plans for different users.

One of the options of a resource plan is the maximum degree of parallelism

Author Comment

ID: 40619449
Cheers but the problem is that we can have multiple people using the same username (don't ask!)

I need to somehow control which stored procedures are able to use Parallel.
LVL 74

Expert Comment

ID: 40619464
sorry, but resource plans are applied at the user level.

Can the scheduler be created with a dedicated user distinct from what people use?
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

LVL 74

Expert Comment

ID: 40619469
you can set it lower level though,  associate a resource plan with a service name

have the scheduler connect to the database via one service
and other users connect via another service.

Author Comment

ID: 40619777
The scheduler has it's own dedicated username with greater permissions than a "normal" (i.e someone who logs in via toad or sqlplus etc)
It's 3rd party software installed by the DBA's and we have control via an GUI front end (on windows enterprise 7)
It's vendor support is no longer supplied for the out of date version we have (£££)

So, i'd need to be able to allow the user "scheduler" the ability to run parallel sql but restrict the other nonsys db users.

It may be something i need to ask the DBA's to do but maybe I can do it my self if there's a way to do it by logging on each nonScheduler user (and nonsys) and set some kind of "Don't use parallel" type parameter therby leaving only the scheduler with that ability?

P.S. how do I spellcheek on this website?
LVL 74

Accepted Solution

sdstuber earned 500 total points
ID: 40619824
yes you will need to have your DBAs make a change,  

have them create 2 resource plans, or alter existing ones.

One plan has max parallel degree of 1  (i.e. do not parallelize) - assign all normal users to this plan.

One plan has max parallel degree of unlimited (this is the default for most plans) - assign the scheduler user to this plan.

Author Comment

ID: 40619830

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Oracle 10g standard edition server with 4 processors 3 67
constraint check 2 48
pivot rows to columns 1 34
SQL2016 to ORACLE11G linked-server 6 28
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows how to recover a database from a user managed backup
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question