Triggers from sybase to oracle giving problem-------urgent please

all the Triggers are got converted to AFTER INSERT/UPDATE/DELETE TRIGGERS IN migration workbench...and almost all are been checking the existence of records in the table ie.,primary key check (existence of record) which if i turn them to BEFORE INSERT is becoming a MUTATING ERROR.
and one more thing the "count(*) from inserted" in sybase equivalent is not there in oracle how to solve this problem?????
if (select count(*) from attr_val av, inserted i
          where av.class_cd = i.class_cd
          and av.attr_cd = i.attr_cd
          and av.attr_val = i.attr_val) >
          ( select count(*) from inserted )
for (select count(*) from inserted) is getting converted to select count(*) from dual
Thanks in advance,
srinivas.

all the Triggers are got converted to AFTER INSERT/UPDATE/DELETE TRIGGERS IN migration workbench...and almost all are been checking the existence of records in the table ie.,primary key check (existence of record) which if i turn them to BEFORE INSERT is becoming a MUTATING ERROR.
and one more thing the "count(*) from inserted" in sybase equivalent is not there in oracle how to solve this problem?????
if (select count(*) from attr_val av, inserted i
          where av.class_cd = i.class_cd
          and av.attr_cd = i.attr_cd
          and av.attr_val = i.attr_val) >
          ( select count(*) from inserted )
