How To Enable Parallel Query For A Function?
Last updated on JULY 05, 2017
Applies to:PL/SQL - Version 10.2.0.4 and later
Information in this document applies to any platform.
When attempting to incorporate a PL/SQL Packaged procedure/function within parallel execution there appear to be two possible ways to flag the stored procedure/function.
Option 1 - Use the PRAGMA call.
FUNCTION F1 (x IN NUMBER) RETURN NUMBER
PRAGMA RESTRICT_REFERENCES (compress_clob, WNDS, RNPS, WNPS);
Option 2 - Use the PARALLEL_ENABLE clause
PROCEDURE F1 (x IN NUMBER) RETURN NUMBER
Can either Option 1 be used, Option 2 or is both required?
How does the PL/SQL code implement the PARALLEL_ENABLE clause?
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms