Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Enterprise
Expertise: Beginner
Mar 20, 2001



Building the Right Environment to Support AI, Machine Learning and Deep Learning

DB2 in AS/400 to Oracle?

Hi all,

DB2 in AS/400 to Oracle?


This tip provided by Experts Exchange.



Hi all,
My client want to migrate DB/2 for AS/400 to Oracle 8i/9i. Is there any migration toolkit to do this?
And which file format does Oracle import utility supported?
I'm looking for your reply



There isn't one directly (yet??) ---

However, you can try the ODBC Migration Utility --- it should be able to connect...

Another option might be to utilize the Oracle Transparent Gateway product to connect the oracle database
to the db2/400 database....

Take a look at the manual: Oracle8i Distributed Database Systems
Chapter 6, Oracle Heterogeneous Services Concepts

This looks like it is more labor intensive of a conversion method -- but it beats doing everything from
scratch with csv files and sqlldr!




Thanks for your help!
What is 'ODBC Migration Utility'? I try to find it from Oracle's website but I couldn't. Is it a third
party tool?



Its at http://technet.oracle.com/
Technologies --> Migration Toolkits -->  OBBC/CLIPPER/PARADOX




Proposed Answer:

ODBC is a neat solution but is very slow. It is good to use the native drivers for migration.

If your migration is a one time process then no use buying the costly open gateway or migration utility
for DB2.

I'll suggest a clean and cost effective approach.

Export the data from DB2 to ASCII text files using the export command.

create the tables in the oracle schema with the same structure as that of DB2 (you can get the SQL script
from DB2 and execute at oracle)

Then use the SQL Loader tool of Oracle (it comes with Oracle) to load the ASCII text files to the database,
for SQL Loader you will have to write the control (.CTL) files. which is not very huge task and can be
done easily.

I can send you code to generate CTL files automatically.

write to me at arun@ggn.aithent.com



Hi --
The Migration Utility for Oracle is FREE from oracle.. In fact, the Migration Utility is bundled with
the 8i  Server & client release CDs.

I agree the native drivers would be faster, however, ODBC migration utility would be far faster than
the using the SQL*Loader utility....

BTW -- POST the CTL files instead of sending them -- it is unfair to others would like to view the solution.



Written on 2/04/2001

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date