Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

OLE OBJECT from MSSQL to ORACLE, or save as image

Posted on 2012-04-10
7
Medium Priority
?
383 Views
Last Modified: 2013-03-01
Hello,
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)
or
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.

Thanks!!!!
0
Comment
Question by:masirof
[X]
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
7 Comments
 
LVL 6

Author Comment

by:masirof
ID: 37831404
Any comments experts?
0
 
LVL 40

Accepted Solution

by:
lcohan earned 672 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)
or
2. I need to save that image into ORACLE database"


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

http://support.microsoft.com/kb/280106
http://www.mssqltips.com/sqlservertip/1433/how-to-setup-linked-servers-for-sql-server-and-oracle-64-bit-client/

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

http://msdn.microsoft.com/en-us/library/ms188427(v=sql.100).aspx
0
 
LVL 77

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 664 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.
0
 
LVL 28

Assisted Solution

by:Ryan McCauley
Ryan McCauley earned 664 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:

http://www.databasejournal.com/features/mssql/article.php/3580216/SQL-Server-2005-Import--Export-Wizard.htm
0
 
LVL 6

Author Comment

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

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Suggested Courses

650 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