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!

DML SQL or the Procedure to improve the performance

Ora-affJun 23 2014 — edited Jun 24 2014

Recently, I attended a corporate training session on Oracle Performance optimization and tuning in which the trainer said that it is better to do DML operations through a PL/SQL Procedure rather than a direct query because number of hard parsings can be saved as the stored procedure will be cached in the SGA Library improving the performance.

My question here is which one is better to avoid: "The context switching between PL/SQL and SQL Engine" OR "the hard parsing of SQL queries?" I did not get a satisfactory answer from him.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2014
Added on Jun 23 2014
3 comments
1,853 views