473,791 Members | 3,193 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1653
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
4513
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.) requête SQL: LOAD DATA LOCAL INFILE '/tmp/phpVfO8r8' INTO TABLE `fncid`
2
5007
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 template I'm generating: <x:ExcelName> <x:Name>Print_Titles</x:Name> <x:SheetIndex>1</x:SheetIndex> <x:Formula>='Initiative Status Report'!$4:$5</x:Formula> </x:ExcelName>
2
19436
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 entered as the event property setting produced the following error: Syntax error. *The expression may not result in the name of a macro, the name of a user
11
10183
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 test form. (this is test code I wrote to confirm the bug, not my actual code) private void button1_Click(object sender, System.EventArgs e) { XmlDocument xd = new XmlDocument();
0
1669
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 the .dll? In other words in the build type is set to Embedded can i still use the Load() method and call the .rpt out of the assembly somehow? or, if I am using the Load() method do I HAVE to set the build type to None
1
1299
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 directly it works, when using reflection none of the dll's is "scanned". I used following code to work around this problem. Now I just want to know if this is the/a good way to do it, or should I use another system.
0
2554
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 speed is quite variable -- sometimes really fast, sometimes quite slow, so I'm trying to identify ways to make it more consistent.
2
1617
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 keep everything blank (or have a "Loading screen..." message) until every is ready to display and THEN display it? Thanks for any help, Ron
2
2726
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 base component does NOT have a Load event as far as i can ascertain. What I need is to have a self-check function called when the component loads. I am currently using the "Layout" event but that can fire multiple times, and I can't just call...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10155
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
9995
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
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
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
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4110
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
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.