for (select count(*) from inserted) is getting converted to select count(*) from dual
Thanks in advance,
srinivas.

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

  • 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".

  • Going from Sybase to Oracle

    Hi.
    I'm kind of new at this, so please bear with me.
    We're moving from Sybase towards Oracle, and there we have a problem.
    I'd like to know if you have to change the way you make the Java SQL-queries, in order to make it work with Oracle DB's.
    Any help appreciated
    Thanx in advance
    /Mike
    null

    There is always a possibility that the jdbc syntax being used may have some "sybase specific" extension to the jdbc spec syntax.
    when you move the application from sybase to the oracle rdbms, some of these "sybase" extensions to the jdbc syntax may not work.
    assuming you're using rdbms 8.1.6 then you want to review any syntax issues you run into with the following java dcumentation :
    http://technet.oracle.com/doc/oracle8i_816/
    make sure you thoroughly test your applications.
    i hope thi9s helps ...
    null

  • 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

  • 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.

  • Importing DB info from Sybase to Oracle 9i

    Could someone please tell me if it is possible to import a sybase db into oracle 9i. The reason, I need to be able to import and excisting DB from sybase to Oracle for a project.

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

  • KM for Bulk loading from Sybase to Oracle

    Is there KM available for Bulk loading from Sybase to Oracle ?
    May be using Unix pipe, sybase fetch and Direct sqlloader.
    Anyone has some thoughts on this, appreciate your responses.

    Sample CTL generated by ODI.
    OPTIONS (
    ERRORS=0,
    DIRECT=TRUE
    LOAD DATA
    INFILE "/exp_imp/ODI_C_0ODI_TEST.bcp"
    BADFILE "/exp_imp/ODI_C_0ODI_TEST.bad"
    DISCARDFILE "/exp_imp/ODI_C_0ODI_TEST.dsc"
    DISCARDMAX 1
    INTO TABLE ODISYB_TEST.ODI_C_0ODI_TEST
    FIELDS TERMINATED BY 'M-,'
    C1_TEST_NO,
    C2_TEST_DESC,
    C3_TEST_TOKEN,
    C4_TEST_DATE
    Error on SQLLoader log file.
    Record 1: Rejected - Error on table ODISYB_TEST.ODI_C_0ODI_TEST, column C4_TEST_DATE.
    ORA-01858: a non-numeric character was found where a numeric was expected

  • 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

  • HT4009 I am trying to purchase in a app and it will not let me. I have just changed my credit card details now I can buy in my apps. I have purchased from App Store with no problem . Please help

    I am trying to purchase in a app and it will not let me. I have just changed my credit card details now I can buy in my apps. I have purchased from App Store with no problem . Please help

    Contact iTune Support
    http://www.apple.com/emea/support/itunes/contact.html

  • 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

  • Keys lost in converting from sybase to oracle

    I am trying to convert from sybase 12 to oracle 10 using the migration workbench.
    The oracle data base created does not have the primary keys that were in the sybase data base. I used the tool to create migration scripts, Create.sql and Drop.sql. These scripts create the tables but do not have primary keys in them.
    Another question is I have user types from the sybase database. Is it possible to change them in the tool? Right now it looks like I can only change the basic database types as in smallInt.

    Hi <Please Supply Your Name>,
    What version of SQL Developer are you using?
    "Create.sql" and "Drop.sql" sound like old OMWB names, Just want to double check.
    Thanks
    Dermot.

  • 4 level masetr detail  problem urgent please

    hi all
    i have page with 4 level master detail first as a form and other as tables my problem is when i click on a record at the last table the second table stop the partial triger so when i chose any record in table 2 it didnt change data in table 3 and data still as it in table 3 and 4 without changing i need to solve this problem very very urgent
    please help me
    Edited by: user554540 on 31/12/2009 11:34 ص

    Do you have the partialTriggers set correctly on the 3rd and 4th level tables?
    As an alternative, you could write a custom selection listener for table 2 and programmatically ppr the 3rd and 4th tables..

  • Qaaws not refreshing query triggered from Xcelsius, maybe a cache problem

    Hi,
    I'm having a problem with QAAWS and Xcelsius
    I'm using a List Builder component to select multiple values in this case STATES from the efashion universe
    I use the selected states as values to feed a prompt in a QAAWS query, the qwaas query has  the SALES REVENUE as the resultset and in the conditions it has a multi prompt for STATES
    When I preview my dashboard, I select the States, then UPDATE the values and then refresh the query with a CONNECTION REFRESH button, The first time I do this it works fine and returns the Sales revenue.
    If I add a new State to my selection and then run update and run run again the query with the refresh button, it doesn't work any more and it shows again the value retrieved from the first query
    First I thought that the query wasn't triggered by Xcelsius, but by doing some more tests I found that actually the query runs but it returns the value from the first query
    I think this is a cache problem , so is there a way to tell QAAWS to always run the query and not use the cache?
    thanks,
    Alejandro

    Hello Alejandro,
    QaaWS indeed uses a cache mechanism to speed up some Xcelsius interactions (from XI 3.0 onwards), but your issue should not be induced by this, as cache sessions are discriminated according to session user id & prompt values, so if you are correctly passing prompt values, QaaWS should not serve you with the previous values by error.
    Could you specify how you are passing several prompt values to the QaaWS? There might be an issue there, so make sure that:
    1. QaaWS query prompt is set using In List operator, otherwise only first value will actually be taken into account,
    2. In Xcelsius Designer Data Manager, web service input paremeters are duplicated to accept several input values (you cannot submit you list of prompt values as a list to a single input parameter).
    If this still does not work, I'd suggest you debug your dashboard runtime using an HTTP sniffer like Fiddler (available from http://www.fiddler2.com/) which enable you to inspect the sent & recieved HTTP messages with the server, where you should verify which prompt values are sent to the QaaWS servlet.
    FYI, you can set the QaaWS cache lifetime for each query, by going into QaaWS edition first wizard screen, click Advanced... button and change value for timeout parameter (default is 60 seconds)
    Hope that helps,
    David.

  • Condition in Interface Determination giving problem - URGENT!

    Hello experts,
    In my scenario I have one idoc posted from the SAP R/3 and I need to write max of 3 files in the same receiver file system based on some condition i.e. based on the value of some field in the incoming idoc.
    What I have done is in my interface determination, I have given that condition for all the 3 inbound interface. that is in the condition field in interface determination, for each inbound interface I chose that perticular field in idoc and gave the condition for which that interface should run.
    Now when I am pusing an idoc, if that idoc contains only one condition than my interface is working fine by creating only that file. I have checked this for all 3 files by sending 3 different conditions in 3 idocs. It creates 3 different files for 3 idocs.
    But if I send all 3 conditions in one idoc (since idocs can have multiple segments - in few segments i am giving one condition and in few others the 2nd conditon and in the rest the 3rd condition), I expect all 3 files to be created in my file system with data fulfilluing only that perticular condition. but this is not happening. In interface determination only one of the 3 is getting executed. Rest 2 is ignored and i cannot trace it anywhere (RWB, SXI_MONITOR etc)
    I have tried all possible combinations but this is not working if i send in 1 single idoc?
    Please help me in solveing this as this is a production issue and they cannot send 3 diffent idoc for 3 conditions. Where am i going wrong?
    Waiting for your responses.
    Thanks,
    Yash

    Hi Jakub,
    My scenario is one idoc say IDOC 1 and 3 files says FILE1, FILE2 and FILE3. Now the target message type for these three files are MT_FILE1, MT_FILE2 and MT_FILE3 (3 different message types).
    The only catch point here is i have 2 different interface for creating FILE3 (same message type but different mapping, interface etc). Each interface is based on a condition.
    Now when I send one doc which includes condition for only FILE1 and FILE2, it creates 2 file.
    If I have condition of only FILE3 (one condition of FILE 3 as FILE3 has 2 conditions) and FILE2, it creates both files.
    If I have both condition for FILE3 and FILE2, it creates FILE3 with only one condition and FILE2.
    If i have condition for FILE1, FILE2 and both conditions for FILE3, it creates FILE1 and FILE2 both no FILE3 at all.
    I guess the problem might be that I have same message type for both conditions for FILE3 but I m not sure. Let me try by creating seperate message type for both and see. But is there any other problem?
    Yash

Maybe you are looking for

  • MyFaces on OC4J 10.1.2.0.2 - JspParseException

    I just completed an application and it works fine at my test server (Win2003). Deploying the very same EAR-file at the production server went smooth, but calling any page returns the following error: 500 Internal Server Error OracleJSP: oracle.jsp.pa

  • Enter your Single Sign-On user name and password to sign in

    Hi, Could anybody tell me the user and password by default for administering SSO ? I think the user is orasso but I am not sure ... From: http://localhost:7777/pls/orasso/orasso.home I click on Login And here I get the message: Enter your Single Sign

  • HT204389 I can't get Siri to pronounce my name, despite changing it phonetically.

    It is "Cali" like California, pronounced Kal ee.  No matter how I spell it phonetically, she keeps saying Call E.  Any suggestions?

  • Disable the (ctrl+shift+s) of reader plug in

    HI, I have a link on my html page which opens the pdf file in html pooup window. I know if pdf is visible in browswr window its already in browser cache. I am ok with it. But what I want I dont want to give any other option to the user to save the pd

  • Date picker missing

    I have a form made up of a table. In one row I have a date picker. Unfortunately, I need to hide this row before the page load up. When a radio is picked, then this date picker row will show. However, when the row shows, the date picker does not appe