Sometimes a variables table is better than hard coding into a package

January 31, 2008

[From Builder AU]

When writing PL/SQL packages, there are times where it's better to store a variable in a table instead of coding it into the package. It's most useful for a variable that you might want to change fairly often. If you put such a variable directly in the package (either the spec or body), the only way to modify it is to edit that package and recompile. The recompile can become problematic; if your application is still running then a user's session might have that package locked and it prevents compilation. It happens to me all the time when maintaining somebody else's application.

The article continues at http://www.builderau.com.au/program/oracle/soa/Sometimes-a-variables-table-is-better-than-hard-coding-into-a-package/0,339028441,339285539,00.htm








The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers