Solved

Parallel Execution SQL

Posted on 2015-02-19
7
113 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
  • 4
  • 3
7 Comments
 
LVL 73

Expert Comment

by:sdstuber
Comment Utility
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
Comment Utility
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 73

Expert Comment

by:sdstuber
Comment Utility
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
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 73

Expert Comment

by:sdstuber
Comment Utility
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
Comment Utility
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 73

Accepted Solution

by:
sdstuber earned 500 total points
Comment Utility
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
Comment Utility
Cheers...
0

Featured Post

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.

Join & Write a Comment

Suggested Solutions

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now