A long journey to migrate from Oracle to DB2

Source: Internet
Author: User
Tags ibm db2

Migration environment Configuration:

Data source:BNET Development Environment Data

Server:SunOS v880 5.8

Database:Oracle 9.2.0.4 & DB2 8.2

Migration tool:IBM DB2 Migration Toolkit 1.3

I. Table migration

1. Index length limit

In DB2, the maximum length of a field corresponding to a single index is 1024 characters.

Table Name:T_BIZPROC_INST_PARAM, T_BIZPROC_INST_ACTIVITY_PARAM

Solution:

(1) create different indexes for different fields in the case of a combined index

(2) modify the field type Length

2. Table Field Type

The NVARCHAR2 field type cannot be converted.

Table Name:T_IBSS_REL_TEST

Solution:Change to varchar Field Type

3. Table size and length limit

The table size exceeds the database page size by 4 kb.

Solution:Create a tablespace for the appropriate page (8 K)

4. The unique index and primary key fields are repeated.

DB2 does not allow fields with unique indexes to be repeated with primary key fields.

Table Name:T_NODE

Solution:Delete a unique index

5. Migration of large fields (BLOB, LONG)

Solution:

(1) DB2 migration tool

(2) write an INSERT script separately to migrate data

2. Synonym migration

1. solution:Write a script separately, for example, create alias alias_name for table_name.

Iii. Sequence migration

1. Sequence in DB2 can be in two forms:

(1) It exists independently like an ORACLE database.

(2) similar to SYBASE databases, they can be defined in Table fields.

2. solution:Because the upper limit of ORACLE sequence settings is relatively large, an error occurs if the maximum length type generated by ORACLE sequence migration through DB2 conversion tools. You need to manually Replace the DECIMAL (27,0) field type with the bigint field type with a length of 18.

Iv. Storage Process Migration

1. dynamic SQL statement syntax is different

Note: The stored procedure is not described in detail in the BNET production environment database.

  • Database migration should not be ignored
  • Where to go for database migration
  • SQL Server database migration remedies
  • SQL Server database minimal downtime migration Solution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.