Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Over the past year I have found your site to be EXCELLENT. Never have I been able to find so many answers to such vast problems and it is an excellent service..."

Geography

Where in the world do Tek-Tips members come from?
susheeltips (Programmer)
4 Feb 02 12:26
Hi!

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

Thanks in advance.
Mozc (Programmer)
4 Feb 02 13:52
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)

vijayvg (MIS)
5 Feb 02 4:03
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.
susheeltips (Programmer)
5 Feb 02 11:14
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,

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close