Migration from DB2 to Oracle issue

Hi
I'm migrating an old legacy system from DB2 to Oracle but have the following trouble:
The queries that the app executes have some DB2-specific syntax such as DATE function, example:
select * from TABLE where date_col > DATE('2010/01/01');
The above query works on DB2 but not in Oracle (should be changed to use TO_DATE function but this is not possible initially)
I could create a function in the Oracle db called DATE, something like:
create function date (p_date varchar2) return date is
begin
return to_date(p_date)
end date;
create public synonym date for sys.date;
But DATE is a reserved word and I can't use it as function name
Do you know any way of making the above query work against an Oracle db or transforming the query text before being parsed?
Thanks a lot in advance
--Guillermo                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

As you stated and mentioned in the manual:
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10830/appb.htm
DATE is a reserved word and thus you need to recode the statement. For example the migration utility is commonly adding an underscore to the function - and this requires again a recoding of the source statements.

Similar Messages

  • Migration from DB2 to Oracle 10g using free tools

    Dear all,
    Im currently using DB2 database and wish to migrate data over to Oracle 10g express. However, i could not find any free tools or methods to migrate without using tools as i could not use tools like Oracle Migration Workbench as the migration is for certain project which will deal with internal process or commercial purpose.
    Would like to seek everybody's help. Greatly appreciation your response.
    Regards,
    Kee Cheng =)

    nvr4getu wrote:
    Thanks. But have you heard of creating a heterogenous services, create a database link between the 2 database, then transform over to Oracle?I thought you were looking for a free tool. With HS, you'll have to buy the component to install on the DB2 system. Unless something has changed since the last time I worked in a mixed Oracle/DB2 shop.

  • Migration from DB2 database to Oracle 10g

    Hi All,
    We are working on migration of database from DB2 to Oracle 10g all from scrap. Could you please suggest the steps need to follow up with this and also suggest if any migration tools are available for this task. I am already in a mess of doing it manually. Please help me at the earliest possible.

    You can check the list here
    http://www.oracle.com/technology/tech/migration/workbench/files/mig_rel10104.html
    stored procedure, No
    view depends.

  • Issue during migrating from Sybase to Oracle using Oracle SQL Developer

    I am using SQL Developer v 3.2.20.09 to migrate from Sybase to Oracle Pl/SQL 12c
    While migrating the stored procedure the following block did not convert. I got NULL instead of object_id:
    Sybase Block:
    IF OBJECT_ID(‘dbo.CheckEst’) IS NOT NULL
    BEGIN
    DROP PROCEDURE dbo.CheckEst
    IF OBJECT_ID(‘dbo.CheckEst’) IS NOT NULL
    PRINT ‘<<>>’
    ELSE
    PRINT ‘<<>>’
    END
    Oracle Block after conversion:
    BEGIN
    IF NULL/*TODO:OBJECT_ID(‘dbo.CheckEst’)*/ IS NOT NULL THEN
    BEGIN
    DROP PROCEDURE CheckEst;
    IF NULL/*TODO:OBJECT_ID(‘dbo.CheckEst’)*/ IS NOT NULL THEN
    DBMS_OUTPUT.PUT_LINE(‘<<>>’);
    ELSE
    DBMS_OUTPUT.PUT_LINE(‘<<>>’);
    END IF;
    END;
    END IF;
    END;
    Lines 1 & 4 got converted to NULL. I have many places where such code is written.
    Is there any quick way to overcome such an issue? or what needs to be done in such case?

    Hi,
      You are using an older version of SQL*Developer.  Could you download the latest 4.0.2 version available from here -
    Oracle SQL Developer
    and check if you still have the problem ?
    Regards,
    Mike

  • Help on Migration from DB2 version 8.1 to Oracle 10g

    Hi All
    We have one requirement of migrating one Mainframe database to Oracle 10g. the DB version is DB2 8.1 on Z OS. We are thinking of using Oracle Migration workbench. Can someome help me know if this is supported by OMWB tool or not. I checked in oracle site, they have mentioned some details about V4R5. Could not conclude. Please confirm this. Also let me know if there is any tool that we can use or we have to go manually. Any pointrs would be highly appreciated.
    Thanks,
    Prashant

    OMWB nor its follow up product SQL Developer Migration workbench support DB2 z/OS migrations. You have to do them "manually".
    For a manual migration you might use an Oracle Gateway which allows you to use an Oracle database link to the Db database and you can then use the gateway to copy the data from Db2 to Oracle. Another alternative would be to unload the DB2 data into an ascii file and to load it into the Oracle database using SQL*Loader. You might also use Golden Gate which is commonly used to replicate data between Oracle and DB2 - but it allows you also to use it as a migration utility.
    There are also Oracle partners that can assist you with the migration - please have a look at:
    http://www.oracle.com/technetwork/database/migration/index-084442.html

  • DB Migration from MYSQL to ORACLE Using Offline Capture

    Hi
    Am doing a database migration from MySQL to Oracle using SQL Developer (version 2.1.1.64). So far, I've successfully captured the MySQL database and converted it to the Oracle Model. However, when generating offline scripts to create the converted model schema into Oracle DDL scripts it managed to generate SQL to create: 1) User 2) Sequences 3) Tables 4) Triggers and 5) constraints.
    It has created the SQL to add the primary key constraints and index constraints. Although it did the foreign key constraints in the SQL, the foreign key constraints seems to have missed the cascading options for the foreign key constraint. I.e. theres no reference of whether the foreign key constraint will restrict on delete or cascade etc.
    We have a foreign keys in the MySql database that have different cascading options and these have not being ported over into the migration SQL. Therefore, all the foreign keys generated in the SQL by default are cascade to restrict on delete.
    Does 'Generate Oracle DDL' not take into account a foreign key's on delete cascading option?
    Any help or information would be greatly appreciated.
    Thanks

    Hello,
    that reminded me for the following thread:
    Migration Microsoft SQL Sever 2005 to Oracle 11g cascade on delete problem
    That is a similar issue, isn't it?
    I opened a bug for that, and it will be fixed in SQL Developer 3.1 (not in any 3.0 Early Adopter version). If you hit the same issue, there is no other way then using the workaround as used in the mentioned thread.
    Regards
    Wolfgang

  • Migrating from Progress to Oracle

    Hi,
    Wonder if someone's migrated from Progress to Oracle. What tools are available ? what are the constraints/pitfalls/limitations/restrictions ? I need to understand the overall migration process (not having done one yet). What are the tools ? what the procedural steps specifically to go from Progress to Oracle ?
    If someone has done such project, I can use some highlights (if you can share your knowledge/experince).
    Much appreciate any response.
    Rohit.

    Here is a bit of an update gathered from my own research on this issue. Hopefully, it can help someone with the same requirement as mine.
    1. Oracle Migration WorkBench does NOT have support for Progress yet and according to Oracle sales, it may never be made available. Thus MWB is not an option.
    2. Oracle Migration Toolkit is a possibility as it does have support going from Progress 6.x and 7.x to Oracle 7. The limitation here is that you can only go up to Oracle 7 from Progress 6.x or 7.x. In this case, I can migrate to Oracle 7 and then once all is well, upgrade Oracle to 8i or whatever.
    3. The last option is, if migration toolkit does not work out, go the traditional route which is to export/extract Progress out into flat files and then load into Oracle using SQL Loader.
    RMM.

  • Migration from DB2 on mainframe z/os, os/390

    Hello,
    we are planning to perform a migration from DB2 on a mainframe towards Oracle. I've read about the Oracle Migration Workbench I didn't find anything that states that a migration from mainframe can be performed with the Migration Workbench.
    We only want to migrate the DB2 tables towards a staging environment (in Oracle), so we only need to migrate the table definitions with the data.
    Can this be done with the migration workbench?

    Arno,
    The Migration Worklbench does not support migration from DB2 on the mainframe currently. support for this is under development. If you would like access to this you need to get in contact with your local Oracle account team to progress.
    If all you are interested is tables/data this can be achieved via our gateway products.
    We also have gateway support for DB2 natively. You will find more information about that here:
    http://www.oracle.com/technology/products/gateways/index.html
    Donal

  • Migration from Progress to Oracle

    Could you tell me if there is a tool for migrate from Progress to Oracle?
    Thank you for your help.

    try ispirer.com who have a tool which does this.
    Be aware tho that you may need progress's data server product if you do this and it is expensive to license.
    Barry

  • Problem while migrating from Sybase to Oracle using Quick Migrate

    Hi,
    For SQL Developer version 2.1, while migrating from sybase to oracle, Using Quick migrate, during data move step, for the rows having ''(Blank) values in TEXT data type in SYBASE, which is convertd to CLOB in Oracle, the migration for that table terminates at that row.
    However, NULL values in Sybase TEXT data type are successfully inserted in Oracle CLOB.
    How can we overcome this?

    reproduced and see exception in console, bug logged.
    Edited by: Jade Zhong on Feb 1, 2010 6:10 PM

  • Migrating from Sybase to Oracle

    Hi!
    Can someone tell me, how to migrate from Sybase to Oracle.
    Thank U.

    Hi,
    You don't say if you have used the SQL*Developer migration workbench for the migration so far.
    This has a feature for transferring data offline which should do what you want.
    Have a look at the documentation linked from -
    http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
    or at -
    http://download.oracle.com/docs/cd/E12151_01/index.htm
    SQL Developer User's Guide - section 2.9.1 Transferring the Data Offline
    Regards,
    Mike

  • Steps for migrating from Oracle10g to Oracle 11g

    Hi,
    Please send me steps to migrate from Oracle10g to Oracle 11g on Redhat Linux x86_64 on RAC with ASM.
    Regards,
    Tushar

    http://download.oracle.com/docs/cd/B28359_01/server.111/b28300/toc.htm

  • Customer Reference regardinf Migration from COBOL to Oracle Developer

    Hi,
    Can anyone please share customer references regarding migration from COBOL to Oracle Developer.
    Appreciate if someone can help.
    Thanks,

    Can you please share some tools / methodology to perform such migrations particularly from COBOL to Oracle Developer??BIG question. Actually, we did it the hard way -- completely rewrote the entire application. Took 4 years with 8 to 10 developers and analysts.
    The only tools we used were what you get from Oracle: Forms, SQL Plus, Reports. It was a huge project, done partly to overcome the Y2K century problems.
    AS for training, we did not really get any. We just waded in and started writing code ...which definitely improved after about 6 months.
    What sort of system are you looking to convert? How much on-line user interface does it currently have? How many data files?

  • Migrate from db2/400 (V5R2) to Oracle

    Greetings!
    We are looking at helping a customer migrate their DB2/400 (V5R2M0) database to Oracle (planned for 10gR2).
    I see there is a Migration Workbench offering for the lower revisions (v4r3) as well as for DB2/UDB, however nothing for V5R2M0.
    There are over 1500 files (tables) to convert so we don't want to have to do a dump & load.
    Any suggestions?
    Thanks!!
    Jim Kotan
    Senior Data Management Architect
    MSI System Integrators
    http://www.msiinet.com
    402-965-2556
    Message was edited by:
    Jim Kotan

    Jim,
    I work for a group in Oracle Server Technologies that focuses on legacy (mainframe and midrange) modernization. There are three options from Oracle:
    1. Oracle Data Integrator (was Sunopsis) - This product is completely written in Java so it can even run on the iSeries/AS400. http://www.oracle.com/technology/products/oracle-data-integrator/index.html
    2. Oracle ransparent Gateway for DB2/400 - Can execute qeuries directly against DB2 to migration the data. http://www.oracle.com/technology/products/gateways/tg4db2400.htm
    3. OWB (Oracle Warehouse Builder) - This is an ETL offering from Oracle. Two options for moving the data FTP (and load the flat files) or if you have an ODBC driver on the iSeries can use this with OWB. http://www.oracle.com/technology/products/warehouse/index.html
    Hope this helps. My team is hear to help with legacy modernizations so don't hestitate to contact me at [email protected]
    Tom

  • Migrate from DB2 7 to Oracle 10G(R1)

    Hi, all.
    I have a big DB2 db. When Oracle and DB2 set up on different computers, OMWB works good. When i install Oracle and DB2 on one system UDB7 driver not work - on step "Source Database details", when i enter user ID/pass and database name, then do nothing :(.
    How explane it?
    User information correct. DB2 ODBC driver - worked...
    Can you help me?

    Are you missing a zip file, or are using an unsupported by omwb version of the zip file/driver?
    That is what is suggested by a java.lang.NoClassDefFoundError found message from Java.
    It is also possible, but less likely, that some corporate anti-virus/security software has changed the software. There was a post concerning that possibility recently months ago. [search for www.trend.com on this forum:  Urgent help-Unable to login into OMWB
    Posted: Jan 30, 2007 11:23 PM]
    From the User Guide:
    Before Migrating From IBM DB2 UDB
    To configure an IBM DB2 UDB database for migration:
    1.
    Install the IBM DB2 UDB Client software on the same system as Migration Workbench.
    This automatically installs the IBM DB2 UDB JDBC driver contained in the db2java.zip file.
    Note:
    Migration Workbench supports the use of either the JDBC 1.2 or JDBC 2.0 compliant IBM DB2 UDB JDBC driver.
    2.
    Copy the db2java.zip file to the following directory:
    OMWB_install_dir/Omwb/drivers
    3.
    Make sure that you can login to the IBM DB2 UDB database with a user name that has database administrator privileges.
    Regards,
    Turloch

Maybe you are looking for

  • How to create a Java Object dynamically

    I want to convert a "DataObject (SDO) " into "Pure java object". For this i want to create a java object with the fields in Dataobject, and this should be in generic way.

  • How to select range of values (select-options) in BDC?

    Dear experts,   I need to write a BDC program for the T-code CN72 where i need to  handle a range of intervals (select-options) for the WBS element field in the initial screen.I have done the recording. what is the logic in BDC to handle the range of

  • Trouble connecting iPod Touch to WiFi Network

    I'm having trouble connecting my iPod Touch to my WiFi Network. Do I need to enter any info into my iPod Touch or do I only enter info on my computer? Thank you

  • Mail Merging from Excel using iCloud?

    I have a large list of emails on an excel sheet that i need to email to everybody as individuals, how can I mail merge them using icloud?

  • Regarding ale & idoc

    hai sanjeev, some of my coleg. said that the basic settings like logic.systems are done by basis people and distributionmodels are maintained by us only is it true sanjeev? with thanks ravi...