Ask the Expert

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?

    Requires Free Membership to View

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 first published in August 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: