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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

pl/sql procedure taking much longer than the total of its recursive sql

This was first posted on October 4, 2016 by Rick J

I have a similar question.

When running a procedure, it takes 27 seconds.
When running exactly the same procedure with tracing on, it takes 89 seconds.

Did anyone ever get a reasonable explanation about what is happening and why there is such a huge difference?

PS: Obviously, it has nothing to do with the procedure itself. In both cases, the same procedure is used with exactly the same data.

Comments
Post Details
Added on Mar 7 2025
17 comments
216 views