473,785 Members | 2,283 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

data migration from SQL server to DB2

Hi

We need to migratedata for about 300 tables from MS SQL server database to
Linux DB2 V8.1.
Total size of all 300 tables is @ 3 GB.
We have converted tables DDL using IBM migration tool kit and created them
in DB2
but having tough time in transferring the data.
There are tons of identity colums (GENERATE ALWAYS AS IDENTITY) in these
tables.
Tried using DTS functionality of SQL server but we are getting too many
errors.
Any suggestions ?

Thanks in advance

Nov 12 '05 #1
6 7664
"Dave" <ad***@comcast. net> wrote in message
news:9_Swb.3068 34$Tr4.966018@a ttbi_s03...
Hi

We need to migratedata for about 300 tables from MS SQL server database to Linux DB2 V8.1.
Total size of all 300 tables is @ 3 GB.
We have converted tables DDL using IBM migration tool kit and created them in DB2
but having tough time in transferring the data.
There are tons of identity colums (GENERATE ALWAYS AS IDENTITY) in these
tables.
Tried using DTS functionality of SQL server but we are getting too many
errors.
Any suggestions ?

Thanks in advance

We probably need more specific information on the errors. However, in
general, you will have better luck with the import utility (rather than
load) when loading data with generated columns and the columns already have
data. Check the Command Reference for details.
Nov 12 '05 #2

"Mark A" <ma@switchboard .net> wrote in message
news:z9******** **********@news .uswest.net...
"Dave" <ad***@comcast. net> wrote in message
news:9_Swb.3068 34$Tr4.966018@a ttbi_s03...
Hi

We need to migratedata for about 300 tables from MS SQL server database to
Linux DB2 V8.1.
Total size of all 300 tables is @ 3 GB.
We have converted tables DDL using IBM migration tool kit and created

them
in DB2
but having tough time in transferring the data.
There are tons of identity colums (GENERATE ALWAYS AS IDENTITY) in these
tables.
Tried using DTS functionality of SQL server but we are getting too many
errors.
Any suggestions ?

Thanks in advance

We probably need more specific information on the errors. However, in
general, you will have better luck with the import utility (rather than
load) when loading data with generated columns and the columns already

have data. Check the Command Reference for details.


Thanks for quick response Mark.
I am trying to copy from MS SQL server database to DB2 database (and not
DB2 to DB2)
I though import & Load utilities of DB2 are meant for copying from one DB2
db to another DB2 db.
Here is one of the errors that we are getting while running DTS tool of
MS SQL server...
SQL0206N "<Column Name>" is not valid in the context where it is used.
SQLSTATE=42703
I guess my question is are there any good IBM tools or third party
tools that help us migrate the
data from SQL server to DB2 database ?

Thanks


Nov 12 '05 #3
"Dave" <ad***@comcast. net> wrote in message
news:hwTwb.3069 83$Tr4.967143@a ttbi_s03...

Thanks for quick response Mark.
I am trying to copy from MS SQL server database to DB2 database (and not DB2 to DB2)
I though import & Load utilities of DB2 are meant for copying from one DB2 db to another DB2 db.
Here is one of the errors that we are getting while running DTS tool of
MS SQL server...
SQL0206N "<Column Name>" is not valid in the context where it is used.
SQLSTATE=42703
I guess my question is are there any good IBM tools or third party
tools that help us migrate the
data from SQL server to DB2 database ?

Thanks

If you can export the data from MS SQL in fixed length (positional) or
delimited format ("|" works well as a delimiter, but any delimiter can be
defined) into regular sequential files, then you can use the import utility.
The data does not have to come from DB2. Make sure that dates are in the
format of YYYY-MM-DD, YYYY/MM/DD, MM-DD-YYYY, etc.

For medium to large tables, make sure you set the commit interval to about
500-1000 so you will not fill up the logs. Check the Command Reference for
details.

The load utility can also be used, but may be a problem with generated
always columns.

I have found that tools such as DTS are very good for lightening your
wallet, but not much else.
Nov 12 '05 #4
Dave,

Have you downloaded the Migration Toolkit (free).
Is has function to move the data.
There is a migration link of the DB2 homepage.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab

