473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Using "load" to migrate a database to db2

Hello,

I am using "load" to get the table data from another database into a DB2
database. This works quite well (before that I used "import" which is,
as it commits each "line", very slow). The problem I have now is that
when I insert some data into one table a table which stores forgein keys
from the first table has no data yet - so the table loses its
"integrity". So I have to run "set integrity" for each table (and in the
right order). Is there a was to let db2 to the work without my help?

Another question is: what happend to my indexes. I use the "INDEXING
MODE AUTOSELECT" option. Are the indexes rebuild or not (and how can I
find out...)

Thanks.

Greetings, Jan
Nov 12 '05 #1
2 1633
Ian
Jan Suchanek wrote:
Hello,

I am using "load" to get the table data from another database into a DB2
database. This works quite well (before that I used "import" which is,
as it commits each "line", very slow). The problem I have now is that
when I insert some data into one table a table which stores forgein keys
from the first table has no data yet - so the table loses its
"integrity". So I have to run "set integrity" for each table (and in the
right order). Is there a was to let db2 to the work without my help?
No, unfortunately not. You could defer creation of your foreign keys
until all loads are complete (thereby eliminating the 'set integrity'
commands).
Another question is: what happend to my indexes. I use the "INDEXING
MODE AUTOSELECT" option. Are the indexes rebuild or not (and how can I
find out...)


This is shown in the OUTPUT for load.


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 12 '05 #2
Ian wrote:
No, unfortunately not. You could defer creation of your foreign keys
until all loads are complete (thereby eliminating the 'set integrity'
commands).

This would be a solution... but how do I start the creation of the fk
after I have finish all loads?

Thanks.

Greetings, Jan
Nov 12 '05 #3

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

Similar topics

3
by: Otto | last post by:
Hello to all I have a problem how to write correctly a PHP string. I did the following import with the help of PHPMyAdmin: Nombre d'enregistrements insérés : 364 (traitement: 0.0553 sec.)...
2
by: Vincent | last post by:
I am trying to generate Excel worksheets using .Net. The worksheets are actually HTML pages with Excel specific XML elements. Everything works fine until I added these following code in the...
2
by: Michelle | last post by:
Hello all, I recently inherited a SQL 7.0 Server db accessed by a 2000 Access interface. When I try to open "Shipping Check Out" I am greeted with the following: The expression On Load you...
11
by: bleedledeep | last post by:
I've been tracking down a memory leak using DevPartner 7.2 and what I am seeing is that calling XmlDocument.Load() leaks A LOT of memory. The following code is called when I click a button on my...
0
by: mmj | last post by:
If I am loading my reports in this fashion ReportDocument.Load("MyReport.rpt") Is there a way to do this and still have the .rpt file's build type be set to EmbeddedResource which makes it in...
1
by: Dominique Vandensteen | last post by:
I want to dynamicly load a type (typename is defined in the database). This type is located in the exe itself or one of the dll's in the directory with the exe file. When creating an instance...
0
by: pcosway | last post by:
(originally posted in database.myodbc by mistake) I'm trying to speed up a fulltext search (MySQL 5.0.21, table has 670,000 records, about 900MBytes, machine has 1GB memory). Fulltext search...
2
by: Ronald S. Cook | last post by:
In my Windows app, when you click to load a form, it kind of draws part of some controls as it's doing other things and then finally draws everything. This looks bad. Is there a way I can just...
2
by: ZBINContact | last post by:
I am creating a self-checking set of usercontrols. They tend to call their self-checking functionally in the "Load" event. I have run into a problem with my TextBox usercontrol, however, as the...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.