Migration help - Sybase to Oracle

Hi,
we are currently migration our applicaiton from Sybase to Oracle. Oracle version we are using is 8.1.7 for Windows.ok now here is problem,
In order to update a table we compare more than 1 table, which we can specify in the "from clause of the update" in sybase, but oracle it does not allow this
for Eg: ( In sybase )
update table1 set
activeFlag = 0,
revId = revId + 1
from table2, table3
where table1.col1 = table2.col1
and table1.col2 = table2.col2
and table1.col3 = table3.col1
I am running out of ideas to convert this statement to suitable Oracle syntax.Any help in the conversion will be greatly appreciated
thanks
vijay

I'm not sure I understand what your statement would do in Sybase but perhaps this is what you are looking for?
update table1 set
activeFlag = 0,
revId = revId + 1
where exists (select null
from table2, table3
where table1.col1 = table2.col1
and table1.col2 = table2.col2
and table1.col3 = table3.col1)

Similar Messages

  • 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

  • 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

  • Migration from Sybase to Oracle

    Hello every one,
    First of all I want to say thank you for your time,
    I would like that you certify my process, and, if not good, that you give me a better choice,
    I want to migrate one database from Sybase 12.5 in a Solaris 8 platform to Oracle 10g in a HP platform.
    I was thinking to migrate this Database using Oracle Database Migration Verifier, and I have this software in Windows platform.
    My questions is: if is possible than I use a Migration Verifier since my windows to migrate a database from Sybase in Solaris 8 to Oracle 10g in HP?
    I will appreciate your help.
    Regards.

    Hi,
    I am working on the migration of existing system in Sybase 12.5 to Oracle 10g. Sybase 12.5 and Oracle 10g both are in solaris environment.
    I am currently working on Oracle Migration Work Bench. I am facing issues with this tool. Its showing frequent errors and going into infinite loops.
    Is there any other version of this tool which i can use ?
    Is there any other such efficient tool which i can use for the same ?
    Please let me know asap as its very urgent.
    Regards,
    Soham Shah

  • Experiences migrating from Sybase to Oracle

    Hi all,
    I have been asked to look into migrating a database from Sybase to Oracle.
    I know there is lots of info on Oracle's website, which I have downloaded, but I was just hoping for some info about some of your experiences regarding your processes. What are the gotchas. I suspect there will be a few.
    Anything that will help would be of interest.
    Many thanks
    VicC

    HI VicC,
    I work within the SQL Developer team and not a customer as such, but the follow maybe of use.
    SQL Developer is a migration aid, its not 100% magic bullet.
    SQL Developer does alot of the manual conversion for you quickly. But you may find Testing / Tuning and the application migration (if any) take you the most amount of time.
    SQL Developer aims to migrate you tables, indexes, and data without issue. But SQL Objects like Procedures, Triggers, Views and Functions conversion will likely require manual work on top of the automatic conversion provided by SQL Developer.
    SQL Developer does not yet automatically handle things like the tablespaces structure or the the logins. Although these things can be scripted and managed more easily within SQL Developer.
    I would recommend downloading and performing the migration from a non production instance ASAP.
    SQL Developer can perform a migration quickly and you will then be able to assess what SQL Developer can and cant do for you.
    I would recommend creating a migration repository on an Oracle database local (install Oracle XE if you dont have a local database) to the SQL Developer instance you are using.
    I would also recommend downloading SQL Developer 2.1
    Here are some key sites regarding Sybase migrations.
    http://www.oracle.com/technology/tech/migration/workbench/viewlets/sqlserver.html . This viewlet for SQL Server is the same process for Sybase.
    http://www.oracle.com/technology/obe/hol08/sqldev_migration/sybase/migrate_sybase_otn.htm . This Oracle By Example takes you step by step through a Sybase migration including some gotchas
    http://dermotoneill.blogspot.com/2008/06/sql-developer-migration-workbench-151_11.html . This is my blog outlining the steps to perform a Sybase migration.
    Regards,
    Dermot
    SQL Developer Team.

  • DATE format problem, migrating from Sybase to Oracle 9i

    Hi,
    We are in a process of migrating the database from Sybase to Oracle 9i, everything going fine except the data load of couple of tables.
    The workbench created the control file, data & related files to load the data into Oracle using the SQL*LOADER.
    But coule of data files having HH:MI:SS:xxx AM in the DATE field, which Oracle is failing while laoding the workbeck created the destination table with the column data type = DATE, so how to insert the milliseconds along the date like Mar 25 2004 12:00:00:000 AM
    Thanks
    Ramana
    212-657-0104

    In your control file for SQL*Loader, specify the timestamp with format like "Mon DD yyy hh:mi:ss:ff3AM".

  • Migration from Sybase to Oracle (HP-UX)

    I have installed my plugins, but now i have no idea about how to continue with my process of migration.
    I have Sybase client installed in my pc, and I have access to Oracle because I installed database 10g for windows. My OMW is installed in my windows too.
    Please recommend me something to follow my road.
    May be a document or something like that.
    Thank U so much.
    Paola @}-->---

    Hi Paola,
    Connection to Oracle is ok (the omwb comes with oracle jdbc).
    Connection to Sybase needs configuring it is via jdbc/odbc bridge, and dsedit needs to be used to configure a connection to Sybase if memory serves.
    Omwb comes with some documentation - help and user guide, which are available from the menu system (or the user guide from file system).
    -Turloch

  • Migrating from Sybase to Oracle - update() function

    In sybase i have an update function that let me know when an specific column id updated after and update statement, does Oracle have something similar??
    thanks.

    Hello <Please Supply Your Name>,
    Is this a system function or a user defined function?
    Without knowing the full details of what the Sybase "update" function is, there are 3 areas which might be worth investigating.
    1) Indentity columns and @@IDENTITY.
    Identity columns in Sybase are auto increment columns used mostly for ID's.
    @@IDENTITY is a global variable which holds the last updated/inserted identity value in the session your in.
    SQL Developer Migration Workbench can automatically migrate both of these.
    Identity column are converted to use an Oracle trigger and sequence.
    @@IDENTITY is replicated in a sqlserver_utilities package variable. (The identity trigger updates the value).
    2) Triggers
    If you are not using an identity column in Sybase. But would still like to "catch" a value being updated in your table, you should use a BEFORE/AFTER UPDATE trigger.
    You could save this value to a package variable if you wish (much like how we emulate the @@IDENTITY column above).
    3) Update Returning Clause
    This clause returns the result of an update statement.
    http://www.samoratech.com/PLSQL/swArtPLSQLReturn.htm
    I hope this helps
    Dermot.

  • Migrating from Sybase to Oracle - get_xtypename()

    I found the function get_xtypename() in some Sybase stored procedures but i cannt find its oracle equivalent.
    an idea?

    get_xtypename seems to be an undocumented system function in Sybase.
    Googling it only returns 5 results. No results describe explicitly what this function does, but they do suggest that it works with syscolumns xytype and xdbid.
    select get_xtypename(c.xtype, c.xdbid),c.xtype, c.xdbid from syscolumns c
    Those syscolumns columns are defined as.
    Used if a column in a table or a parameter in a procedure has a Java class as its datatype. When used, fields are not NULL, and the value of type is 0x39. Refer to Java in Adaptive Server Enterprise for more information.
    So a guess would be it returns the java class name or a "type name" associated with a java class.
    I'm only guessing here, but to emulate you may want to lookup if Oracle can create user defined types specified using java.
    If you find out any more, please post back
    Thanks
    Dermot.

  • Impact of Sybase To Oracle Migration(PLEASE HELP!!!)

    Hello,
    My system is currently thinking about migrating from Sybase to Oracle. Can anyone tell me or give me some information about how the migration will impact the system? I would greatly appreciate it. :-)

    Coby,
    the same team that works on the SR also monitors this forum. So let's work on the SR you've logged today.

  • Migrate sybase to oracle 11G

    Hello,
    We have a customer that wants to migrate from sybase to Oracle 11g. I know you can migrate through SQL Developer but therefor you have to connect to the sybase database.
    If you may not connect to the sybase database, due to security reasons, is there another solution to migrate?
    For example take an export from sybase, get the dump file and import into Oracle? Or setup a replica sybase database and export/import the original sybase database and then migrate to Oracle?
    Many thanks.

    Yes there is. You can do an OFFLINE migration using SQL Developer.
    The offline migration using SQL Developer is based on scripts (generated by the SQL developer) that export mandatory information from the Sybase database, put that info into flat files which SQL Developer will then read in to collect the foreign database information and finally to create with that information the Oracle model.
    Same can be done for the data move which will then export all data from the tables you want to migrate and to import them using SQL*Loader.
    So get SQL Developer and then click on Tools -> Migration -> Create Database Migration Scripts, then choose Sybase database and if the Sybase admin wants to export the Sybase database information from a Unix or Windows based client. The tool will now create scripts for you that you can pass to the Sybase admin. Let him run them which will create 2 directories with a couple of data files in it. Let the Sybase admin now zip them and pass them to you to start the Offline migration.
    - Klaus

  • Sybase to Oracle Migration

    Hi,
    My case is little bit different.I have Sybase Database and Oracle Database
    and I need to migrate from Sybase to Oracle but unfortunately both these servers are not connected .
    Please suggest how to do data verification.I was planning to use DMV.
    Regards
    Amit

    Amit,
    In this case you need to do a manual verification. You can do this in a number of ways. Essentially you issue the "same" SQL against Sybase and Oracle and compare the results.
    A simple check would be doing a count(*)
    A slightly more complex check might be doing a SUM function
    A more complex check could be issuing a complex SQL statement, that would validate further the integrity of the data, by including multiple columns within the query (i.e. as part of a where clause)
    Donal

  • Sqldeveloper capturing null DB during Migration Sysbase 15 to Oracle 11g.

    I am doing offline migration from Sybase to Oracle using SQLdeveloper 3.0.02 . I have performed below steps:
    1) Create a user (without CREATE ROLE, CREATE USER, DROP ANY SEQUENCE, DROP ANY TABLE, DROP ANY TRIGGER, DROP USER, DROP ANY ROLE, GRANT ANY ROLE privileges due to security reasons I can't have these privileges. This user have all other privileges suggest as per Oracle docs)
    2) Create a migration repository
    3) Made a connection and associate the migration repository to it.
    4) Generate the offline Sybase capture files using sqldeveloper and generate the dat files having Sybase structure.
    5) Tool -> migration -> migrate -> following the wizard instructions I start the migration.
    Now the message window showing me 1) capturing connections 2) capturing catalogs and then directly migration is successful. Finally there is no error message.
    I have checked the migration project navigation window and found that sql developer has captured the null database.
    I checked the migration repository tables and found that only MD_CONNECTIONS, MD_CATALOGS and MD_DERIVATIVE tables are populated.
    Could you please suggest me why SQL developer captured the null database. ( No Sybase database objects are captured from Sybase15.ocp file)
    ASAP reply would be appreciated.
    Regards
    Abdul
    Edited by: Abdul Nazar Ali on Apr 9, 2013 9:28 AM
    Edited by: Abdul Nazar Ali on Apr 9, 2013 9:28 AM

    Hi,
    At that time SQL developer was not able to capture the connection details. The error msg was "Capturing connection failed". So we downloaded the sybase jtds driver and recaptured ocp files from sybase and run the migration again...this time capture connection is successful and capturing of cataloge is successful and after that sql developer can't able to capture any sybase db objects from sybase15.ocp
    We going to upgrade sql developer to latest version and will try it again.
    Regds,
    Abdul
    Edited by: Abdul Nazar Ali on Apr 9, 2013 2:22 PM

  • Sybase to oracle

    how do we convert these to oracle ?
    New to oracle and assuming the decode will work, not sure how that works.
    #1
    convert(char(4) not null,(substring('0',1 - abs(sign(char_length(convert(varchar(4),RCRC_ID)) - 3)),1) + RCRC_ID)),
    #2
    In sybase
    where column_name > " "
    fetches everything greater than the ascii value for space
    Is it same in oracle ?
    Thank you

    Hi,
    The Oracle Migration Workbench supports migrations from Sybase to Oracle. We will have the latest version available from this web site in the coming weeks so watch this space.
    Re:- multiple text columns. We migrate these to CLOBs in Oracle.
    Regards
    John

Maybe you are looking for

  • Some applications wont open or will 'quit unexpectedly'

    I don't know what is wrong. Everything was fine, then some 'Widevine Media Optimizer' started popping up and quitting unexpectedly. I didnt know what it was so I just ignored it. Next thing I know, I can't open Pages, iPhoto, iMovie, Spotify, iTunes,

  • Help! photo booth doesn't work

    There's nothing happen when i click on the photo booth icon on dock. I tried to use my isight another application and it works. So i tried to reinstall it with the DVD. It doesn't work also. anyone know how to resolve this problem? >""<

  • I forget my security question,how to get it back?

    i forget my security question,how to get it back?

  • Sales return with warranty and without!

    Hi, I have a scenario like sales return, 2 cases, with warranty and without warranty I need your guidance on controls, 1st case with warranty, Stock has been taken in to the plant with respect to sale return order. I generate service order SM01 (Non

  • OSB XSLT Transform in Service Orchestration

    I am trying to use the function op:subtract-dayTimeDuration-from-dateTime within a stylesheet within a stage in the OSB. Is it possible to use this function in a stylesheet? I get an error after using the test console to test the XSLT resource: Error