Oracle Parallel Hint Query [message #607216] |
Mon, 03 February 2014 23:20 |
|
napster
Messages: 8 Registered: December 2012
|
Junior Member |
|
|
Hi,
I have doubt about Parallel Hint. In one of the query i saw parallel hint like /*+ parallel(a,5000,4)*/.
In this hint a is for table alias and i am assuming 4 is degree.
I want to know what does 5000 stant for.
Please explain.
Thanks in advance.
Regards,
napster
|
|
|
|
|
|
|
Re: Oracle Parallel Hint Query [message #607236 is a reply to message #607216] |
Tue, 04 February 2014 02:43 |
John Watson
Messages: 8931 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
napster wrote on Tue, 04 February 2014 05:20Hi,
I have doubt about Parallel Hint. In one of the query i saw parallel hint like /*+ parallel(a,5000,4)*/.
In this hint a is for table alias and i am assuming 4 is degree.
I want to know what does 5000 stant for.
Please explain.
Thanks in advance.
Regards,
napster I don't think this hint is syntactically correct: there should be only one integer following the table alias. Better ask whomever write the query what it is supposed to do.
|
|
|
Re: Oracle Parallel Hint Query [message #607279 is a reply to message #607236] |
Tue, 04 February 2014 08:25 |
manubatham20
Messages: 566 Registered: September 2010 Location: Seattle, WA, USA
|
Senior Member |
|
|
Sometime we don't want to execute query without a certain number of parallel slaves available.
Some people use to count from Unix Scripts, but it's also a way.
PARALLEL_MIN_PERCENT
The recommended value for the PARALLEL_MIN_PERCENT parameter is 0 (zero).
This parameter enables users to wait for an acceptable DOP, depending on the application in use. Setting this parameter to values other than 0 (zero) causes Oracle to return an error when the requested DOP cannot be satisfied by the system at a given time. For example, if you set PARALLEL_MIN_PERCENT to 50, which translates to 50 percent, and the DOP is reduced by 50 percent or greater because of the adaptive algorithm or because of a resource limitation, then Oracle returns ORA-12827. For example:
SELECT /*+ PARALLEL(e, 8, 1) */ d.department_id, SUM(SALARY)
FROM employees e, departments d WHERE e.department_id = d.department_id
GROUP BY d.department_id ORDER BY d.department_id;
Oracle responds with this message:
ORA-12827: insufficient parallel query slaves available
EDIT : DOP = Degree of Parallelism
Manu
[Updated on: Tue, 04 February 2014 08:26] Report message to a moderator
|
|
|