Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Using procedures instead of coding update/insert SQL...huh?

RE: Using procedures instead of coding update/insert SQL...huh?

From: Karniotis, Stephen <Stephen_Karniotis_at_compuware.com>
Date: Mon, 14 Jan 2002 08:42:08 -0800
Message-ID: <F001.003EF349.20020114075523@fatcity.com>

Chris:

   Advantage:
1. More control over modifications to any table. 2. Better QA process as DBAs can ensure that all updates are performed uniformly.
3. Less security involved as procedures act at the security of the owner, except in 9i where security is also executed at the user level as well. Cons:
1. Lots of extra code to write
2. What happens if update statements vary by type data? Can accommodate this or you pass WHERE clause to procedure 3. More Recursive PL/SQL executions to SYSTEM Tablespace.

Thank You

Stephen P. Karniotis
Technical Alliance Manager
Compuware Corporation
Direct: (248) 865-4350
Mobile: (248) 408-2918
Email: Stephen.Karniotis_at_Compuware.com
Web: www.compuware.com

 -----Original Message-----
Sent: Monday, January 14, 2002 10:10 AM

To:     Multiple recipients of list ORACLE-L
Subject:        Using procedures instead of coding update/insert SQL...huh?

I just joined a new Oracle/Java project using Tomcat app server. On this project they decided to create an update procedure and insert procedure for every table. This procedure is then called in the Java code with the appropriate parameters passed, instead of simply coding the UPDATE or INSERT SQL directly in Java.

Does anyone else take this approach? I'm trying to understand the pros vs cons of this approach.

TIA!!! Chris
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Grabowy, Chris
  INET: cgrabowy_at_fcg.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Karniotis, Stephen
  INET: Stephen_Karniotis_at_compuware.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Jan 14 2002 - 10:42:08 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US