Nov 12 '05 #5
Thanks Serge & Mark....Let me try the options that you have suggested.

"Serge Rielau" <sr*****@ca.e ye-bee-m.com> wrote in message
news:bq******** **@hanover.toro lab.ibm.com...
Dave,

Have you downloaded the Migration Toolkit (free).
Is has function to move the data.
There is a migration link of the DB2 homepage.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab

Nov 12 '05 #6
Dave,

Have you looked at the identityoverrid e option for load?

Mark A wrote:
"Dave" <ad***@comcast. net> wrote in message
news:9_Swb.3068 34$Tr4.966018@a ttbi_s03...
Hi

We need to migratedata for about 300 tables from MS SQL server database


to
Linux DB2 V8.1.
Total size of all 300 tables is @ 3 GB.
We have converted tables DDL using IBM migration tool kit and created


them
in DB2
but having tough time in transferring the data.
There are tons of identity colums (GENERATE ALWAYS AS IDENTITY) in these
tables.
Tried using DTS functionality of SQL server but we are getting too many
errors.
Any suggestions ?

Thanks in advance


We probably need more specific information on the errors. However, in
general, you will have better luck with the import utility (rather than
load) when loading data with generated columns and the columns already have
data. Check the Command Reference for details.


Nov 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
10523
by: Tom Loach | last post by:
I have user that we just migrated his Access database to SQL Server. All went well with the migration, but then he came up with another requirement to be able to replicate the database to a local SQL server living on the hard drive of a laptop. Before the migration he just copied the entire Access databse to the lap top. I tried using the Copy SQL Server Objects Task to move the necessary tables from the production server to the laptop,...
4
3765
by: serge | last post by:
I am doing a test on migrating an Oracle 8i database to SQL 2000. I've never done this before and I would like to find out if there are any complications or side effects if I try doing the transfer of data using DTS? If not DTS then what would you suggest I transfer data with? Thank you
7
8073
by: Dave | last post by:
We are trying to migrate a MS SQL server app to DB2 8.1 Linux platform. Our database has got about 300+tables with total size - 150 GB We are using MS SQL's BCP utility to extract data from MS SQL's tables and loading into DB2 using DB2's LOAD utility. There are tons of colums of floating point types (singe precion & double precision types) in the database and when extracted using BCP, it generates data only upto 17 digits....
1
2681
by: rob | last post by:
Dear All, I have a very small test project to convert asp to asp.net using the Microsoft/Artisan ASP to ASP.NET Migration Assistant (http://msdn.microsoft.com/asp.net/using/migrating/aspmig/aspmigasst/default ..aspx). Everything works fine when my include file is in the same directory as the asp file that includes the include file. What I am having trouble with is that the migration tool doesn't see my include file when it resids in a...
1
2070
by: pankaj_wolfhunter | last post by:
Greeting, Can anyone tell me the points to keep in mind while migrating data from Sybase to DB2 especially in case of LOB data. I know the books available on the IBM site, but if still someone can provide me their own specific points? Any help will be appreciated. TIA
2
2759
by: contact1981 | last post by:
Hello, I am trying to migrate data from a DB2 database to SQL Server 2005 database. Does anyone know about any migration tool that does that? I have heard about DB2 Migration Tool kit, but I think you can only migrate data to a DB2 database with that. Thank you. Sincerely,
11
2578
by: Chad | last post by:
Hi Is it possible to substitute an alternative data source (eg MySQL or SQL Server) into an existing MS-Access application?
2
2771
by: TSrinivasan | last post by:
Hi All, I am doing data migration from SQL Server to Oracle using TOAD for the first time. I export data from SQL Server to a notepad file. I import data using TOAD from that notepad file. When I try to do for normal tables it works fine. When I am trying to import data which has IDENTITY column in the table it is not importing the data. Please do advice me. Thanks in advance, Srinivasan.T
1
1642
by: giff | last post by:
Hi We had a recent migration to a new server early this week (Tuesday). My database (and all the other files on the old server) were copied onto the new server. The old server is still up and running and some people inadvertantly entered data in the database on the old server over the past few days. I need to find out what was eroneously added to the database on the "old" server so I know what data I need to update in the real database on the...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10315
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10083
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9946
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.