Q
Problem solve Get help with specific problems with your technologies, process and projects.

Are PL/SQL stored procedures multi-threaded?

Are PL/SQL stored procedures multi-threaded inherently? If yes, in the same SP when executed concurrently for multiple client sessions (or maybe even from the same session ), will these concurrent threads have their own copy of all the variables used? As DMLs are already taken care of by the database for concurrency, is it enough if we take care of the concurrency issues of the variables?
The variables in use for a stored procedure are taken care of in the user's Program Global Area (PGA). When multiple users simultaneously execute the same stored procedure, the PGA keeps track of the state of that user's execution of the stored proc. You do not have to worry about concurrency issues for these variables. Oracle handles it for you.

Dig Deeper on Oracle database design and architecture

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close