Solved

Parallel Execution SQL

Posted on 2015-02-19
7
118 Views
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.
0
Comment
Question by:janoxley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 74

Expert Comment

by:sdstuber
ID: 40619304
use different resource plans for different users.

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

Author Comment

by:janoxley
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.
0
 
LVL 74

Expert Comment

by:sdstuber
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?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 74

Expert Comment

by:sdstuber
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.
0
 

Author Comment

by:janoxley
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?
0
 
LVL 74

Accepted Solution

by:
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.
0
 

Author Comment

by:janoxley
ID: 40619830
Cheers...
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

696 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