dbTalk Databases Forums  

Trigger for BLOB datatype

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


Discuss Trigger for BLOB datatype in the comp.databases.oracle.misc forum.



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

Default Trigger for BLOB datatype - 11-02-2006 , 06:11 AM






Hi,
I have a problem.I have two servers, server1 and server2.i want to
create a trigger in a server1 in a table so that when there is any DML
statement(say insert) occur then that will fire and the date will
store in server2.Till now every thing is fine but the problem is that
table contains a column of BLOB data type which stores image.
So plz, help me
from
shiv verma


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

Default Re: Trigger for BLOB datatype - 11-02-2006 , 10:58 AM






Shiv wrote:
Quote:
Hi,
I have a problem.I have two servers, server1 and server2.i want to
create a trigger in a server1 in a table so that when there is any DML
statement(say insert) occur then that will fire and the date will
store in server2.Till now every thing is fine but the problem is that
table contains a column of BLOB data type which stores image.
So plz, help me
from
shiv verma
What version of Oracle?

What problem? I don't see an Oracle error message in what you posted.

What code did you write? Post it.

I fail to see what relevance a BLOB column has with pushing a date
to another server. You need to explain further what issue you are
confronting.
--
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
  #3  
Old   
Shiv
 
Posts: n/a

Default Re: Trigger for BLOB datatype - 11-02-2006 , 11:16 PM




Hi,
The version is Oracle 9i.I am sorry to say that there was some
mistake in mentioning my problem.There are two different problems at
two different point of time.The first one is..........
I have two servers, server1 and server2.i want to create a trigger in
a server1 for a table so that when there is any DML statement(say
insert,delete or update) occur then that will fire and the data not
the date will store in server2.It works fine in simple cases.but my
table also contains a column of BLOB data type which stores image.
Now the problem two is at some different point of time not related to
the above one.......................
When i am inserting the data that is image then we are first using
empty BLOB and after that updating it.Is there any way to insert the
image in only one step.
Thanks for your help.
help me
from
shiv verma


Reply With Quote
  #4  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: Trigger for BLOB datatype - 11-03-2006 , 02:14 AM



Shiv schreef:
Quote:
Hi,
I have a problem.I have two servers, server1 and server2.i want to
create a trigger in a server1 in a table so that when there is any DML
statement(say insert) occur then that will fire and the date will
store in server2.Till now every thing is fine but the problem is that
table contains a column of BLOB data type which stores image.
So plz, help me
from
shiv verma

insert all non-blob data, then update the blob.

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...


Reply With Quote
  #5  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: Trigger for BLOB datatype - 11-03-2006 , 02:55 AM




Shiv schreef:

Quote:
Hi,
The version is Oracle 9i.I am sorry to say that there was some
mistake in mentioning my problem.There are two different problems at
two different point of time.The first one is..........
I have two servers, server1 and server2.i want to create a trigger in
a server1 for a table so that when there is any DML statement(say
insert,delete or update) occur then that will fire and the data not
the date will store in server2.It works fine in simple cases.but my
table also contains a column of BLOB data type which stores image.
Now the problem two is at some different point of time not related to
the above one.......................
When i am inserting the data that is image then we are first using
empty BLOB and after that updating it.Is there any way to insert the
image in only one step.
Thanks for your help.
help me
from
shiv verma
Did you try it? What error did you get?
Would the error not lead you to believe this cannot be done?
I bet you get an ORA-22992...
Anyway, there are some workaround... See:
http://asktom.oracle.com/pls/ask/f?p...D:950029833940



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.