Migrating informix row type to Oracle 8i

I have ascii files of an informix database and was using the SQL
Loader to import these files into Oracle8i. Everything works
fine except for tables with row types.
In the Informix ascii files, I have columns containing a set of
values. eg {x,y,z}. How do I get the Oracle SQL loader to import
these row type columns into corresponding object types in my
Oracle 8i database?
Any information or case studies on this would be desired as
well. I already looked and the Oracle 8i Utilities documentation
doesn't have a case study for loading object types.

you may want to look into using Oracle's Migration Workbench that will take your Access database and then translate it to an XML file from which it then generates the DDL and SQL*Loader scripts for you (which you can always modify before running).
Hope this helps.

Similar Messages

  • Problem when migrate Informix 9.4 to Oracle 10.2 by use OMWB 10.1.0.4

    Hi,
    When I use OMWB to migrate Informix 9.4 to Oracle 10.2, I encounter many errors as follows:
    ===========================================================
    java.sql.SQLException: ORA-12899: value too large for column "ROGER"."ABB_FILE"."ABB04" (actual : 32, maximum: 30)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:626)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:182)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:630)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1081)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2905)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2996)
         at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:1473)
         at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
         at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
    ==========================================================
    But when I check the Source column length, it is not long then column length in Oracle actually. I don't know why....
    Does anybody have idea? Thanks!

    Hi Donald,
    Thanks for your reply.
    "ROGER"."ABB_FILE"."ABB04" means in user "ROGER" schema, have a table "ABB04", and have a column named "ABB04".
    So the column's name is "ABB04", not exceed 30 characters.
    The table's description in Informix as follows:
    create table "roger".abb_file
    abb00 char(2),
    abb01 char(12),
    abb02 smallint,
    abb03 char(24),
    abb04 char(30),
    abb05 char(6),
    abb06 char(1),
    abb07 decimal(16,3) not null ,
    abb08 char(10),
    abb11 char(15),
    abb12 char(15),
    abb13 char(15),
    abb14 char(15),
    abb15 char(4)
    And the table in Oracle's description:
    CREATE TABLE "ROGER"."ABB_FILE"
         "ABB00" VARCHAR2(2),
         "ABB01" VARCHAR2(12),
         "ABB02" NUMBER(5),
         "ABB03" VARCHAR2(24),
         "ABB04" VARCHAR2(30),
         "ABB05" VARCHAR2(6),
         "ABB06" VARCHAR2(1),
         "ABB07" NUMBER(16, 3) NOT NULL,
         "ABB08" VARCHAR2(10),
         "ABB11" VARCHAR2(15),
         "ABB12" VARCHAR2(15),
         "ABB13" VARCHAR2(15),
         "ABB14" VARCHAR2(15),
         "ABB15" VARCHAR2(4)
    )

  • Migrating Informix 7.3 to Oracle 9i

    Hi,
    I want to know any one (Bay Area) worked on migrated/working on migrating databases from Informix to Oracle. Please let me know.
    Thanks in advance for your reply.
    Ramesh

    Ramesh,
    I am working on migrating Informix 9 to Oracle9.2i. I know it is a version up in Informix but the lessons
    should be the same almost.
    I am doing this on AIX 4.3.
    Geoff Heaton
    ING Australia

  • How to migrate 'table' data type into oracle solution?

    Say, I have following sample code in Sql Server:
    Declare @v1 table(old_value int, new_value int)
    insert into @v1 select old_value, new_value from aTable where....
    declare cur cursor for
    select new_value from @v1 where old_value=...
    what should I use in oracle to convert above code? I was thinking about nested table, but it seems not very suitable here. Any better solutions out there?

    It's been a while since I've done any SQL Server development, but if I recall correctly, a table data type in Transact SQL is used for storing temporary result sets.
    In your example, you seem to be temporaily storing the results of a query in a Transact SQL table, and then opening a cursor to iterate over the results.
    In Oracle PL/SQL, there is usually no need to do this, just open a cursor:
    create or replace procedure test_proc as
    begin
    for curs_rec in (select old_value, new_value from myTable) loop
    ... process each row ...
    end loop;
    end test_proc;
    If you really want your results in an array which your code can iterate over, look into the BULK COLLECT clause of the SELECT statement:
    create or replace procedure test_proc as
    TYPE array_type IS TABLE of myTable%ROWTYPE INDEX BY BINARY_INTEGER;
    my_array array_type;
    begin
    SELECT * BULK COLLECT INTO my_array FROM myTable;
    for idx in my_array.FIRST..my_array.LAST loop
    dbms_output.put_line(my_array(idx).col1);
    end loop;
    end test_proc;
    Note that I have not actually compiled the above code, so there may be syntax errors :)
    Also, prior to 9i you can not BULK COLLECT into a table based on a rowtype (you need to created an array for each attribute).
    SQL Server also allows function which return table types. This is similar to PL/SQL pipelined table functions (available in 9i and higher - see the PL/SQL guide), which can be used to materialize rows which can be processed like any other result set.
    SQL Server also has a concept of temporary tables which is totally different than Oracle's temporary tables. SQL Server developers must often resort to using temporary tables in their stored procedures; in Oracle, this is rarely necessary.

  • Migrating Sybase "timestamp" data type to Oracle DB

    Hi,
    We are migrating huge Application currently running on Sybase database
    to Oracle 10.2.0.3 (500+ Tables and Stored Procedures).
    Have following questions regarding this Migration.
    1) Many of the Sybase Tables have column which is of Sybase data type "timestamp".
    Do you have any recommendation what is the data type to be used in Oracle for
    migrating "timestamp" data type in Sybase?
    2) How should we migrate existing data and business logic residing in Sybase for
    data columns of Sybase data type "timestamp" ?
    Given below are details on how we use Sybase timestamp Column in our Application
    and we are trying to arrive at the best Solution that is possible for migrating
    all those Tables and related business logic to Oracle.
    We have following Control Table in Sybase which has column of timestamp data type and
    some other Business keys.
    sp_help EQP_IES_CRE_TIMESTAMP (This is similar to desc <table> command in Oracle)
    EQP_IES_CRE_TIMESTAMP,dbo,user table
    default,Nov 14 2001 10:39AM
    CRE_TIMESTAMP ,timestamp,8,,,0,,,,0
    REF_NUM ,char,30,,,0,,,,0
    REC_UPD_DT ,datetime,8,,,1,,,,0
    EQP_IES_CRE_TIMESTAMPI1,clustered, unique located on default, CRE_TIMESTAMP, REF_NUM, REC_UPD_DT,0,0,0,
    Following is the overall logic used in Sybase
    -- Step 1: Based on Event, populate Control Table with new Row.
    -- CRE_TIMESTAMP timestamp Column gets auto-populated by Sybase
    insert EQP_IES_CRE_TIMESTAMP (REF_NUM, REC_UPD_DT)
    values (@uuid_ref_num, @event_cre_dt)
    Since CRE_TIMESTAMP is auto-populated, it does not appear in above INSERT statement.
    -- Step 2: Store timestamp value populated by Sybase in previous step,
    -- to variable @event_timestamp. This value would be referenced
    -- later in other SQL statements
    select @event_timestamp = CRE_TIMESTAMP
    from EQP_IES_CRE_TIMESTAMP
    where REF_NUM = @uuid_ref_num
    and REC_UPD_DT = @event_cre_dt
    -- Sample value for @event_timestamp could be '001c0000182f2089'
    -- It is not very readable or understandable
    -- Step 3: Delete Control Table entry made in Step 1
    delete EQP_IES_CRE_TIMESTAMP from EQP_IES_CRE_TIMESTAMP
    where CRE_TIMESTAMP = @event_timestamp
    -- Step 4: Make use of saved timestamp value from Step 2 to trigger queries
    -- against other Tables that have timestamp Columns
    -- Some sample queries are as shown below
    delete eqp_staging
    where event_timestamp > @event_timestamp;
    insert into eqp_movement values(@event_timestamp, ......other columns) ;
    Any idea how above Table and logic could be migrated to Oracle DB
    We would also like to know how data values that currently exist
    in Sybase Tables should be populated in Oracle .
    Any suggestions or tips would be greatly appreciated
    Thanks
    Auroprem

    Hi All,
    Thanks for your responses.
    We have decided on Solution to migrate "timestamp" Column from Sybase to Oracle, that is
    specific to our Application needs.
    Following is what we decided:
    1) Create RAW Column in Oracle which would contain data Replicated from Sybase "timestamp" Column as is.
    2) Create additional Column of INTEGER data type to store number equivalent of Sybase "timestamp" column
    which would be more usable and consummable in Oracle as compared to RAW datatype.
    3) Write Row-Level INSERT/UPDATE Trigger on migrated Oracle Table to populate INTEGER Column using
    SQL Function TO_NUMBER(<raw_column_value>, 'xxxxxxxx').
    4) Applications that access this Table, upon migration to Oracle, will now start referencing INTEGER Column
    newly defined, and populated via Trigger.
    Please let us know if you see any issues with this approach
    Thanks
    user641521

  • Migrating Informix IIF 2000 (IDS 9.21) to Oracle 8i/9i

    There is a lot of information available on migrating from
    Informix 7.3 to Oracle but their does not seem to be any info on
    migrating from Informix 9.21 to Oracle. Has anyone had any
    experience with this migration? I would like to know the
    differences in migration process between Informix 7.3 and 9.21
    and what your experiences were. Can the Informix 7.3 plugin for
    the migration workbench work on a Informix 9.21. database?

    You can't use the Informix 7.3 plugin on a 9.X informix database.
    There may be a 9.X plugin to help migrate those who migrated
    from 7.X to 9.X, i.e the plugin will not migrate any 9.X specific
    database objects such as User Defined Types and Collections.

  • Migrating image database in Informix 9.21 to Oracle 9i

    I am going to be migrating an image database from Informix 9.21 to Oracle 9i and am needing to know
    what Oracle9i has to offer as far as options in storing large media types - image, video, audio, etc...
    Specifically, does Oracle have anything comparable to Informix' smart blobspace? Is it possible to migrate
    image data from Informix to Oracle? I know the migration kits only are available up to Informix version 7.
    What does interMedia offer?

    Hi,
    I was unable to reproduce your problem. I carried out the following steps in attempt to replicate the issue:
    1. I launched the workbench, version 10.1.0.2, selecting the Oracle Lite "Default Repository".
    2. Using the Oracle Enterprise Manager Console, I created a user "rtdb" with the password "rtdb" on my target Oracle 9i database.
    3. I captured a test Informix database, generating its source and oracle models.
    4. I then proceeded to migrate the database to Oracle and supplied my target Oracle9i database information in the "Migration Wizard, Step 1 of 4: Destination Database Details", supplying rtdb/rtdb as the username/password.
    5. My test database migrated with no such error messages reported.
    If you carried out the migration steps as I have outlined above, and are still experiencing issues with a "Failed to connect" error, I would contact support.
    Regards,
    Hilary

  • Migration from Informix 9.4 to Oracle 10g

    We have to perform a migration from Informix 9.4 to Oracle 10g. Many tables, many data and many stored procs.
    We use the Online mode and the imports finish with any errors, but it has not recovered any stored procedures or we can't view the Informix Stored Procedures in the Source Model in the workbench.
    In the importation log appears as no found procedures, but under owner informix are all procedures.
    What we can do?

    In the 10.1.0.4 version of the workbench we create an informix user who will have all the stored procedures.
    If you want these migrated as another user you can right click on the user in the oracle model and rename it for a start.
    If this is a large migration, I would recommend the following.
    1. generate the ddl for the oracle database.
    2. for the users, that will be created, move the objects to the users that you want these in.
    3. Make sure that the privileges that a particular user has is appropriate to use the data and execute the stored procedures if necessary.
    This tool is not just a one shot deal.. It will bring the informix db over to Oracle, but you need to verify the structure and the logic of the stored procedures as being correct.
    Barry

  • How to migrate SQL Server image data type to Oracle 8 BLOB data type?

    Hi,
    I have to migrate data from sql server to Oracle 10 g.
    I am unable to migrate image data type from sql server to blob data type in oracle.
    Iam using Oracle Heterogenous Services to migrate the data,Using Merge statement and database link.
    I am getting the following error-
    ERROR at line 7:
    ORA-00932: inconsistent datatypes: expected BLOB got LONG BINARY
    Can any one suggest me how to migrate Image datatype to BLOB???

    Hi you might want to post your question in General Forum.
    General Database Discussions
    There's very few users visit this forum.

  • Migrate Informix 7.31 Database into Oracle

    Dear all,
    I intend to import an Informix Dynamic Server 7.31 Database into Oracle; In this case it's the database of an old system which is not in use anymore, so the purpose is strictly readonly.
    No triggers, few procedures and functions.
    I'd like to import the data into Oracle 11g, is this possible or do I have to import into 10g and then upgrade to 11g?
    The docs say the migration workbench is the tool of choice, is there anyone who can provide me with some experience?
    How do I verify the migration was successful and the data was imported exactly the way it was?
    Thanks in advance,
    Andy

    Andy,
    Informix can only be migrated using the older Oracle Migration Workbench 10.1.0.4 and as it says on the web site -
    http://www.oracle.com/technetwork/database/migration/informix-085032.html
    the only supported versions for the workbench are 9i and 10g.
    However, this is only for running the workbench itself and creating the repository. If you do an offline migration then you can run the scripts created by the migration utility in any version of Oracle and load the data using any version of SQL*Loader.
    It may be that you can create the repository for the 10.10.4 workbench in an 11g database but I've never tried it.
    As for testing there is a section in the documentation -
    Oracle® Migration Workbench User’s Guide Release 10.1.0.4 for Microsoft Windows 98/2000/NT/XP and Linux x86
    Chapter 7 - Testing the Oracle Database
    that discusses how you can test the migrated data.
    I've only ever run small test migrations and issues can depend on the complexity of the data and particularly stored procedures and embedded SQL.
    If you have no triggers, few procedures and functions then it should be fairly straightforward.
    It is planned to include Informix migration in a later version of SQL*Developer but there is no date for that yet.
    Regards,
    Mike

  • Informix 7.x to Oracle 9i Data migration

    Hi All,
    I'm in the process of migrating the data from Informix 7.X databse to Oracle 9i. I need to migrate data from selected columns and selected tables only from the informix schema.The data migration deals with Huge volumes[ Around 50GB ] of data.
    I need some help regarding
    1. I'm thinking to use Informix Unload Option for data unloading and SQL * loader for loading the data into the database. Is there any other better way.
    2. how to deal with the memory issues during migration process.
    Regards
    Gaurav

    Hi,
    Thanks a ton for the prompt response.
    I'm elploring the usage of Migration Workbench for the migration.But yet don't know the correct way to use it.
    I need some inputs and material to refer from this end.
    Apart from that Regarding memory :
    As I'm dealing with 50GB of data
    1) I want to foresee any problems which i might encounter during the migration process.
    2) Any oracle specific parameters I need to setup to rule out any memory related migration failures.
    3) How can i do the migration in the quickest way?
    Kindly do the needful.
    Regards
    Gaurav Jain

  • Migrating data from Informix 7.2 to Oracle RDBMS

    I've got several applications running on an Informix 7.2 database and I need to migrate this data to an Oracle 8.1.7.4 database. Is there a gateway product available to aid with getting this data migrated. We tried Oracle Migration Workbench but Informix 7.2 is not supported. Any help with getting this done is appreciated. I don't want to keep these apps on Informix!!!

    You can use Generic Connectivity. It is a free feature of the database available on Windows, HP, AIX and Solaris and Linux (v10g).
    There is also the transparent gateway for Informix however it is not certified with Informix 7.2. It is certified with 7.3 and higher.

  • Migrating from Informix 9.4 to Oracle 9.2

    Hi
    I need to migrate a database from Informix 9.4 to Oracle 9.2.
    There are a third-part application that must be migrated that always run in Oracle databases in others customers.
    I have a script (supplied for the third) to create the objects in Oracle (+- 1200 tables that will be created only with PKs to improve performance).
    My question is: Can I use the migration workbench only to load the data (45 GB)? If no, what can I do to minimize the work?

    Hello,
    Yes this is possible. You need to capture your source Informix database and map it to the Oracle Model using the Migration Workbench. Then you can generate the data unload scripts and SQL*Loader scripts to get the data our of your source database and into the destination Oracle database. For more information on how to do this, please see Chapters 4, 5 and 6 in the Oracle Migration Workbench User's Guide. You can find this document on the OTN Web site at:
    http://download.oracle.com/docs/html/B15857_01/toc.htm
    Regards,
    Jocelyn

  • PL/SQL Object Type - Java oracle.jbo.domain

    PL/SQL Object Type <-> Java oracle.jbo.domain
    can anybody help me, getting my domains to work?
    Following scenario:
    in pl/sql we have an object type called MULTI_LANGUAGE. This type is used for storing multilingual texts as nested table in one(!) column.
    So the object MULTI_LANGUAGE contains a member variable LANGUAGE_COLLECTION of type LANGUAGE_TABLE, which itself is a nested table of objects
    of the type LANGUAGE_FIELD (this again is only a language id and the corresponding content)
    Also the methods setContent(langID, langContent) and getContent(langId) are defined on Object MULTI_LANGUAGE.
    For example: Table having primary key, 2 other columns and one column of object type MULTI_LANGAGE (=nested table of objects)
    |ID|Column1|Column2|  multilingual Column  |
    |--|---------------------------------------|
    |  |       |       |  -------------------  |
    |  |       |       | | 1 | hello         | |
    |  |       |       |  -------------------  |
    |1 | foo   | bar   | | 2 | hallo         | |   <- Row Nr 1
    |  |       |       |  -------------------  |
    |  |       |       | | 3 | ola           | |
    |  |       |       |  -------------------  |
    |--|-------|-------|-----------------------|
    |  |       |       |  -------------------  |
    |  |       |       | | 1 | world         | |
    |  |       |       |  -------------------  |
    |2 | abc   | def   | | 2 | welt          | |   <- Row Nr 2
    |  |       |       |  -------------------  |
    |  |       |       | | 3 | ???  ;-)      | |
    |  |       |       |  -------------------  |
    |--|-------|-------|-----------------------|Now i've tried to modell this structure as an oracle.jbo.domain.
    class MultiLanguage extends Struct having this StructureDef:
    attrs[(0)] = new DomainAttributeDef("LanguageColl", "LANGUAGE_COLL", 0, oracle.jbo.domain.Array.class, 2003, "ARRAY", -127, 0, false, "campusonlinepkg.common.LanguageField");
    and
    class LanguageField extends Struct having this StructureDef:
    attrs[(0)] = new DomainAttributeDef("Id", "ID", 0, oracle.jbo.domain.Number.class, 2, "NUMERIC", -127, 0, false);
    attrs[(1)] = new DomainAttributeDef("Content", "CONTENT", 1, java.lang.String.class, 12, "VARCHAR", -127, 4000, false);
    Is there anything wrong with this StructureDef?
    When running the BC-Browser with -Djbo.debugoutput=console -Djbo.jdbc.driver.verbose=true parameters I get suspect warnings when browsing the records
    [196] Executing FAULT-IN...SELECT NR, NAME FROM B_THESAURI BThesauri WHERE NR=:1
    [197] SQLException: SQLState(null) vendor code(17074)
    [198] java.sql.SQLException: Ungültiges Namensmuster: XMLTEST.null
    ...snip: detail of stack...
    [240] SQLException: SQLState(null) vendor code(17060)
    [241] java.sql.SQLException: Deskriptor konnte nicht erstellt werden: Unable to resolve type "null"
    ...snip: detail of stack...
    [280] Warning:No element type set on this array. Assuming java.lang.Object.
    (XMLTEST is the name of the schema)
    Seems as if the framework can't read the TypeDescriptor or does not know which descriptor to read (XMLTEST.null??)
    Do I have to implement my own JboTypeMap?
    Please help, I'm stuck.
    Thanks in advance, Christian

    Thanks for your suggestion, but it seems to me as if there is one level missing.
    in pl/sql I have following structure:
    Struct MULTI_LANGUAGE (Object type) - outermost
      Array LANGUAGE_TABLE (nested table type)
        Struct LANGUAGE_FIELD (Object type simple) - innermostthe reason why i had to wrap another struct around the array was because it is not possible to define methods on a nested table. this is only possible on objects.
    on the outermost object type (which holds the array of language fields) I needed to define following 2 methods for direct access:
    getContent (langId in number) returns varchar2
    setContent (langId in number, langContent in varchar2)
    I would like to rebuild the same structure in java, because newly written java code should live in perfect harmony with legacy pl/sql code ;-)
    Both applications (Java and pl/sql) have to access the same data as long as migration to java goes on.
    Is this nested structure too much for a Domain?
    Any other suggestions?
    Thanks again, Christian

  • Help me please to migrate from MS SQL to Oracle

    Hi all,
    we are in process of migration from MS SQL to Oracle.
    Please help me to perform the same in Oracle:
    select number+1 as rowid,number*6+1 as rowbeg,number*6+6 as rowend 
    from master.dbo.spt_values
    where type='P'
    Our Oracle version:
    select * from v$version
    BANNER                                                                         
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production   
    PL/SQL Release 11.2.0.2.0 - Production                                         
    CORE 11.2.0.2.0 Production                                                     
    TNS for 64-bit Windows: Version 11.2.0.2.0 - Production                        
    NLSRTL Version 11.2.0.2.0 - Production                                         
    5 rows selected.

    996831 wrote:
    Here is another solution without "connect by":
    select 1 as rnum, 1 as rowbeg, 6 as rowend from dual
    union all
    select rownum+1 as rnum,rownum*6+1 as rowbeg,rownum*6+6 as rowend
    from all_objects
    1
    1
    6
    2
    7
    12
    3
    13
    18
    4
    19
    24
    5
    25
    30
    6
    31
    36
    7
    37
    42
    (et cetera).
    This needs the user to have access on all_objects view and it will limit the result upto the numbers of objects returned by the all_objects view.

Maybe you are looking for

  • Error in Starting weblogic Portal Domain

    I have created weblogic portal domain using configuration wizard in Weblogic portal 9 and in weblogic portal 10. Weblogic portal 9 it is started fine and when started in weblogic portal 10 it throwed following exception. weblogic.security.SecurityIni

  • How do I change the phone number in my iPad for messaging

    When I go to settings>message>send and receive at   I can see the phone number but highlighting it does not appear to allow me to change it.

  • HTTP_RESP_STATUS_CODE_NOT_OK

    Hi All, When I place any source file for processing, the message ends with the below error in MONI. <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>   <SAP:P1>401</SAP:P1>   <SAP:P2>Unauthorized</SAP:P2> <SAP:Stack>HTTP response cont

  • Torch 9860 headphones not working

    the headphones on my torch 9860 do not mute the phone and play, so cannot listen to music. They did work but have stopped, headphones are fine on other devices, and i can not find a setting on the phone that might have changed

  • Appendchild from DocumentFragment

    Hello: I need help in understanding the issue with the code specifically documentfragment. On searching the forums, I could find an alternate way of getting the required result. However I am interested in understanding why my original code with Docum