Foreign keys on cascade delete rules are not migrated

hello folks, i tried to migrate a database from sql server 2005 to oracle 10g express using SQL Developer 1.5.5 and noticed that the cascade delete option of the foreign keys was ignored by the tool.
I'd like to know if it's a limitation of the tool or a bug. I have over 500 fks with such configuration and it would be simply impossible to manually configure every migrated fk in oracle.
thanks all.

Thanks,
Already logged:
Bug 7652822 - ON DELETE CASCADE IS LOST DURING MIGRATION
-Turloch

Similar Messages

  • Foreign keys without ON DELETE CASCADE; Database Design question

    This is the 3rd company i am working, where i see Foreign Keys created without
    ON DELETE CASCADEclause.
    My colleague says that it is created without ON DELETE CASCADE clause in order to make deletion of data (child records) difficult. So, for Purge/Archive codes, before we delete from Parent table we have to delete from the Child table first.
    Occasinaly , something goes wrong and we'll end up disabling all FKs and then do Purging, Archiving, etc..
    So, isn't it better to create Foreign keys with ON DELETE CASCADE clause rather than having all these hassles?
    From you experience, what do you guys think?

    ON DELETE CASCADE is usually not a good idea - something 'magical' happens in the background and rows go away. Instead, consider making the FK DEFERRABLE INITIALLY DEFERRED. That way you can delete the parent and child rows in any sequence and the constraint will not be checked until commit time. You want to use an API (stored procedure/package) to make sure DML is executed in the proper sequence and in the proper way for your business rules.

  • Want to remove cascade delete rule alone , but not referential functionalty

    Hi All,
    i need a help. i have a table (B) in production which is having a column with on delete cascade rule & it is a foreign key.whenever i delete a row from table A , the corresponding referential row in table B will be deleted. but,what i need here is, i want to remove cascade delete rule alone , but not the referential functionality(Foreign key functionality).
    Can any one please guide me......Thanks in Advance.

    Hi,
    You need to recreate(drop and create) foreign key without "on delete cascade" clause.

  • Drop foreign keys and recreate foreign keys with on delete cascade dymanica

    I need to drop foreign keys and recreate foreign keys with on delete cascade dymanically via a script. Does anyone have a script available?

    You could also disable the integrity contraints.
    SET PAGESIZE 0
    SET FEEDBACK OFF
    SET PAUSE OFF
    -- create a disable script
    SPOOL do_disable.sql
    SELECT 'ALTER TABLE '
           || table_name
            || chr(10) ||
           'DISABLE CONSTRAINT '
            || constraint_name
            || ';'
      FROM user_constraints
    WHERE constraint_type = 'R'
       AND status = 'ENABLED'
    select 'alter trigger '
           || trigger_name
            || ' disable;'
      from user_triggers
    where status = 'ENABLED'
    SPOOL OFF
    -- now create a enable script as well
    SPOOL do_enable.sql
    SELECT 'ALTER TABLE '
           || table_name
            || chr(10)
            || 'ENABLE CONSTRAINT '
            || constraint_name
            || ';'
      FROM user_constraints
    WHERE constraint_type = 'R'
       AND status = 'ENABLED'
    SELECT 'ALTER trigger '
           || trigger_name
            || ' ENABLE;'
      FROM user_triggers
    WHERE status = 'ENABLED'
    SPOOL OFF
    SET FEEDBACK ONif you run this script on a TESTdatabase you will end up with a do_disable.sql and a do_enable.sql script on youre local directory.
    Running do disable will disable all the currently enabled triggers and contraints.
    Running do_enable.sql will enable the previously disables triggers and contraints.
    be sure to test before executing this on a real live production database.
    Make sure you have a good backup!

  • Unable to create foreign key: InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index

    I am running an SQL(CE) script to create a DB. All script commands succeed, but the DB get "broken" after creating the last costaint: after running the script, viewing table properties of Table2 and clicking on "Manage relations" gives the following error: Unable to create foreign key: InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index. Wondering what does that refer to...
    Here it is the script. Please note that no error is thrown by running the following queries (even from code that passing the queries by hand, one-by-one to sql server management studio).
    CREATE TABLE [table1] (
    [id_rubrica] numeric(18,0) NOT NULL
    , [id_campo] numeric(18,0) NOT NULL
    , [nome] nvarchar(100) NOT NULL
    GO
    ALTER TABLE [table1] ADD PRIMARY KEY ([id_rubrica],[id_campo]);
    GO
    CREATE UNIQUE INDEX [UQ__m_campi] ON [table1] ([id_campo] Asc);
    GO
    CREATE TABLE [table2] (
    [id_campo] numeric(18,0) NOT NULL
    , [valore] nvarchar(4000) NOT NULL
    GO
    ALTER TABLE [table2] ADD PRIMARY KEY ([id_campo],[valore]);
    GO
    ALTER TABLE [table2] ADD CONSTRAINT [campo_valoriFissi] FOREIGN KEY ([id_campo]) REFERENCES [table1]([id_campo]);
    GO
    Sid (MCP - http://www.sugata.eu)

    I know this is kind of old post, but did this realy solved your problem?
    I'm getting this same error message after adding a FK constraint via UI on VS2008 Server Explorer.
    I can add the constraint with no errors, but the constraint is not created on the DataSet wizard (strongly typed datasets on Win CE 6) and when I click "Manage Relations" on the "Table Properties" this error pop out:
    "InvalidArgument=Value or '0' is not valid for 'index'.
    Parameter name: index"
    Even after vreating my table with the relation in SQL the same occurs:
    CREATE TABLE pedidosRastreios (
        idPedidoRastreio INT NOT NULL IDENTITY PRIMARY KEY,
        idPedido INT NOT NULL CONSTRAINT FK_pedidosRastreios_pedidos REFERENCES pedidos(idPedido) ON DELETE CASCADE,
        codigo NVARCHAR(20) NOT NULL

  • 0PS_C02 update rules are not getting activated when i install 4rm BI conten

    Hi All,
    In BI Dev. sys for PS module-  Project System - Dates 0PS_C02 cube-  update rules are not getting activated when i install from the business content and its giving the error  " IC=0PS_C02 IS=0PS_DAT_PRJ error when checking the update rules                Message no. RSAU461" .
    I deleted the inactive update rules(6 nos) and installed again from BI Content, then the same issue raising.
    Can anyone help me out as i stuck up with this to move to go-live.
    Thanks,
    Sakali

    Hi Vassu,
    here are some of the reasons for getting error in update rules activation.
    1. Check the formula or routines that are used in Update rules and check is there any syntax errors.
    2. check whether the mappings are correct or not.
    3. check the info objects which ur used for mapping are in active or not..
    (or) if the info object may be deleted which ur using for mappings.
    Thanks
    Sai Chand.

  • Rules are not allowed for jobs with set 'archive edited messages only' flag.

    Hi,
    We are on AEX 7.4 and have enabled user defined search and also setup archiving. Even though the retention period has expired but still the messages are not being
    archived.
    We see following issues:
    1. Unable to setup archiving rule in Runtime Work Bench, we are getting following error:
    Rules are not allowed for jobs with set 'archive edited messages only flag.
    2. Unable to set the expiration of messages using the following link.Each time we specify the number days it shows the same number of
    messages expired.
    http://XXXXX:50000/MessagingSystem/job/reorgdb.jsp
    3. However if we click on "remove messages" button the messages are getting deleted which tells me that the messages are not matching any
    archiving rule hence are being removed.
    Any pointers to the above issue are appreciated!!!
    Thanks,
    Rajeev

    Hi,
    Please check the [link|http://www.****************/Tutorials/XI/Archiving/Index.htm]
    Also check this
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/402fae48-0601-0010-3088-85c46a236f50?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=147266890
    Regards,
    Naveen.

  • Depreciation posting rules are not define for area 00 in company code

    Dear Expert,
    Would like to seek for help, when I run a customize report (AUC without PO not yet capitalized report the system prompt the error depreciation posting rules are not define for area 00 in company code only on the march 2011 on ward but before march 2011 the report is able to display as usual.
    Between., does SAP have the standard report to list the asset which is AUC and not yet capitalized?
    My version of SAP is ECC 6.0.
    Kindly advise.
    Regards,
    Karen

    Hi,
    Thank you for the prompt reply, why the system prompt the error depreciation posting rules are not define for area 00 in company code only on the march 2011 on ward but before march 2011 the report is able to display as usual?
    Please help.
    Regards,
    Karen

  • Rules are not working correctly in OCS 10.1.2

    Hi,
    A few days ago we have encountered a problem in which the BCC rules or any other rules are not processed out of the user's mailbox.
    For example, a user goes to Oracle Mail (the web access, but not WAC), goes to Filters and creates a new rule for dealing with incoming mail (delivered or read, doesn't matter). The rule is processed ONLY if the the user asked to move/copy the mail to a subfolder IN HIS MAILBOX.
    If the user asks to forward ("Send a blind copy to") the delivered mails to a different mailbox (e.g. in OCS or to externally to gmail), the mail is NOT processed by the filter.
    Other than that mails are treated normally, incoming and outgoing. Manually forwarding to other OCS users also works, as well as forwarding to external mail systems such as gmail. Only the 'automatic' forward rule does not work.
    We have checked that the rules/filters are created with " oesrl -p" - and they are created.
    How can we troubleshoot this issue? Has anyone encountered it?
    System details:
    OCS 10.1.2
    Platform: Red Hat AS 4
    DB version: 10.1.0.4.2
    Thanks,
    -- Itay.

    Update:
    Problem resolved. restarted the SMTP-out service.

  • 2LIS_02_ITM - Deleted items are not in the ODS 0PUR_O01

    Hello,
    We activated 2LIS_02_ITM extractor. We noticed that the deleted order items are not available in the ODS 0PUR_O01. SAP Note 578471 (Deleted positions in BW and statistics) explains that deleted items are not "statistical" relevant. However, this is an issue for us. Does anybody know if it's possible to change the behaviour of the extractor to keep deleted order items in the ODS ?
    Many thanks.
    François.

    Yes this is a known behavior in case of deltas.
    For Deleted line items Rocancel field will have an entry with R.
    To handle this you need to map ROCANCEL field in Technical group of transformation (Between Datasource to DSO) with 0Recordmode.
    Once you will do that then after activating the data in DSO it will nullify the records and deleted order or item will not appear.
    Regards,
    AL

  • I have recently updated my macs software then been onto Photo Booth and realised that all of my pictures/videos have been deleted and are not in iPhoto? Im not sure where they have all gone?

    PLEASE HELP
    I have recently updated my macs software then been onto Photo Booth and realised that all of my pictures/videos have been deleted and are not in iPhoto? Im not sure where they have all gone?

    Photobooth and iPhoto are two quite different apps with no connection between them. I'd try the Using Mac OS X forum for whatever version of the OS you have.

  • Calcmanager rules are not working

    Hello there,
    we have existing EPM environment 11.1.2.1, We just Installed a new EPM environment 11.1.2.3. After the installation and configuration I exported Calc manager rules from 11.1.2.1 and imported them in to 11.1.2.3 environment.
    It looks like Business rules are not working there. Below are the symptoms of the problem.
    (1) Rules keeps giving random validation errors. (Same rule validates in 11.1.2.1 fails in 11.1.2.3)
    (2) If I create a new rule for my planning application (lets say Test_Rule) and check the DB table I don't see any object being created. (Select * from HSP_OBJECT where OBJECT_NAME = 'Test_Rule')
    (3) Any updates I make to the rules in 11.1.2.3 is not being saved.
    It looks like Calc Manger is having hard time talking to planning DB.
    Any help will be appreciated.
    Thanks!

    If you have upgraded from 11.1.2.1 to .3 you would need to upgrade the planning application. Assuming that you have done that, for validation, you would need to provide validation value for all your Run Time Prompts.
    This can be done in the variables tab of the Rule Designer.
    Let me know if you have issues after these steps.
    Sree Menon
    Calc Manager Team

  • I had to get a new keyboard and now the keys in the upper row are not working appropriately. How can I fix this problem?

    My keyboard stopped working so I went to the apple store to replace it with another one. Now I am back home and the keys at the very top are not working correctly (volumn  F12 shows the dashboard, F11 takes the screen up and away, F8 pause button shows spaces, etc.). What should I do to correct this problem - I assume I probably need to download some type of softwear but what? I have a Mac OS X  Version 10.5.8 desktop - 2.66 GHz Intel Core 2 Duo processor.

    All new keyboards need Snow Leopard 10.6.8 and above for full functionality.
    Rather short-sighted of Apple perhaps, but that seems to be a trend these days.
    I'm afraid the only fix is to upgrade to SL. Personaly, I'd take it back and get a refund and seek an older keyboard or a third-party one elsewhere.

  • Rules are not getting fired - urgent

    Hello
    I am a newbie to the oracle rules engine (10.1.3) and introducing the rules engine in our architecture.
    I have started to fire a simple rule but looks like the rules are not getting fired.
    Here is my code snipped: I am setting a value in the fact if another value is null.
    ==========
    RuleDictionary rDict = RuleFactory.getRuleDictionary(RadiusConstants.RADIUS_REPOSITORY, RadiusConstants.RADIUS_DICTIONARY, RadiusConstants.DICTIONARY_VERSION);
    RuleSession ruleSession = new RuleSession();
    ruleSession.executeRuleset(rDict.dataModelRL());
    ruleSession.executeRuleset(rDict.ruleSetRL(taskName));
    RuleMessage ruleMessage = new RuleMessage();
    ruleSession.callFunctionWithArgument("assert", moduleVo);
    ruleSession.callFunction("run");
    ruleSession.callFunctionWithArgument("assert", moduleVo);
    // ruleSession.callFunctionWithArgument("assert", moduleVo);
    System.out.println(" Module Status " + moduleVo.getStatus());
    ========
    Any help is greatly appreciated. I am not sure if I am missing. I am suing rule author to create the rules.
    I am asserting the fact in the rules engine. Here is the RL file generated from the rule author.
    ==================
    ruleset MODULE_CREATE
    2.
    3. {
    4.
    5. rule ModuleId_Null
    6. {
    7. priority = 0;
    8. if
    9. (
    10. (
    11. fact gov.sec.radius.admin.service.module.vo.ModuleVO v0_ModuleVO && (
    12. (v0_ModuleVO.moduleId == null)))
    13. )
    14.
    15. {
    16. v0_ModuleVO.status = "P";
    17. assert(v0_ModuleVO);
    18. }
    19. } //end rule ModuleId_Null;
    20. }// end ruleset MODULE_CREATE
    =================
    thanks very much in advance
    Yugandhar

    You need to specify the ruleset or rulesets that should be run. If there is only one, you can do:
    ruleSesion.callFunctionWithArgument("run", taskName);
    or
    ruleSesion.callFunctionWithArgument("pushRuleset", taskName);
    ruleSession.callFunction("run");
    If there are multiple rulesets you want to run in order, then call pushRuleset in stack-order that you want their actions executed.

  • BI content -- Transfer rules are not mapping automatically

    Have  any one come across with this issue.
    We have connected R/3 system  to multiple BI systems.
    Eg:  we have 1 ECC6 & 2 BI systems.
    Business Scenario is .
    I have two different Companyu2019s  A & B in two different Network Domains ( Domain 1 & Domain2 ).
    u201C A u201C Have Ecc6 & BI  in the Network Domain1
    u201C B u201C Have ECC6 & BI in the Network Domain2.
    With in the Individual Domain ECC6 & BI is working Fine.
      Issue : -
    When I connected Company u201C A u201C Ecc6 ( Domain1 ) to Company u201C B u201C BI system ( Domain2 ).
    The connection is showing OK.
    Replication is also OK,
    But  BI content installation have issue, Transfer rules are not mapping automatically with Standard Data sources ( Eg: 0HR_PA_0 ).
    Thanks in Advanceu2026
    @Shaik...
    Pls this is critical issue ... Basis people is saying this is not the issue of Basis..Connection is OK ...SO . it is the issue of BI only.
    any one Advice me ....
    Edited by: shaik on Aug 24, 2008 5:39 PM

    Hi Raghavendra,
    Thanks for Replay,
    Can you explain me how to check the  data mart Connection  ?
    what i am doing is ....
    step 1: Connection is OK.
    step 2 : Replication is OK.
    step 3 : I am going to Install BC Infosource ( Eg: 0HR_PA_1 )
    Grouping -
    In data flow before.
    source system -
    i check the Ecc6 system which is in different domain.
    then i drag the infosource ..... the transfer rules are not mapping ( Not coming )
    pls Advice....
    @ SHAIK...
    Edited by: shaik on Aug 27, 2008 12:41 PM

Maybe you are looking for

  • SRM 7.0 EHP1 - new functions for BRF workflows

    Hi all, We currently upgraded our SRM 5.0 system to SRM 7.0. We need some inputs whether to activate the EHP1 for SRM 7.0 Are there any limitations in terms of BRF workflows which are now covered in SRM 7.0 EHP1? In SRM 5.0,we were using n step heade

  • Add horizontal spaces between regions

    Hi everyone, We use APEX 4.2. I want to know if it's possible to add horizontal spaces between "region a" and "region b" ? How I can do this ? I don't want to add an extra "region c". I taught about adding something in the header region or in the foo

  • How much extra disk space should I have?

    Hello! So lately I have been having some disk space issues! I was wondering how many extra MB I should have free on my macbook that is 1 GB i believe! Thank you!

  • How do i open pdf files in safari

    I am so frustrated.  I've been trying to open a PDF in Safari and it opens (almost all the way) and then stops.  It's about 80% open.  What is preventing it from opening all the way?  I've tried removing the PDF plugins from the library.  Nothing wor

  • What is best solution?.

    I got a call like this in CF7 code.... <cfhttp method="get" url=" http://prodsrv/userapp/update.cfm?id=#URLEncodedFormat(id)#&name=#URLEncodedFormat(name)#& Email=#URLEncodedFormat(Email)#"> Issue 1: update.cfm?id ? is not passing in CF7. What is bes