Oracle to DB2 Conversion Guide: Compatibility Made Easy

Oracle to DB2 Conversion Guide: Compatibility Made Easy

Front cover IBM® Information Management Software Oracle to DB2 Conversion Guide: Compatibility Made Easy Move Oracle to DB2 efficiently and effectively Learn about DB2 10.5 Oracle Database compatibility features Use Oracle PL/SQL skills directly with DB2 10.5 Yvonne Chan Nick Ivanov Olaf Mueller ibm.com/redbooks International Technical Support Organization Oracle to DB2 Conversion Guide: Compatibility Made Easy September 2013 SG24-7736-02 Note: Before using this information and the product it supports, read the information in “Notices” on page ix. Third Edition (September 2013) This edition applies to IBM DB2 for Linux, UNIX, and Windows Version 10.5. © Copyright International Business Machines Corporation 2009, 2013. 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 Authors . xii Acknowledgements . xiii Now you can become a published author, too! . xiv Comments welcome. xiv Stay connected to IBM Redbooks publications . xv Summary of changes . xvii September 2013, Third Edition. xvii Chapter 1. Introduction. 1 1.1 DB2 family of products . 2 1.1.1 DB2 editions . 2 1.1.2 IBM DB2 10.5 Advanced Enterprise Edition features . 6 1.1.3 DB2 10 autonomic computing features . 7 1.1.4 Introduction to PureData . 9 1.2 DB2 Oracle database compatibility features overview . 9 1.2.1 Concurrency control . 10 1.2.2 Data types . 11 1.2.3 Implicit casting. 11 1.2.4 SQL Standard . 12 1.2.5 PL/SQL . 12 1.2.6 Built-in packages. 15 1.2.7 Oracle specific JDBC extensions . 15 1.2.8 SQL*Plus scripts . 15 1.2.9 Oracle Call Interface and Pro*C . 16 1.3 DB2 educational resources . 16 1.3.1 IBM professional certification . 18 1.3.2 Other resources . 18 1.3.3 DB2 10 videos and topics . 19 Chapter 2. Language compatibility features. 21 2.1 DB2 compatibility features references. 22 2.1.1 SQL compatibility setup . 22 2.1.2 PL/SQL record and collection types . 27 2.1.3 Subtypes . 45 © Copyright IBM Corp. 2009, 2013. All rights reserved. iii 2.1.4 Basic procedural statements. 47 2.1.5 Control of flow statements. 53 2.1.6 Condition (exceptions) handling . 59 2.1.7 Cursor data type . 63 2.1.8 Static and dynamic SQL support. 69 2.1.9 Support for built-in scalar functions. 73 2.1.10 Routines, procedures, and functions compatibility . 84 2.1.11 PL/SQL packages . 96 2.1.12 Triggers . 100 2.1.13 SQL statements . 103 2.2 Schema compatibility features . 113 2.2.1 Extended data type support . 113 2.2.2 Flexible schema changes in DB2 . 114 2.2.3 Sequences . 115 2.2.4 Index enablement . 117 2.2.5 Constraints enablement . 118 2.2.6 Created global temporary tables . 120 2.2.7 Synonyms . 121 2.2.8 Views and Materialized Views. 122 2.2.9 Object types . 123 2.2.10 Partitioning and MDC . 126 2.2.11 Oracle database links . 137 2.2.12 Oracle Data Dictionary compatible views . 140 2.3 DB2 command-line utilities . 145 2.3.1 The command line processor plus user interface . 145 2.3.2 Using the DB2 command line processor. 153 Chapter 3. Conversion process and enablement tools . 159 3.1 The conversion process . 160 3.2 Enablement tools. 162 3.2.1 IBM Data Studio . 162 3.2.2 IBM Database Conversion Workbench . 165 3.3 Getting started with DCW . 169 3.3.1 Creating a DCW project . 169 3.3.2 DCW Task Launcher. 171 3.4 DDL extraction using DCW . 171 3.4.1 DDL extraction using a connection . 172 3.4.2 DDL extraction using a custom script . 177 3.4.3 Importing the DDL file . 178 3.5 Assessment and conversion using DCW . 178 3.5.1 Evaluating an Oracle DDL. 179 3.5.2 Converting Oracle DDL to DB2 compatible syntax . 185 3.5.3 The Split DDL function . 189 iv Oracle to DB2 Conversion Guide: Compatibility Made Easy 3.6 Preparing your DB2 database for data movement . 190 3.6.1 Creating the target DB2 database. 191 3.6.2 Deploying the DDL objects that are required for data movement . 191 3.7 Data movement using DCW . 194 3.7.1 Data movement using flat files . 194 3.7.2 Data movement using pipes . 197 3.7.3 Data movement using IBM InfoSphere Federation Server . 200 3.7.4 Data movement using IBM InfoSphere Change Data Capture . 203 3.7.5 Manual data deployment. 209 3.7.6 Selecting the appropriate data movement method . 210 3.7.7 Verifying data movement . 211 3.8 Deploying remaining objects on the target DB2 database . 211 3.9 Conclusion. 212 Chapter 4. Enablement scenario . 213 4.1 Installing DB2 and creating an instance . 214 4.2 Enabling SQL compatibility . ..

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    456 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us