473,549 Members | 2,408 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Interesting problem migrating 7.2 ->8.2

I've hit an interesting trap trying to migrate data off an OS/2 server
running version 7.2 (fp14) over to 8.2 on Linux. Seems that one table has
a column defined in the DDL as "BIGINT NOT NULL GENERATED ALWAYS AS
IDENTITY (START WITH +1, INCREMENT BY +2, NO CACHE)". Any rows in that
table will kill db2move. EXPORT to IXF succeeds, but attempting to
load/import the file refuses to load any rows. The really scary part is
that this table also refuses to restore on the OS/2 system - although the
backup has no problem with it. IOW, there is no way to recover/transfer
this table without a real kludge - like exporting to .del select (all but
that row) ordered by (that row) then importing the data from the .del file
maintaining the sequential order of the original entries. Since it is
purely sequential and determinate, that works but what a hassle! I have no
clue about what the original design intended for that column to represent
and it does not appear to be referenced by any other tables or functions so
the recreation should work.

The real question is what to do with the new server. I can see where
re-loading this table from scratch has a "can't get there from here" flaw
in the logical design so what is the best way to replicate the
functionality of the column (I have no idea what the user apps might be
doing with it) without re-creating the problems it causes?

--
Will Honea
wh****@yahoo.co m
Apr 26 '07 #1
5 1959
Will Honea wrote:
I've hit an interesting trap trying to migrate data off an OS/2 server
running version 7.2 (fp14) over to 8.2 on Linux. Seems that one table has
a column defined in the DDL as "BIGINT NOT NULL GENERATED ALWAYS AS
IDENTITY (START WITH +1, INCREMENT BY +2, NO CACHE)". Any rows in that
table will kill db2move. EXPORT to IXF succeeds, but attempting to
load/import the file refuses to load any rows. The really scary part is
that this table also refuses to restore on the OS/2 system - although the
backup has no problem with it. IOW, there is no way to recover/transfer
this table without a real kludge - like exporting to .del select (all but
that row) ordered by (that row) then importing the data from the .del file
maintaining the sequential order of the original entries. Since it is
purely sequential and determinate, that works but what a hassle! I have no
clue about what the original design intended for that column to represent
and it does not appear to be referenced by any other tables or functions so
the recreation should work.

The real question is what to do with the new server. I can see where
re-loading this table from scratch has a "can't get there from here" flaw
in the logical design so what is the best way to replicate the
functionality of the column (I have no idea what the user apps might be
doing with it) without re-creating the problems it causes?
I can't comment on the db2move problem, or your restore problem.
But in DB2 V9.2 you can create a the table without teh identity property.
LOAD or IMPORT the data.
Then ALTER TABLE ALTER COLUMN to add back teh identity attributes with a
new START WITH value or use teh old START WITH value followed by yet
another ALTER TABLE with a RESTART.
Again, I'm not sure why you have these problem, but this will make your
workaround work.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Apr 26 '07 #2
Ian
Will Honea wrote:
I've hit an interesting trap trying to migrate data off an OS/2 server
running version 7.2 (fp14) over to 8.2 on Linux. Seems that one table has
a column defined in the DDL as "BIGINT NOT NULL GENERATED ALWAYS AS
IDENTITY (START WITH +1, INCREMENT BY +2, NO CACHE)". Any rows in that
table will kill db2move. EXPORT to IXF succeeds, but attempting to
load/import the file refuses to load any rows. The really scary part is
that this table also refuses to restore on the OS/2 system - although the
backup has no problem with it. IOW, there is no way to recover/transfer
this table without a real kludge - like exporting to .del select (all but
that row) ordered by (that row) then importing the data from the .del file
maintaining the sequential order of the original entries. Since it is
purely sequential and determinate, that works but what a hassle! I have no
clue about what the original design intended for that column to represent
and it does not appear to be referenced by any other tables or functions so
the recreation should work.
>
The real question is what to do with the new server. I can see where
re-loading this table from scratch has a "can't get there from here" flaw
in the logical design so what is the best way to replicate the
functionality of the column (I have no idea what the user apps might be
doing with it) without re-creating the problems it causes?

Will,

db2move (at least in V8) doesn't deal with generated always identity
columns.

