Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DB2 to Teradata.

Status
Not open for further replies.

susheeltips

Programmer
Nov 8, 2001
60
0
0
US
Hi!

Could someone help me out in mentioning the methodologies of converting/moving the database lying in DB2 to Teradata.

Thanks in advance.
 
There might be some third party tools to directly connect from Teradata to DB2 and move the data across. I cannot provide you any details on that aspect. I suspect that there is not much out there since this is typically a one shot deal.

Therefore, most people take the straight-forward approach of just unloading the data from the source DBMS (DB2 in your case) to flat files writting the tables in the host format (EBCIDIC or ASCII).

The question you have to ask is 1.) What are the volumes of data to move?, and 2.) Is this a repeatable process? If it is to become a repeatable process then you are likely to be more concerned about optimization. If the data volumes are large (100 M rows or more let's say) then you also might want to consider the most optimal process.

Once the data is extracted to flat files they can be loaded using one of a couple of utilities. These utilities can be run from the mainframe (assuming your DB2 database is running from the mainframe) and you have mainframe channel connectivity. This is often more efficient that transferring the files to the Teradata Unix server where the utilities can be run as well.

The process is similar if using FastLoad or Multiload, just defining the flat file columns and mapping them to the corresponding columns under Teradata. It is often easier if you define the columns in the flat files extracted from DB2 as all character data type since you will not run into any data type conversion issues. However, you certainly can dump numeric data as numeric. Teradata can generally read these type columns without problems.

If you do not have a large volume of data than you might consider an ODBC connection to both DB2 and Teradata. Then just copy the data from DB2 and paste it into the new Teradata table(s).

There are many different methods that could be employed. I have just mentioned the ones that come to the top of my list.

Regards, Doug Drake
(MOZC)
 
one more issue I found the hard way is if there is a varchar field unload to a variable length (VB) dataset in mainframe or else convert every varchar field to char during unload and then write out to a fixed length (FB)dataset.
 
Hi!

Thank you guys for the information given and i would also like to the methodologies if it is the other way, i mean from Teradata to DB2. (Would the same apply for that?)

Thanks in advance,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top