i have some doubts about the PL/SQL context, are there:
- the PL/SQL context is static ?
- the PL/SQL context is sync ?
- if a procedure was called two times at the same time, the first one takes 20 seconds to complete.. will the second one wait this 20 seconds to start its execution ?
thanks.
Each database session that references a package has an independent instance of the package. All package state (i.e. global package variables) is distinct to each session.
There is no synchronization between multiple sessions invoking the same package procedures or functions — except what might occur as a natural side effect of the database operations that they perform and the locking required to achieve them.