How To Enable Parallel Query For A Function?
(Doc ID 1093773.1)
Last updated on MARCH 28, 2019
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?
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document