Click here to Skip to main content
15,880,503 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There is a seperate oracle database used for a system
That database contains a table named per_images that contains columns like image_id,parent_id ,table_name and image(data type is BLOB for image)

I wrote a windows service to fetch data from similar other tables using db link [a simple sql query for dblink: select userid,emailid from table_name@dblink.xyz.com and it's working fine]and insert / update some tables inside sql server database depending on any changes done in oracle database [I can fetch other data types like, datetime, varchar, numeric except BLOB data type]

If any one could try this issue, I am getting error if i execute dblink query for blob data type

What I have tried:

NOT WORKING: select image_id,parent_id ,table_name,image from table_name@dblink.xyz.com

WORKING: select image_id,parent_id ,table_name from table_name@dblink.xyz.com
here I removed blob type i.e. image, but that is what i required
Posted
Updated 24-Feb-16 7:40am
Comments
Jörgen Andersson 24-Feb-16 2:32am    
And what's the error message?
Jörgen Andersson 24-Feb-16 2:35am    
Is the error message by any change ORA-22992?
Then take a look at this link: https://technology.amis.nl/2012/07/02/select-a-blob-across-a-database-link-without-getting-ora-22992/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900