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: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).
