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.
This was last published in August 2004

Dig Deeper on Oracle database design and architecture

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.