However, if you look at the db2move.lst file, you can determine which
..IXF file contains the data for the table in question. You can then use
the LOAD utility and specify "modified by identityoverrid e" to load the
data from the .IXF file.

Apr 26 '07 #3
How does it fail, what messages do you see? Are you using 'modified
by identityoverrid e' in your LOAD command?

/T

On Apr 26, 12:29 am, Will Honea <who...@yahoo.c omwrote:
I've hit an interesting trap trying to migrate data off an OS/2 server
running version 7.2 (fp14) over to 8.2 on Linux. Seems that one table has
a column defined in the DDL as "BIGINT NOT NULL GENERATED ALWAYS AS
IDENTITY (START WITH +1, INCREMENT BY +2, NO CACHE)". Any rows in that
table will kill db2move. EXPORT to IXF succeeds, but attempting to
load/import the file refuses to load any rows. The really scary part is
that this table also refuses to restore on the OS/2 system - although the
backup has no problem with it. IOW, there is no way to recover/transfer
this table without a real kludge - like exporting to .del select (all but
that row) ordered by (that row) then importing the data from the .del file
maintaining the sequential order of the original entries. Since it is
purely sequential and determinate, that works but what a hassle! I have no
clue about what the original design intended for that column to represent
and it does not appear to be referenced by any other tables or functions so
the recreation should work.

The real question is what to do with the new server. I can see where
re-loading this table from scratch has a "can't get there from here" flaw
in the logical design so what is the best way to replicate the
functionality of the column (I have no idea what the user apps might be
doing with it) without re-creating the problems it causes?

--
Will Honea
who...@yahoo.co m

Apr 26 '07 #4
How does it fail, what error messages do you get? Are you using
'modified by itentityoverrid e' in your LOAD statement?

/T

On Apr 26, 12:29 am, Will Honea <who...@yahoo.c omwrote:
I've hit an interesting trap trying to migrate data off an OS/2 server
running version 7.2 (fp14) over to 8.2 on Linux. Seems that one table has
a column defined in the DDL as "BIGINT NOT NULL GENERATED ALWAYS AS
IDENTITY (START WITH +1, INCREMENT BY +2, NO CACHE)". Any rows in that
table will kill db2move. EXPORT to IXF succeeds, but attempting to
load/import the file refuses to load any rows. The really scary part is
that this table also refuses to restore on the OS/2 system - although the
backup has no problem with it. IOW, there is no way to recover/transfer
this table without a real kludge - like exporting to .del select (all but
that row) ordered by (that row) then importing the data from the .del file
maintaining the sequential order of the original entries. Since it is
purely sequential and determinate, that works but what a hassle! I have no
clue about what the original design intended for that column to represent
and it does not appear to be referenced by any other tables or functions so
the recreation should work.

The real question is what to do with the new server. I can see where
re-loading this table from scratch has a "can't get there from here" flaw
in the logical design so what is the best way to replicate the
functionality of the column (I have no idea what the user apps might be
doing with it) without re-creating the problems it causes?

--
Will Honea
who...@yahoo.co m

Apr 26 '07 #5
That still leaves the problem of backup/restore - an unpleasant prospect.

I never got to the import phase - the db2look turned out to be ending the
ddl output without the last couple of lines (like forgetting to flush a
cache?) so even the create script was failing. Connecting from the Linux
side and running that version of db2look got me past that hurdle and the
rest of the db2move seems to have gone well.

Turns out, the OS/2 server is running in a service center that updates the
main data center nightly and they are the ones using the transaction ID -
we never see it again. Once I got the DBAa back East to stop laughing
about STILL having an OS/2 DB2 server in use we determined that it would be
permissible to use a function in the user code to retrieve a transaction ID
from the server and convert the field to just plain NOT NULL. Creating
another table that maintains a last-used ID number based on a clock
algorithm with appropriate locking seems to have cured my concerns. Now I
can complete this little exercise and re-retire - until they find another
OS/2 problem that justifies my rates or finally retire the OS completely.

Thanks for the import tip, BTW.
Tomas wrote:
How does it fail, what messages do you see? Are you using 'modified
by identityoverrid e' in your LOAD command?
/T

