"Business Logic / Rules should never be in the database or stored procedures"

From: BChase <bsc7080xxmqc_at_myoracleportal.com>
Date: Sat, 12 Dec 2009 04:58:42 -0500
Message-ID: <2ip6i5dptjtf8lfqq1dshl22cl2id03thq_at_4ax.com>

I have run into a differing of opinions in my shop and wish to hear comments from some of our seasoned individuals here.

I am architect within a fortune 500 company. My primary role has served around the Oracle Applications environment and Oracle database. We are currently on 11g and 11.5.10 Application tier. We do have Oracle Workflow, but most of our coding is PLSQL based stored procedures. From my understanding, there exist a blend of business logic between the database and the application layer for the Oracle Applications framework. I say this because of how Oracle expands the OA environment by adding modules. The rules have to go somewhere when so many of the framework pieces appear to be the same.

This all came about when an EA standard was posted about not parsing XML within stored procedures for performance reasons. My thought maybe it should have been an opportunity to educate and explain how to mitigate performance issues if one needed to pass XML objects to stored procedures and parse the information as opposed to a bold sweeping statement.

What is my problem ? Well assuming I am not misinterpeting things, my Enterprise Architect area and some non-Oracle knowledge architects feel that the business logic / rules should only be in the application tier. Only Create, Read, Update, and Delete operations belong in stored procedures. Reason being that the database cannot process the business rules efficiently nor can they effectively be managed. My contention is that they care coming at it from a typical application perspective, not an ERP perspective. I can understand workflow logic being externalized (aka Oracle Workflow), but the restricting stored procedures to CRUD operations only... would seem to belittle the power of the Oracle database and what it has to offer.

Mind you, these other individuals have primary backgrounds and experience with SQL Server. This may be where some of there performance short sightedness may come from, you think ?

Anyways, am I off my rocker about sayings its a blend, but that there definitely exist many opportunities for the business logic / rules to exist in the database... and should. BChase
(remove XX to contact)

Resource Library is now Online _at_ http://www.MyOraclePortal.com
Received on Sat Dec 12 2009 - 03:58:42 CST

Original text of this message