ADF 11 g: problem with cascade delete

Hi all

Using JDeveloper 11.1.1.2.0. Have a master entity with the bodies of five children, each association marked as composition and "Implement Cascade Delete" checked (uncontrolled cascade of database optimization). Try to delete the captain get error of FK violation on one of these associations: for example "java.sql.SQLIntegrityConstraintViolationException: ORA-02292: eheysrajoitetta (SESDB.» MAKSUT_HAKEMUKSET_FK) on rikottu; alitietue on loytynyt.

Shouldn't ensure it option "implement Cascade Delete" the correct order for the removal of the DB? What I'm missing here?

Kind regards

Joonas

2 comments:

(a) are you sure of the FK that throws the error of constraint is the cascade - delete - would - this another FK?

(b) have you enabled also optimize for delete cascade of database. No doubt this will only send a master DELETE the DB.

CM.

Tags: Java

Similar Questions

  • What way to go with cascade delete

    Hello
    I must compose intellegent delete to table with PK - FK constraints (3 tables involved in this relationship), these constraints always without "delete cascade > but it could be fixed as it still in DEV." I'm curious to know how to do, then it will work in the best way.
    I am bit new to Oracle and any option cascade on DELETE is not found, so confused how it works in Oracle, what I need to ALTER first letting fall the constraints and then delete the tables one by one, or...
    I also read that read on www on some problem with < on delete cascade >, while it brings more confusion and attention...

    I enjoy info or pointer to any good place to learn or any good sample.
    What is best solution starting with DB at the end DELETE definition.

    Thank you all very much.
    Trent

    If you wanted to do a removal of the waterfall, you need to delete and recreate the foreign key constraint to specify that

    http://laurentschneider.com/wordpress/2007/08/on-delete-cascade.html

    In general, however, strongly hate the delete cascade option. I would have much preferred that the procedure that removes data from the company mother (you don't have such a procedure, right?) explicitly delete data by children (by calling another procedure in a different package). This makes it much more obvious for prospective developers what is happening, and what makes it much less likely that a deletion will have a perverse effect.

    Justin

  • What is the problem with CC, deleting files?

    I use CC 2015 on a Mac and heard there was a problem with it deleting some files. What files are deleted? Where should I look to see if they have been removed? Is there a solution for this?

    Thank you.

    @southwestform

    I just wish Adobe would send a mass email to users so that we wouldn't have people still to learn about it.

    Here are two places Adobe has some official info:

    Creative Office Mac Cloud issue. Adobe Customer Care Team

    Release notes for the desktop Adobe Creative Cloud application

  • Having problems with the deletion of an addEventListener

    Greetings from Adobe community,

    IM currently having a problem with my flash assignment,

    I have a: this.addEventListener (Event.ENTER_FRAME, onPanSpace);

    who is causing errors when I go to the next section:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at::mc2_3/onPanSpace() [Confabulation_fla.mc2_3::frame1:13] Confabulation_fla

    I would like to delete this addEventListener when I go to the next section (which is by clicking on a door), but to be honest, I have no idea how.

    So I ask "How can I remove this on my next frame addEventListener?

    Kind regards

    Notnao

    use:

    deur1.buttonMode = true;

    deur1.addEventListener (MouseEvent.CLICK, deurS1);

    function deurS1 (e:MouseEvent): void

    {

    MovieClip (root) .gotoAndPlay (3);

    parent.removeEventListener (Event.ENTER_FRAMEMovieClip (parent) .panSpace);

    }

  • problem with favorites: deleting and moving of deposit; freezes

    I can't delete the Favorites or moving files to the fovorites-it freezes and can not close either; need to do the Task Manager, please help!

    Hello

    1 how long have you been faced with this problem?
    2 have you made changes on the computer before this problem?
    3. what browser do you use?
    4. how exactly are you trying to move files to the Favorites?

    Also, look for error messages in the event viewer. If you find error messages after return the exact error message so that we can help you better.

    Measures to check the application event log:

    a. Click Start.
    (b) in the search box type eventvwr.msc , and then on enter.
    c. now, click Application in the event viewer (local).
    d. now, looking for event log on the right side of the event viewer window.
    http://Windows.Microsoft.com/en-us/Windows-Vista/open-Event-Viewer
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-information-appears-in-event-logs-Event-Viewer

  • Problems with changing/deleting of an adjustment layer

    First post here and I'm going a little crazy!  I use the latest version of CS5.

    I have some photos that I am currently having my subjects in color with the rest of the image in black and white.  This is a common trend, I do it with a lot of my photos, but for some reason I can't seem to remove the selected area, I created with the Quick Selection tool or the lasso tool.

    For you show how I always have done:

    I opened the image (these are jpg files) - the background layer is in color

    I add a hue/saturation adjustment layer.

    I adjust the saturation of the black and white layer.

    In general, I use the quick selection tool to highlight my topic, I want to be in color.

    When the subject is completely highlighted, I click on 'remove' and I see in the layer mask, the selected area black and my topic is the color of the background layer.

    I started to do that today and went through a handful of JPEG images using this same method, but now all of a sudden I try and do it, but when I click DELETE nothing happens and the layer mask is totally white without any modification whatsoever.

    Please please please help.  I have no idea why this method just stopped working all of a sudden.  I keep looking on Google to find similar problems, but does not.

    Maybe your background color is not black.

    Press the D button then press X.

    MTSTUNER

  • Problem with adding, deleting, replacement of containers in qml

    Hello

    Here is my code. I can't add and replace the containers on a page when clicking on the various buttons on the page.

    Please help me in fixing this problem

    import bb.cascades 1.0

    {Page}
    ID: helpScreen
        
    content: {container
            
    {Of container
    layout: {DockLayout}
    }
    horizontalAlignment: HorizontalAlignment.Fill
    ImageView {}
    imageSource: "asset:///images/top_bar.png."
    horizontalAlignment: HorizontalAlignment.Fill
    verticalAlignment: VerticalAlignment.Top
    }
    {Of container
    layout: {StackLayout}

    direction: LayoutOrientation.RightToLeft
    }
    horizontalAlignment: HorizontalAlignment.Left
    verticalAlignment: VerticalAlignment.Center

    Button {}
    preferredWidth: 50
    text: 'start '.
                     
    }
                                    
    }
    {Of container
    layout: {StackLayout}
    direction: LayoutOrientation.RightToLeft
    }
    verticalAlignment: VerticalAlignment.Center
    horizontalAlignment: HorizontalAlignment.Right
    ImageButton {}
    defaultImageSource: "asset:///images/faq_btn.png".
    enabled: true
    onClicked: {}
                            
    helpcontainer. Remove()
    faqcontainer. Add()
                            
                            
                            
                            
    }
    }
    ImageButton {}
    defaultImageSource: "asset:///images/help_btn.png".
    onClicked: {}

    helpcontainer. Add()
    faqcontainer. Remove();
                           
    }
                        
    }
    }
    } //end of the container of the header
           
    {Of container
                
    ID: helpcontainer
    {Label
                    
    text: "What is Point?"
    }
    } //end of help container
    {Of container
                        
    ID: faqcontainer
    {Label
                            
    text: "not able to scan?
    }
    } //end of the container faq
       
    } //end main container
    } //end of page

    Thanq u... Slipped my question.

    Instead of addind I removed it, I fixed it by setting the visible property = true and visible = false. It worked fine

    ImageButton {}
    defaultImageSource: "asset:///images/faq_btn.png".
    enabled: true
    onClicked: {}
                            
    faqcontainer. Visible = true
    helpcontainer. Visible = false
                            
    }
    }
    ImageButton {}
    defaultImageSource: "asset:///images/help_btn.png".
    onClicked: {}

    faqcontainer. Visible = false
    helpcontainer. Visible = true
                           
    }
                        
    }
    }

  • ADF Mobile Browser: problem with rowSelection = property 'Single '.

    Hi all

    I use jdev 11.1.1.5.0 version.

    I'm setting up browser mobile ADF application. in my case, I created two pages jsp (pronounced on mobile). on the first page, I slipped master vo and on the second page I drag detail vo.

    and rowSelection value = "Single" another property in VO. master so when the user select table main line radio button, and then click the order link go to the details page and vo display detail record according to master vo.

      <tr:table value="#{bindings.PayDepartmentView1.collectionModel}"
                      var="row" rows="#{bindings.PayDepartmentView1.rangeSize}"
                      emptyText="#{bindings.PayDepartmentView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                      width="100%" horizontalGridVisible="false"
                      selectionListener="#{bindings.PayDepartmentView1.collectionModel. makeCurrent}"
                      rowSelection="single">
                      
              <tr:column sortProperty="Name" sortable="false"
                         headerText="#{bindings.PayDepartmentView1.hints.Name.label}" width="100%">
                         <tr:panelGroupLayout layout="vertical">
                <tr:commandLink text="#{row.bindings.Name.inputValue}" styleClass="af_m_listingLink"
                                action="#{mobbean.chngDept}"
                                actionListener="#{mobbean.chngdeptlistener}"/>
                </tr:panelGroupLayout>
             
              </tr:column>
            </tr:table>
    

    but the problem is that I don't want radio button for selecting rows.

    If I disassembled rowSelection property box option is hide but not selected table then. and detail table show always record according to the first row of the table.

    Thank you

    Manish

    You don't need to display the key of the fields in the table, but do not add to your links page so that they are accessible - so you can reference them in your link. If you use a composite key, you may need to use the setCurrentRowWithKey instead of KeyValue #{row.rowKeyStr}

    See the section on the setCurrentRowWithKey here: Application Module Databinding tips and Techniques

  • problem with the deletion of the project

    Hello

    How to remove a project empty? I have this error:
    java.sql.SQLException: ORA-02292: integrity constraint (SNPW. FK_UFUNC_TECHNO) violated - book of the foundling


    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)

    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)

    (.......................)

    / Emila

    Go inside the function-> service-> technology group and try to remove the technology implementation.

    If it doesn't, then make a backup of the existing SNPW and delete the records for this function in the tables mentioned earlier.

  • ADF 11 g: problem with validation InputText

    Hello

    I have a text input. its source is as below:
    "< * af:inputText maximumLength ="8"label =" * "
    * Binding = "#{backing_Main.iptxt_MinTemprature}" *.
    * id = "iptxt_MinTemprature" columns = "16."
    * converter = "javax.faces.Double" autoTab = 'true' * ' "
    * autoSubmit = "true."
    * valueChangeListener = "#{backing_Main.onChangeRecalulate}" *.
    * immediate = "true" / >. *

    whenever there is any change of value function onChangeRecalulate (valueChangeListener) is called.
    here in the function onChangeRecalulate (valueChangeListener) when I'm reading the value entered in above text entry, it shows me as null, despite value entered.

    If I remove valueChangeListener then I am able to read the value of another input text does not.
    Please help on this.

    I need the valueChange Listener on this text entry to perform some calculations as soon as the user changes the value.

    Thanks in advance

    Concerning
    Romain Roussel

    getNewValue() method is available on ValueChangeEvent, try this:

    public void onChangeRecalulate(ValueChangeEvent valueChangeEvent) {
    System.out.println("Entered Value: "+valueChangeEvent.getNewValue);
    //Write your code here
    }
    

    Jean Lou

  • I have a problem with c:\users\myname\appdata\local\temp.

    Hello

    c:\users\myname\appdata\local\temp

    I plan to delete ALL/SOME of the files that are in this directory (NOT the files).  One of my applications is broken, and I suspect that it continues in this way due to a forced down while running.

    I read on another thread that is not a good idea to touch the contents of this file, in particular the FOLDERS that are in this folder. Apparently, it causes problems for other applications. http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/deleted-files-in-userappdatalocaltemp-downloads/9dca1f8b-9d37-4a46-a0af-e1fce2662718

    I will only delete FILES after a certain date and WILL NOT affect the files.

    What do you think. This will cause me any grief?

    OK, back again.

    I solved my problem of system by doing a restore of the factory system.

    I got good advice on the above question, and there is no problem with the deletion of everything in this folder. This is something I do on a regular basis as the maintenance of the system.

  • Cascading deletion

    I activated on option delete cascade in a single table. What I want is when I delete a row in the AUDIT_PROCESS table, it deletes the row in the FEEDBACK_PROCESS table and the table MICC_AT_ANALISYS. I think I created the constraints on the table to foreign keys feedback_cod and cod_analysis very well audit_process, but when I delete a row in the audit_process table, it doesn't delete the table feeback_process and micc_at_analysis. I don't know if I have to make another step to trigger what I want. Please help me with this.

    Here's the code when I created the tables.

    I have this table with cascading delete enabled
    CREATE TABLE  "AUDIT_PROCESS" 
       (     "AUDIT_COD" NUMBER(5,0), 
         "COD_ANALYSIS" VARCHAR2(5), 
         "FEEDBACK_COD" NUMBER, 
         "AUD_SR" VARCHAR2(15), 
         "AUD_ERROR" VARCHAR2(5), 
         "AUD_OBSERV" VARCHAR2(300), 
         "AUD_OWNER" NUMBER, 
         "AUD_DATE" VARCHAR2(10), 
         "AUD_STATUS" VARCHAR2(5), 
          CONSTRAINT "AUDIT_PROCESS_PK" PRIMARY KEY ("AUDIT_COD") ENABLE
       ) ;ALTER TABLE  "AUDIT_PROCESS" ADD CONSTRAINT "AUDIT_PROCESS_CON" FOREIGN KEY ("COD_ANALYSIS")
           REFERENCES  "MICC_AT_ANALISYS" ("COD_ANALYSIS") ON DELETE CASCADE ENABLE;ALTER TABLE  "AUDIT_PROCESS" ADD CONSTRAINT "AUDIT_PROCESS_CON_FEEDBACK" FOREIGN KEY ("FEEDBACK_COD")
           REFERENCES  "FEEDBACK_PROCESS" ("FEEDBACK_COD") ON DELETE CASCADE ENABLE;
    This table below is one of the parents table
    CREATE TABLE  "FEEDBACK_PROCESS" 
       (     "FEEDBACK_COD" NUMBER, 
         "FEEDBK_AGREE" VARCHAR2(2), 
         "FEEDBK_OBSERV" VARCHAR2(250), 
         "FEEDBK_DATE" VARCHAR2(10), 
         "FEEDBK_STATUS" VARCHAR2(5), 
         "SR" VARCHAR2(15), 
         "ERROR" VARCHAR2(5), 
          CONSTRAINT "FEEDBACK_PROCESS_PK" PRIMARY KEY ("FEEDBACK_COD") ENABLE
       ) ;
    It's the other parent table
    CREATE TABLE  "MICC_AT_ANALISYS" 
       (     "COD_ANALYSIS" VARCHAR2(5), 
         "ANALISYS_DATE" VARCHAR2(150), 
         "ANALYSIS_OBS" VARCHAR2(150), 
         "ANALYSIS_STATUS" VARCHAR2(4), 
         "ANALYSIS_SOURCE" VARCHAR2(10), 
         "ANALYSIS_ERROR" VARCHAR2(4), 
          CONSTRAINT "MICC_AT_ANALISYS_PK" PRIMARY KEY ("COD_ANALYSIS") ENABLE
       ) ;

    Bernardo,

    This isn't a typical question of APEX.

    Suggested it was an option.

    CREATE OR REPLACE TRIGGER trg_adr_audit_process
      AFTER DELETE ON audit_process
      FOR EACH ROW
    BEGIN
      DELETE feedback_process WHERE feedback_cod = :old.feedback_cod;
      DELETE micc_at_analisys WHERE cod_analysis = :old.cod_analysis;
    END;
    

    However, if it is in the APEX, you might consider writing a page-process that manages all delete them for you:
    -remove the child
    -remove the parent
    and this process will be triggered by the action of DELETING your page.

    Kind regards
    Richard

  • Problems with the database, on delete cascade

    Hello

    I am in a project with the Flahs CS4 with air and as3. I create a database by code, everything is ok. I have 2 tables,
    a main table with a code field as primary key and other details of the table, named e.g. DetailTable, with 3 fields as the primary key. What I want to do, this is a deletion of a row in MainTable, all lines of DetailTable, where the field code is the same as the field in MainTable code should be deleted also.

    Here's the SQL code to create the tables.

    var sql2:String = "CREATE TABLE If NOT EXISTS MainTable ('+ '.
    "code INTEGER PRIMARY KEY AUTOINCREMENT, ' +.
    "quote," +
    'date ' +.
    "  " +
    ")";

    var sql3:String = "CREATE TABLE If NOT EXISTS DetailTable ('+ '.
    "code INTEGER, INTEGER position, type INTEGER, ' +.
    "path of TEXT, TEXT document, ' +.
    'PRIMARY KEY (code, position, type) +.
    'FOREIGN KEY (code) REFERENCES Detallesecuencia (code) ON DELETE CASCADE ' +.
    ")";


    Thus, when the tables are created, insert data. I connect without a problem, remove a line in MainTable (see code), to remove the line with the example code = 4, but in the DetailTable, all with code = 4 lines are NOT deleted, why?

    [CODE]
    Inside of a class

    private var conn: SQLConnection;

    public void constructorClass() {}
    Conn = new SqlConnection ();
    ConexionBD();
    }

    function ConexionBD() {}

    conn.addEventListener (SQLEvent.OPEN, openHandler);
    conn.addEventListener (SQLErrorEvent.ERROR, errorHandler);
    var dbFile:File = File.applicationDirectory.resolvePath ("mydatabase.db");
    conn.openAsync (dbFile, SQLMode.UPDATE);
    }

    function deleteRow() {}
    selectData:SQLStatement = new SQLStatement();
    selectData.sqlConnection = conn;
    selectData.text = "" DELETE FROM MainTable WHERE code =: param1 ";"
    selectData.addEventListener (SQLEvent.RESULT, resultHandler);
    selectData.addEventListener (SQLErrorEvent.ERROR, errorHandler);

    Delete line in MainTable code = 4, but not to delete all the rows in DetailTable with code = 4
    selectData.parameters [": param1"] = 4;

    selectData.execute ();
    }
    [/ CODE]

    Thanks in advance

    Hmmm, well then maybe it's you must go down the road of the old school and delete individual tables as needed, rather than rely on the cascade delete.

  • Problem of memory in Cascade Delete

    Using JDeveloper and ADF 12.1.2.0.

    I have a master relationship / detail where there may be 200 000 or more details to one master.  In the database, I created the FK constraint with the CASCADE DELETE option.  In the ADF BC file, I put the object of the Association between the two EOs with Composition Association enabled, optimize the Cascade Delete database checked and implement Cascade Delete is automatically checked.

    The cascade delete works fine - when the user deletes a primary record, its details are also deleted.  It works at least as long as the private teacher only has say, 50 000 Details.

    But the more details there are, more memory is used on the server, when a master record is deleted.  With the larger sets of detail (for example, details more than 50,000), this can cause an "out of memory" error, and then the server (WebLogic 12.1.2.0) breaks down.

    I'm not sure I understand why it's behaving as if she brings ALL of the detail records in memory to do the deletion, when the real delete activity should be about the database.  All I can do about it?  Or do we simply give lots of server memory and hope for the best?

    Were not ignoring you - just attend to other priorities.

    I will continue this investigation with some of the suggestions on your part and Timo.

    Meanwhile, our application server administrator discovered that if he gave WebLogic Server 3 GB of memory, we can remove the largest set of detail that we never got into production without crashing the server. So that's what he will give to the production server.  So we have a good workaround solution, and I will mark this as answered.  Thanks for your help.

  • Using Firefox 7.0.1; having problems with hotmail. Cannot click on controls at the top of MSG, which is New, reply, delete, etc.. Can click on the same commands @ the bottom of the problem w/no MSG. Also cannot click on Inbox folder once I have access to

    Using Firefox 7.0.1; having problems with hotmail. Cannot click on controls at the top of MSG, which is New, reply, delete, etc.. Can click on the same commands @ the bottom of the problem w/no MSG. Also cannot click on Inbox folder once I have access to another folder. All known solutions?

    This problem may be caused by the Yahoo! toolbar as scopes as well down and covers the top of the browser window, allowing links in this part of the screen not clickable.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

Maybe you are looking for