sql - ORA 04088 Trigger Issue -


i have trigger populate geometry column after update or new record created. trigger have built follows:

create or replace trigger sfs_trigger  after insert or update on sports_facilities_strategy  begin   update sports_facilities_strategy      set geometry = mdsys.sdo_geometry(2001,81989, mdsys.sdo_point_type(easting,                                                                         northing,                                                                         null),                                        null,null);  end; 

however keep getting following error message:

ora-04088: error during execution of trigger 'gis_admin.sfs_trigger'
ora-06512: @ "gis_admin.sfs_trigger", line 2

i struggling around time of update i'm stuck! help/suggestions appreciated.

the update in trigger re-fire same trigger, loop forever - error oracle killing loop.

to set geometry field on row causing trigger fire, don't issue update, use :new syntax set value. think want before trigger though...

create or replace trigger sfs_trigger  before insert or update on sports_facilities_strategy  each row begin   :new.geometry := mdsys.sdo_geometry(2001,81989,     mdsys.sdo_point_type(:new.easting, :new.northing, null), null,null); end; / 

... assuming northing , easting columns in sports_facilities_strategy table)

which similar this example in documentation.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -