Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2011
    Posts
    26

    Unanswered: DB2 to Oracle Migrations (Object Type)

    Hi,

    Can anyone please help me to convert object types from Oracle into DB2 .

    for example :

    CREATE TYPE address_type AS OBJECT
    (ADDR_LINE VARCHAR2(50),
    CITY VARCHAR2(50),
    STATE VARCHAR2(02),
    ZIP VARCHAR2(05));
    /
    CREATE TYPE address_table_type AS TABLE OF address_type;
    /

    CREATE TABLE employee (
    Name VARCHAR2(20),
    addresses ADDRESS_TABLE_TYPE)
    NESTED TABLE addresses STORE AS addresses_table;

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Code:
    CREATE TYPE address_type is RECORD
           (ADDR_LINE        VARCHAR2(50),
            CITY             VARCHAR2(50),
            STATE            VARCHAR2(02),
            ZIP              VARCHAR2(05));
    /
    CREATE TYPE address_table_type AS TABLE OF address_type
    index by binary_integer;
    /
    Nested tables are not supported.

  3. #3
    Join Date
    Sep 2011
    Posts
    26
    Many thanks

  4. #4
    Join Date
    Sep 2011
    Posts
    26
    ni ,

    do you mind if i give more code to convert, i am looking for a template.

  5. #5
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •