Migrating from Oracle . . . to IBM Informix Dynamic Server on Linux, UNIX, and Windows
Total Page:16
File Type:pdf, Size:1020Kb
Front cover Migrating from Oracle . to IBM Informix Dynamic Server on Linux, UNIX, and Windows Developing a Data and Applications Migration Methodology Understanding IDS and Oracle DBMS Functionality Using the IBM Migration Tool Kit as Your Guide Chuck Ballard Holger Kirstein Srinivasrao Madiraju Sreeni Paidi Nora Sokolof Renato Spironelli ibm.com/redbooks International Technical Support Organization Migrating from Oracle . to IBM Informix Dynamic Server on Linux, UNIX, and Windows June 2009 SG24-7730-00 Note: Before using this information and the product it supports, read the information in “Notices” on page ix. First Edition (June 2009) This edition applies to Oracle 10g and IBM Informix Dynamic Server 11. © Copyright International Business Machines Corporation 2009. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . ix Trademarks . x Preface . xi The team that wrote this book . xii Become a published author . xiv Comments welcome. xiv Chapter 1. Introduction. 1 1.1 Migrating . 4 1.2 Positioning IDS . 5 1.3 Informix Dynamic Server editions . 6 1.4 IDS functionality . 9 Chapter 2. Architectural overview . 15 2.1 The basic architectures . 16 2.1.1 Memory architectures . 17 2.1.2 Process architectures . 23 2.1.3 Physical database structures . 28 2.1.4 Logical database structures . 32 2.1.5 Data dictionary and system catalog . 35 2.1.6 Database server communication. 38 2.2 IDS licensing . 40 2.3 Terminology. 41 Chapter 3. Migration methodology . 43 3.1 An IBM migration methodology . 44 3.2 Migration preparation . 45 3.2.1 Performing the migration assessment. 45 3.2.2 Understanding and selecting migration tools . 46 3.2.3 Estimating the effort required . 47 3.2.4 Environment preparation. 48 3.2.5 Getting educated on the Informix Dynamic Server . 49 3.3 Migration . 49 3.3.1 Database migration and design . 49 3.3.2 Calibration . 50 3.3.3 Application migration. 51 3.4 The Test Phase . 52 3.4.1 Migration refresh . 52 © Copyright IBM Corp. 2009. All rights reserved. iii 3.4.2 Data migration. 52 3.4.3 Testing . 53 3.5 Implementation and cutover phase . 56 3.6 Related information resources . 57 Chapter 4. IBM Migration Tool Kit: An introduction . 59 4.1 The MTK for Oracle migrations to IDS . 60 4.2 Overview of features and functionality . 61 4.2.1 The five step migration process . 61 4.3 Inside the Oracle converter component . 66 4.3.1 Translating tables, indexes, and views . 68 4.3.2 Translating built-in functions . 68 4.4 How to install, configure, and execute the MTK . 69 4.4.1 System requirements . 70 4.4.2 Installing MTK . 71 4.4.3 Starting MTK . 72 Chapter 5. An MTK tutorial . 73 5.1 Part 1: Core database object migration. 75 5.1.1 Create a project. 75 5.1.2 Work with the project. 77 5.1.3 Other useful features. 91 5.1.4 Additional MTK features . 99 5.1.5 Summary of best practices when using the MTK . 100 5.2 Part II: Database application object migration. 101 5.2.1 Migration of application objects: Lessons learned . 109 Chapter 6. SQL considerations . 111 6.1 DDL . 112 6.1.1 Database creation . 112 6.1.2 Tables . 113 6.1.3 Views. 129 6.1.4 Sequences . 130 6.1.5 Synonyms . 131 6.1.6 Triggers . 133 6.1.7 DBLinks. 133 6.2 DML. 135 6.2.1 SQL . 135 6.2.2 Selects . 135 6.2.3 Pseudo-columns . 138 6.2.4 Inserts . 142 6.2.5 Outer joins. 142 6.2.6 Sorts . 145 6.2.7 Aliases. 146 iv Migrating from Oracle . to IBM Informix Dynamic Server on Linux, Unix and Windows 6.2.8 Truncate . 146 6.2.9 Hierarchical queries . 147 6.3 SPL and PL/SQL . 147 6.4 Concurrency and transaction . 154 6.4.1 Read concurrency . 154 6.4.2 Update concurrency . 158 6.5 Security . ..