Home » SQL & PL/SQL » SQL & PL/SQL » Oracle Parallel Hint Query (Oracle Database 11.2g)
Oracle Parallel Hint Query [message #607216] Mon, 03 February 2014 23:20 Go to next message
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 #607217 is a reply to message #607216] Mon, 03 February 2014 23:27 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
when all else fails, Read The Fine Manual

http://docs.oracle.com/cd/E16655_01/server.121/e17209/sql_elements006.htm#SQLRF50801
Re: Oracle Parallel Hint Query [message #607218 is a reply to message #607217] Mon, 03 February 2014 23:31 Go to previous messageGo to next message
napster
Messages: 8
Registered: December 2012
Junior Member
Hi,

I just want to know what that 5000 stand for.

Regards,

napster
Re: Oracle Parallel Hint Query [message #607219 is a reply to message #607218] Mon, 03 February 2014 23:32 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
why do you insist to read answer here as opposed to http://docs.oracle.com/cd/E16655_01/server.121/e17209/sql_elements006.htm#SQLRF50801
Re: Oracle Parallel Hint Query [message #607220 is a reply to message #607217] Mon, 03 February 2014 23:33 Go to previous messageGo to next message
manubatham20
Messages: 566
Registered: September 2010
Location: Seattle, WA, USA
Senior Member

Read about:

PARALLEL_MIN_PERCENT

You don't believe, it's so hard to google, it will take another life to go through it.

[Updated on: Mon, 03 February 2014 23:36]

Report message to a moderator

Re: Oracle Parallel Hint Query [message #607236 is a reply to message #607216] Tue, 04 February 2014 02:43 Go to previous messageGo to next message
John Watson
Messages: 8931
Registered: January 2010
Location: Global Village
Senior Member
napster wrote on Tue, 04 February 2014 05:20
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
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 Go to previous message
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

Previous Topic: Call XML URL from PL/SQL
Next Topic: Invalid package and synonym
Goto Forum:
  


Current Time: Fri Apr 26 16:42:20 CDT 2024