On Apr 26, 12:29 am, Will Honea <who...@yahoo.c omwrote:
>I've hit an interesting trap trying to migrate data off an OS/2 server
running version 7.2 (fp14) over to 8.2 on Linux. Seems that one table
has a column defined in the DDL as "BIGINT NOT NULL GENERATED ALWAYS AS
IDENTITY (START WITH +1, INCREMENT BY +2, NO CACHE)". Any rows in that
table will kill db2move. EXPORT to IXF succeeds, but attempting to
load/import the file refuses to load any rows. The really scary part is
that this table also refuses to restore on the OS/2 system - although the
backup has no problem with it. IOW, there is no way to recover/transfer
this table without a real kludge - like exporting to .del select (all but
that row) ordered by (that row) then importing the data from the .del
file
maintaining the sequential order of the original entries. Since it is
purely sequential and determinate, that works but what a hassle! I have
no clue about what the original design intended for that column to
represent and it does not appear to be referenced by any other tables or
functions so the recreation should work.

The real question is what to do with the new server. I can see where
re-loading this table from scratch has a "can't get there from here" flaw
in the logical design so what is the best way to replicate the
functionalit y of the column (I have no idea what the user apps might be
doing with it) without re-creating the problems it causes?

--
Will Honea
who...@yahoo.c om
--
Will Honea
Apr 27 '07 #6

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

Similar topics

0
2035
by: Zvika Glickman | last post by:
I'm migrating DB2 to ORACLE 9I. In the DB2 schema each table defined in diferrent tablespace. Few tablespaces are define on the same STOGROUP (there are few STOGROUP). It's a big db (few terra bytes). There are tousands of tables, so also thousands of tablespace. When i'm migrating to Oracle: Is it right to define oracle tablespace for each...
0
1769
by: steve | last post by:
I am having huge problems migrating large db’s from one server to another. I use phpmyadmin to dump the data into a file, and then migrate it to my production server. Then I try to use this: mysql dbname < filename but if the tables are too large, it simply does not work. So I tried the following two work-arounds, which work but are...
4
8503
by: Bernardo Robelo | last post by:
Hi, I am interested in migrating Microsoft Access database to Postgres database. But I do not have idea of like initiating. Maybe some tool exists for this problem. Thanks you. Bernardo
4
1711
by: Juan | last post by:
I'm migrating a VB.Net app to c# and found the following: Private m_State(,) As Integer If anyone knows what is the analogous in c#... is it an array? Thanks, Juan.
6
2749
by: Shai Levi | last post by:
Hi, I'm trying to migrate native c++ class to managed c++ class. The native class header definition looks as: class NativeClass { public: typedef void (CbFunc1)(int n,void* p);
3
1821
by: BobRoyAce | last post by:
I would really appreciate recommendations for sources of materials on migrating ASP applications to ASP.NET (books, URL's, etc.). Also, is there a magazine that is particularly good for .NET stuff. I am just starting my journey into the .NET world, moving from a pure ASP one.
2
3214
by: Jean-Claude Adams | last post by:
Hi Folks. I need some tutorial or some expertice about the subject. Because, i'm have a customer, need's change the actual appl, but the only issue is a dbf database, and the GUI is the older blue screen. You know, it's very old and huge data to migrating. Well, the challenge for me now, it's create the structure and change thhe...
4
2603
by: Collin Peters | last post by:
I have searched the Internet... but haven't found much relating to this. I am wondering on what the best practices are for migrating a developmemnt database to a release database. Here is the simplest example of my situation (real world would be more complex). Say you have two versions of your application. A release version and a...
12
4641
by: jdokos | last post by:
Does anyone know of any good sources (white papers, etc.) regarding migrating from Teradata to DB2 UDB EEE? We are in the very beginning stages of investigating this as an option for some of the smaller projects that are going to Teradata presently. Thanks in advance for any and all information. Jeff
34
4020
by: subramanian100in | last post by:
Is there any difference between porting and migrating. Kindly explain
0
7467
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...
0
7736
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. ...
0
7982
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...
1
7500
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...
0
7827
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...
0
5110
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...
0
3514
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...
1
1961
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
0
783
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...

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.