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

Home -> Community -> Usenet -> c.d.o.tools -> LONG fields inside a trigger.

LONG fields inside a trigger.

From: Morten Primdahl <morten_at_caput.com>
Date: Wed, 21 Mar 2001 17:53:14 +0100
Message-ID: <3AB8DC7A.37E131AD@caput.com>

Hi. Is it at all possible to do something like:

CREATE TRIGGER ...
 INSERT INTO some_other_table (long_field)  VALUES ('string A'||:new.this_long_field||'string B');

I've tried near anything - reading the new long field into a cursor long variable which was illegal (mutating table), reading it from a view - same deal. The above technique results in a "ORA-03113: end-of-file on communication channel" on 8.1.6.1.

So, is there any way AT ALL, inside a trigger, to stream/insert the updated LONG value of a table into another table? I have to be able to modify it slightly, ie. wrap it in tags like '<datablock>'||longField||'</datablock>' which is usually legal with LONGs in PL/SQL. I'm awfully stuck, any help greatly appreciated.

Morten

-- 
Morten Primdahl         Caput A/S       Tel +45 70 12 24 42
morten_at_caput.com        Nygade 6        Fax +45 70 11 24 42
http://www.caput.com/   DK-1164 Kbh K
Received on Wed Mar 21 2001 - 10:53:14 CST

Original text of this message

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