dbTalk Databases Forums  

Trigger

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Trigger in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Shiv
 
Posts: n/a

Default Trigger - 11-06-2006 , 07:13 AM






Hi,
I have written a trigger on a server say server2 as below and is
working fine,but here i am using empty_blob(),and in server2 i am
inserting image also and i want the complete replication on server1 .
CREATE TRIGGER IMIGRATION.TR2P_IM_BLIST_IMAGE
AFTER INSERT ON IMIGRATION.IM_BLIST_IMAGE FOR EACH ROW

BEGIN


IF ( INSERTING ) THEN

INSERT INTO IMIGRATION.IM_BLIST_IMAGE@srv2_to_srv1 VALUES
(:new.LOC_PHOTO_SRNO, :new.LOC_SUSPT_SRNO, EMPTY_BLOB(),
:new.ENTRY_DATE, :new.USER_ID);



END IF;



END;


Reply With Quote
  #2  
Old   
DA Morgan
 
Posts: n/a

Default Re: Trigger - 11-06-2006 , 12:12 PM






Shiv wrote:
Quote:
Hi,
I have written a trigger on a server say server2 as below and is
working fine,but here i am using empty_blob(),and in server2 i am
inserting image also and i want the complete replication on server1 .
CREATE TRIGGER IMIGRATION.TR2P_IM_BLIST_IMAGE
AFTER INSERT ON IMIGRATION.IM_BLIST_IMAGE FOR EACH ROW

BEGIN


IF ( INSERTING ) THEN

INSERT INTO IMIGRATION.IM_BLIST_IMAGE@srv2_to_srv1 VALUES
(:new.LOC_PHOTO_SRNO, :new.LOC_SUSPT_SRNO, EMPTY_BLOB(),
:new.ENTRY_DATE, :new.USER_ID);



END IF;



END;
Update the BLOB.

Though it seems to me that using AQ might be another solution.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.