Oracle never needed stored procedures for cached plans, so why not talk about it. The main performance benefit of stored procedures is cursor caching. It is assumed that if the session performed the PL / SQL fragment once, there is a good chance that the session will start it again. Therefore, when the saved PL / SQL code tells the session to close the cursor, it usually does not close it immediately. Instead, it will select it until โI need to open this cursor (again)โ appears in the code or it needs memory.
The main advantage of this is OLTP processing, but the actual numbers will vary significantly between sites. But take a look at the article โAnalysis - This Analysis - This Analysisโ: http://www.oracle.com/technology/oramag/oracle/07-jul/o47asktom.html
source share