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: Database triggers question

RE: Database triggers question

From: Mercadante, Thomas F <NDATFM_at_labor.state.ny.us>
Date: Tue, 11 Jun 2002 11:33:32 -0800
Message-ID: <F001.0047AD8E.20020611113332@fatcity.com>


Raj,

I guess I would have a personal preference for a stored procedure called by the trigger, but for the life of me, can't declare that one is better than the other. Does replacing a trigger place an exclusive lock on the table will it is being processed? I don't think so, but if it did, it might be a good reason for not having it there.

The only other thing that I would worry about is the length of the PL/SQL. Is there a maximum length allowed? If so, having the processing in a packlage (that could call other packages) would help you there.

Again, I think I would move it out to a package.

hope this helps

Tom Mercadante
Oracle Certified Professional

-----Original Message-----
Sent: Tuesday, June 11, 2002 2:51 PM
To: Multiple recipients of list ORACLE-L

Testing is a taboo ...

Well, they do the testing, but it is never enough. Usually a release is followed by 2/3 emergency fixes for a real developer anyway. (before anyone jumps on this statement let me say is loudly that I have been a developer for past 7 years and just joined the dark side.)

My problem is, " is it a good idea to have large triggers or package the code and call it from triggers" ? Can someone throw a light on this?

Raj



Rajendra Jamadagni MIS, ESPN Inc.
Rajendra dot Jamadagni at ESPN dot com
Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art!

-----Original Message-----
Sent: Tuesday, June 11, 2002 1:27 PM
To: ORACLE-L_at_fatcity.com
Cc: Rajendra.Jamadagni_at_espn.com

Hmmm.... Sounds like you have some real duhvelopers there.

Unit testing of code is much easier when it's outside of a trigger.

But the folks you're working with may not do unit testing.

Is it possible? ;)

Jared

--

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

Author: Mercadante, Thomas F
  INET: NDATFM_at_labor.state.ny.us

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 Tue Jun 11 2002 - 14:33:32 CDT

Original text of this message

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