0

We are writing tons of oracle stored procedures to handle our business logic. We would like to do a physical grouping for better maintenance and understanding.

I can see package is helpful for encapsulation and logical grouping... Is there anyway we can create namespace physically to group certain procedures based on business logic.

Please advice us on this...

closed as unclear what you're asking by mustaccio, RDFozz, Colin 't Hart, Vérace, Lennart May 14 '18 at 21:53

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • What is the best way to write and manage packages when you have loads of procedure to achieve certain functionality...Every functionality of my application covers 100 to 150 stored procedures because of the complex business logic... What are all the best practices to keep it efficient,simple and maintainable – user416 May 15 '18 at 14:26
1

Presumably you have business logic that relates to how you process data in the DB. That data is likely to be table based and the tables are likely to be per business entity.

For example, there might be a table that holds details of customer accounts. Therefore all business logic pertaining to creating, maintaining, validating, listing, etc. of customer accounts would exist in the package PKG_ACCOUNTS.

Without knowing how granular or generic your procedures are trying to be its hard to see how you would need something more that that. That sort of approach, with packages covering logic that can apply to multiple objects, has always worked very well for me.

Perhaps some examples would help if you don't see that this is sufficient.

  • Thanks @BriteSponge.... I think packages covering logic is the best way for my requirements... In this way we wont disturb the other functionality during changes – user416 May 14 '18 at 18:57

Not the answer you're looking for? Browse other questions tagged or ask your own question.