Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DETERMINISTIC and PARALLEL_ENABLE

user1688514Feb 19 2015 — edited Feb 20 2015

Hi,

I'm having a hard time in understanding the concept of PARALLEL_ENABLE used with functions.

I actually came across on PARALLEL_ENABLE when reading that the RESTRICT_REFERENCES Pragma is deprecated, and instead DETERMINISTINC and PARALLEL_ENABLE shoul be used.

Here are some questions I have:

1. how do DETERMINISTIC and PARALLEL_ENABLE replace RESTRICT_REFERENCES?

With RESTRICT_REFERENCES we were getting compile time errors when violating "purity" rules of functions. Will DETERMINISTIC, PARALLEL_ENABLE noify in the same way, at compile time?

2. I had found some examples of DETERMINISTINC - Hemant's Oracle DBA Blog: DETERMINISTIC Functions , and understood its usage, but I cannot seam to find one for PARALLEL_ENABLE as well.

Could you give me a well explained example?

The definition states:

"PARALLEL_ENABLE indicates that the function can run from a parallel execution server of a parallel query operation" - what does it mean by that?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 20 2015
Added on Feb 19 2015
2 comments
2,492 views