Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Benifit of Package Initialization

Orcl ApexMay 22 2017 — edited May 23 2017

Hi All,

When I compile a package with PLSQL warning enable ALL, I am seeing some warning that don't use global variable in declaration section.

Q: Why we should not do it ?

Q: If not do in in declaration section then where to do ?

Q: Is there any benefit of doing it in Package Initialization section ?

Q: If I initialize a value in Package Initialization section and same package is called parallel 100 times the value will be be initialized only once or in each and every session invoking the package ?

Q: Benefit of Package Initialization section ?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2017
Added on May 22 2017
14 comments
265 views