Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Trigger problems with 7.2.3
>>> blank lines removed >>
I am running 7.2.3 on an HPUX 10.10 system and this trigger will fail if
executed twice.
i.e. it won't replace it will however work find on 7.1.6. Any clues?
CREATE OR REPLACE TRIGGER RTX_001_ai
AFTER INSERT ON RTX_001 REFERENCING NEW AS NEW FOR EACH ROW WHEN ( NEW.SPECIAL_NUMBER_IND IS NULL OR NEW.SPECIAL_NUMBER_IND != 'T')begin
update_mpufdtab(nvl(:new.r_p_customer_id,0),
nvl(:new.r_p_contract_id,0), nvl(:new.rated_flat_amount,0) + nvl(:new.toll_rate,0) + nvl(:new.tap_net_rate,0) + nvl(:new.tap_tax_rate,0) + nvl(:new.roam_surcharge,0) );end;
I think that all triggers should have an exception clause in them to handle unexpected Oracle type errors, but this is besides the point.
Good Luck.
Mark Powell -- The only advise that counts is the advise that you follow
so follow your own advise
Received on Wed Apr 02 1997 - 00:00:00 CST
![]() |
![]() |