OLE OBJECT from MSSQL to ORACLE, or save as image

Posted on 2012-04-10
Last Modified: 2013-03-01
In MS SQL there is a table with image in it.
1. I need to save that image to disk and write image name instead to the database (ORACLE)
2. I need to save that image into ORACLE database.

We have a new program wich works with ORACLE only. But the datasource as you have understood is MS SQL.
Need least painfull migration to ORACLE.
But, since the other department where I get data will continue using the MS SQL, this process should somehow easier as possible.

No problem if to use access.

Question by:masirof
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Author Comment

ID: 37831404
Any comments experts?
LVL 40

Accepted Solution

lcohan earned 168 total points
ID: 37833399
"In MS SQL there is a table with image in it.
1. I need to save that image to disk and write image name instead to the database (ORACLE)
2. I need to save that image into ORACLE database"

Please see how you can setup a Linked Server from SQL to ORACLE below:

Then use full(4) name quelifier queries or OPENQUERRY from SQL to insert/update a ORACLE table CLOB equivalent to image from SQL.
LVL 77

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 166 total points
ID: 37833749
>>insert/update a ORACLE table CLOB equivalent to image from SQL.

The Oracle equivalent is a BLOB not a CLOB.

I'm also not sure you can pull an Image/Blob across a linked server but I'm not a SQL Server person.

As a last resort if you can get the images saves to the OS as files you can use SQL Loader or DBMS_LOB.LOADBLOBFROMFILE (images need to be on the database server for this) to load them.
LVL 28

Assisted Solution

by:Ryan McCauley
Ryan McCauley earned 166 total points
ID: 37834156
Is there a reason you can't use the SQL Server client tools Import/Export wizard to do this for you? You should be able to connect to an MSSQL source and an Oracle destination and just copy the data over, including copying your IMAGE/VARBINARY field to an Oracle BLOB, which is the equivalent type.

Here's a walk-through of the process:

Author Comment

ID: 37835994
I will check that and come back here.
Thanks yet.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question