DBCascade Delete Problem

The mechanism of DBCascade Delete is controlled by Application server or
Application server use
Database "DBCascade Delete" mechanism to do this action.
Because I use WLS6.1 "Create Default DBMSTables" mechanism to create two
tables which the
relationship is many-one. But in my MSSQL database , I find two tables
created by WLS6.1 have no any
constraint or foregin key setting for corresponding column.
And then the mechanism of DBCascade Delete do not work.
So I add the db constraint and cascade delete in MSSQL database by hand ,
and then all is fine.
In the BEA EJB20 Sample "cascadeDelete", there is the table.ddl to let us
test the sample with ORACLE.
And I find the table construction has the foregin key constraint.
If I don't set the "DBCascade Delete" option in WLS6.1 console but DB
Schema has the foregin key constraint
, so the mechanism "DBCascade Delete" does still work ??
Anyone can explain how it work in WLS 6.1 ??
Thank in advance.
Alan Chang.

Alan,
This option is really only a 'convenience' feature for development and prototyping.
It really is a 'best approximation[ - - for more control, you really need to
define the schema definition 'by hand' (as you did as a prior step that worked)
Chuck Nelson
Developer Relations Engineer
BEA Support

Similar Messages

  • Two Related (?) file deleting problems in Finder and Time Machnine

    My internal drive is partition into two volumes. In the second one (the "non-boot" one), I was have trouble putting files in the trash that were locked. As I was tracking that down I coincidentally(?) started having another problem.
    I started getting a message that the files being put into the trash must be deleted immediately. I check permissions and I had read/write Privileges in the user account I'm normally logged into. However, If I logged into my administrator account, I could put things in the trash without deleting them. I noticed that ignore ownerships wasn't checked, so I checked that.
    That allowed my to put files into the trash without immediately deleting them. I went ahead and deleted the files I wanted to get rid of. However, I'm wondering if there was another issue because I am lead to understand that the ownership privileges shouldn't have necessitated checking "ignore ownerships"?
    Also, I had trouble deleting the backups of those files and folders in time machine. I can delete most of it. But for one folder (and all the folders in which it resides in the hierarchy) I can't deleted it. I tell it to delete backups of that folder (or folders it is in), I put in the password, and goes "ding". But nothing disappears...
    (After I wrote this, I tried unchecking "ignore ownerships" and the problem did not reappear. I can still put files in the trash without the immediate deletion problem.)
    Message was edited by: davidpsummers
    Message was edited by: davidpsummers

    Pondini wrote:
    davidpsummers wrote:
    Also, I had trouble deleting the backups of those files and folders in time machine. I can delete most of it. But for one folder (and all the folders in which it resides in the hierarchy) I can't deleted it. I tell it to delete backups of that folder (or folders it is in), I put in the password, and goes "ding". But nothing disappears...
    Are you doing that via the Finder or Terminal? If so, that's not the way to delete backups. See #12 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of the +Time Machine+ forum).
    And now I'm getting an error in time machine. "Files can't be copied onto the backup disk because it appears to be "read only"". I do get info on the disk, and my account has Read & Write privleges, but it say "You can only read" above that".
    The Finder or Terminal deletions may have corrupted your backups. Repair them, per #A5 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of the +Time Machine+ forum).
    Message was edited by: Pondini
    I'm doing the deletion through Time Machine (I go into Time Machine, find the folder in the backup, and ask Time machine to delete all backups of that folder).
    I did find the tip of unmounting the disk, rebooting, and remounting it. That Stopped messages about the disk being read only. However, the folder still doesn't delete. I'm also a bit worried about these being symptoms of some other problem...
    Message was edited by: davidpsummers

  • DBCascade Delete

    The mechanism of DBCascade Delete is controlled by Application server or
    Application server use
    Database "DBCascade Delete" mechanism to do the action.
    Because I use WLS6.1 "Create Default DBMSTables" mechanism to create two
    tables which the
    relationship is many-one. But in my MSSQL database , I find two tables
    created by WLS6.1 have no any
    constraint or foregin key setting for corresponding column.
    And then the mechanism of DBCascade Delete do not work.
    So I add the db constraint and cascade delete in MSSQL database by hand ,
    and then all is fine.
    Anyone can explain how it work in WLS 6.1 ??
    Thank in advance.
    Alan Chang.

    Alan,
    This option is really only a 'convenience' feature for development and prototyping.
    It really is a 'best approximation[ - - for more control, you really need to
    define the schema definition 'by hand' (as you did as a prior step that worked)
    Chuck Nelson
    Developer Relations Engineer
    BEA Support

  • SDB - delete problem/solution

    Hi Experts.
    Is it possible to delete problem/solution from solution database? There is information in help that it is not possible to delete problem/solution, but that they can be archived.. But note 946030 says it is not available...
    Regards
    Piotr

    Hello Piotr,
    In version 4 it was released one note (730402) that allow us to delete some symptoms and solutions. However, this may lead into some inconsistencies if they're linked with documents. We've never tried to execute it.... but if this may help you, try it
    Kind regards,
    Bruno

  • Data request deletion problem from remote system.

    Hi experts.
    Now i am facing one critical problem . The description is as following:
    we design the edw level in one phsical BW machine(A) which contains only dso infoprovider. This machine(A) works as datasource to provide data to another physical BW machine(B).
    The dso in A system is exported as datasource , Cubes in B system load data through this datasource .
    We first do the initialization with data contained on B system and then load delta data from A system. But if we want to delete some request in system A ,the system indicate this request can not be deleted unless the initialization in system B is deleted( this will lead to all the data missing in system B).
    Can anyone explain this mechanism to me , please help me suggesting some kind of methods to delete the request in system A without deleting the initialization information in system B.
    Thanks in advance.
    Waiting online for your kindly reply.

    1. Ask your Basis to look into it.
    2. try analyse your Baqckground Process in SM51.
    3. Is your Deletion Job started immediately or any Delay?
    4. If That cube or ODS has only this request which you are deleting, go with Context Menu Cube or ODS (by right click) --> Delete Contents.
    Delete Contents will improve performence compare to Request Deletion..
    If you have request more than this, you should not go for this.
    Nagesh Ganisetti.
    Assign points if it helps.

  • Order Deletion Problem

    Hello all...i've a strange situation...When a planner deletes an order in the past for a particular time bucket, the order gets deleted in this bucket but is added up to the next bucket. Does anyone know why this might happen??
    Thanks!
    NV

    one more point...this works perfectly for the future buckets and only for the past buckets we are facing this problem...this is in SCM 4.0
    Thanks!

  • Photo Stream delete problem

    When deleting photos in Photo Stream from my 4s or iPad 1, it used to delete universally from all devices.  I added my apple tv, and now it says "This photo will be removed only from the Photo Stream on this (iPhone or iPad)."  how do I get the universal delete back?  This problem makes managing photos for the Apple tv Photo Stream screen saver difficult.

    I should add that I signed out of Photo Stream on the apple tv, still have only local delete on all my devices.

  • The past few days my Mail app has started downloading multiple copies of e-mails from all pop servers.  This is only happening on my Macbook not other macs.  Deleting mail from server does not help. I ran ClamXav found 2 viruses deleted problem continues

    opps.  Long title there... The past few days my Mail app has started downloading multiple copies of e-mails from all pop servers.  This is only happening on my Macbook not other macs.  Deleting mail from server does not help. I ran ClamXav found 2 viruses deleted those.  Checked for software update and installed suggested downloads.  Problem still contintues.  Any suggestions?

    Folks,
    even after having repaired the inbox folder under "properties" a few times, I still had some e-mails where the contents are different from the subject line.
    In other words in the inbox there are two e-mails: one with subject line "abc", and another one with subject line "def".
    When I display the e-mail with the subject line "abc", the contents are from the e-mail with the subject line "def" in the in-basket.
    What else can be done to correct this problem?
    Thanks and best regards.
    Fred Kunz-Shirzad
    Chemin Ronzeures 6A
    1297 Founex VD
    Switzerland
    [email protected]

  • JSP item deletion problem

    I have a minor problem in JSP that I can't get fixed.. When I try to remove all items from my shopping basket it deletes all items except one.. but in fact he deletes them all but fails to refresh the correct content of the shopping cart.. (at least.. that's what i think..)
    <%
    String name = request.getParameter("action");
         if (name!=null){
         if (name.equals("emptyCart")){
         myCart.deleteAllItems();
    %>
    Remove all items
    So, when I add 3 items e.g. and I click on "remove all items" the first item I added still shows up in my cart, when I reload the window, it's gone.. I tried to add a JS function that would reload the window, but it doens't change anything..
    Your help is greatly appreciated,
    Michael

    As i stated the JS function is just a function that reloads the document, but even using that the problem remains;
    Here's the code from my bean:
    package myShoppingCart;
    import java.util.*;
    public class myCart implements java.io.Serializable{
         private Vector items = new Vector();
    public myCart(){
         items = new Vector();
    public void deleteAllItems(){
         items.removeAllElements();
    Thank you for helping out,
    Michael

  • IPhoto delete  problem

    To quote Charlie Brown, "ARRRGGGHHH!!!" Now that I have that off my chest. I, too, am experiencing a problem deleting images from iPhoto 5. Like the proverbial bad penny, they keep coming back. Whenever I move images from the iPhoto main library to the iPhoto trash and select "empty" iPhoto crashes and will only respond to "force quit." I have left the pastel pizza spinning for hours. Only force quit will stop the show. I tried selecting individual images and using control, option, delete. The images do disappear from the library and the total count (now at 11,754) is reduced by the number of images selected. When I close iPhoto and then reopen it, the images are back. I tried deleting images and thumbnails from the iPhoto folder in "pictures" only to have those show up as empty rectangles in the iPhoto library. If I click on one of the empty rectangles I get all the usual information concerning the missing image in the iPhoto menu box but no image. I have tried everything I can think off short of reinstalling iPhoto. I would do this but some of the images cannot be replaced and, since the images in the various sub-libraries were taken over extended periods of time and share DSC numbers, my iPhoto will not export them to any other location or back up device. I am prompted that the duplicate numbers are "busy." My question is: Am I missing something basic, some magic bullet that will allow me to restore function to iPhoto while retaining the desired images or must I have a supreme zen moment of non attachment and start anew?

    rix foto
    Welcome to the Apple user discussion forums
    I tried deleting images and thumbnails from the iPhoto folder in "pictures" only to have those show up as empty rectangles in the iPhoto library. If I click on one of the empty rectangles I get all the usual information concerning the missing image in the iPhoto menu box but no image.
    This is a cardinal sin in iPhoto (or in any database program) - by doing this you have corrupted your library - you should never modify the contents of the iPhoto library directly - only via the iPhoto program
    You can try rebuilding your library using iPhoto and if that does not work using iPhoto library manager - http://www.fatcatsoftware.com/iplm/ - but probably you are going to have to start over
    Reinstalling iPhoto will not help because you have corrupted the data - the program is fine
    If rebuilding does not work, you need to go to a backup before you corrupted your library or you need to start a new iPhoto library as follows - quit iPhoto, drag the existing iPhoto library to the desktop, restart iPhoto with a new, empty library and drag the originals folder from the iPhoto library on the desktop to the iphoto icon in the Dock - this will import all of the original photos form your old library (not the modifications, albums, folders or projects)
    In the future never modify anything in the iphoto library and do not try to delete more than a small number (say 100 ) photos at a time
    Good Luck
    LN

  • Playlist deleting problems?

    This is the very first time I am using itunes and the ipod so I am not familiar with the workings of both and reading the help files is not helping for certain things. First problem is that whenever I import a new playlist from itunes into the ipod, whatever playlists were there before in the ipod is now gone?
    I looked at the Preferences in itunes and the only option I am seeing which makes any reference to "auto syncing" is located in the "Devices" tab in itunes preferences.
    I have the "Disable automatic syncing for iphones and ipods" option checked, is there any other setting for this anywhere or is there an option for this in the ipod itself?
    Also, if an ipod's playlist cannot be deleted from within the ipod then how can it be deleted please?

    Hey there,
    For instructions on how to delete playlists, I would check out this Apple support document. Should be able to help you out.
    [Adding and Deleting Songs and playlists from your iPod|http://support.apple.com/kb/HT1855]
    Here is more help on syncing playlists and how to manage them between iTunes and your iPod. It should also be very helpful. Hope it is.
    [Syncing Music to iPod|http://support.apple.com/kb/HT1351]
    B-rock

  • SMQ1 deletion problem too much time larger queue

    Hi Experts
    We have to delete Queues from SMQ1, the problem is the data volume is huge in queues and system is taking too much time to delete these queues.
    To delete 122000 records it took 4 hours to delete the queue from SMQ1.
    Problem is we have to delete total of  51,48,000 records in total and one queue has huge data that is 26,10,000.
    Is there any solution to fasten the process of deletion or any work around SMQ1 to delete the queues faster.
    We are deleting queues in live system I mean the production system is up and running.
    Thanks
    Navneet

    Hi Navnet,
    Use the report RSTRFCQDS to delete the particular queue of SMQ1.
    The report should check the inconsistencies between the tables:
    TRFCQOUT, ARFCSSTATE, QREFTID and ARFCSDATA, therefore it will take time.
    The fastest way to delete them is: you use a sql tool to delete all the entries in TRFCQOUT, ARFCSSATE, QREFTID and ARFCSDATA. In this case, you also delete the entries in SM58 (tRFC).
    See also SAP Note 760113.
    Rgds,
    Colum

  • Subreq Deletion Problem

    GURUS
    I am Facing some Data Inconsistency Problem as A result of which the Stock requirement List Shows  subreq ( Sub contracting request )in MD04 even though the Purchase Order with reference to which they were created has been Archived
    I have a Material MD04 of which Shows Subreq which are created as a result of Purchase Order for other Material .
    Now the Purcase order is Archived but The Dependent Subreq  Is  been displayed and not deleted,
    I have tried the SAP Fix Program RM06C020 but it doesnt work as the Purcahse Order has been archived from the database and program RM06C020 will look for Order Entry in table MDBS .
    Please Suggest
    Thanks In Advance

    Hi Milind,
    Thanks for confirming that this is very rare case.
    The reservations created through MRP run will not allow you to access through MB22 route.
    Good that you could find the reservations in RESB. You can mark an entry 'X' in the RESB table field XLOEK (Item deleted) against the reservation number.
    If needed, take the help of your developer colleague to make this table entry.
    Thanks
    Senthil

  • Migration Microsoft SQL Sever 2005 to Oracle 11g cascade on delete problem

    Hi, I'm trying to migrate a sql server 2005 database to oracle 11g version with the lastest version of Oracle SQL Developer. All works fine but there is a little thing that I can't migrate. I have a few tables in the sql server database that has cascade on delete but I can't migrate this through Oracle Sql Developer.
    I know that Oracle database server supports it, then I can manually change the resulting database creation sql script but I'd like to know how I can do it with Oracle Sql Developer.
    Thanks in advance :)

    Hello,
    sorry for the delay.
    Even after some more research I couldn't find this problem described anywhere. I can confirm your observations, the problem is easy to reproduce. Thus I reported it to SQL Developer development as this looks like a bug.
    One workaround is to edit the generated DDL script and to add the ON DELETE CASCADE clause to the ALTER TABLE statement. If you don't like that: apply the scripts as they are and finish the migration. Then, in SQL Developer, right-click the table in your Oracle RDBMS schema, and click on Edit. In the pop-up window, select "Foreign Key". Then, in the lower right corner, there appears a small scroll-down menu where you can change the delete option from RESTRICT to CASCADE.
    Best regards
    Wolfgang

  • Business Rule Delete Problem

    Problem definition:
    We have a business rule according to CDM ruleframe, but have a
    problem when we want to delete a row from a table. The problem
    occurs when the business rule is validated. The
    delete operation works fine when the business rule is not
    validated.
    Business rule: BR_FELT_0006_DEL
    Table: SLN_FELTER
    CAPI-package: SLN_FELTER_CAPI
    Trigger attr.: After triggering statement on DELETE operation
    The definition of this delete rule is the same as the definition
    in the Headstart demo application.
    This is a simple reconstruction of the error problem:
    SQL> delete from sln_felter
    2 where opve_oppgave_nr = 'RF-1061'
    3 and opde_oppgavekode = 1014
    4* and inar_inntektsaar = 2000
    SQL> /
    delete from sln_felter
    FEIL pe linje 1:
    ORA-20999:
    ORA-06512: ved "HST65.CG$ERRORS", line 565
    ORA-06512: ved "SLNHL6.CG$SLN_FELTER", line 474
    ORA-20998: Transaction Failed
    ORA-06512: ved "HST65.QMS$ERRORS", line 128
    ORA-06512: ved "HST65.QMS_TRANSACTION_MGT", line 822
    ORA-06512: ved "SLNHL6.CG$ADS_SLN_FELTER", line 51
    ORA-04088: feil ved utfxring av
    triggeren 'SLNHL6.CG$ADS_SLN_FELTER'
    ORA-06512: ved "SLNHL6.CG$ADS_SLN_FELTER", line 43
    ORA-04088: feil ved utfxring av
    triggeren 'SLNHL6.CG$ADS_SLN_FELTER'
    SQL> @d:\hsd65\hst\scripts\messages
    Feil QMS-00100: Ukjent feil ORA-01403: ingen data ble funnet:
    qms_transaction_mgt.perform_business_rule
    Kontakt brukerkontakten.
    PL/SQL-prosedyren ble fullfxrt.
    Error message should have been:
    SLX-00367: <p1>: Feltet kan ikke slettes hvis det har pestand
    fra skattyter
    We have debugged the PL/SQL code and the error occurs in the CDM
    ruleframe generated
    CAPI-definition and not in the business rule itself. This is a
    part of the code where we think the error occur:
    procedure br_felt_0006_del
    is
    l_rule_validation_result boolean := true;
    begin
    l_rule_validation_result := br_felt_0006_del
    ( g_current_row.opde_oppgavekode
    , g_current_row.inar_inntektsaar
    , g_current_row.id
    if not l_rule_validation_result
    or l_rule_validation_result is null
    then
    qms_transaction_mgt.process_rule_violation
    ( p_br_name => 'BR_FELT_0006_DEL'
    , p_msg_code => 'SLX-00367'
    , p_display_label => display_label
    , p_table_name => 'sln_felter'
    , p_table_rowid => get_rowid <------ When this procedure
    -- is calling the get_rowid function
    ); -- then we get the ORA-01403: No data found.
    end if; -- Business Rule is violated
    end br_felt_0006_del;
    |
    |
    |
    function get_rowid
    return rowid
    -- Purpose Return rowid of the current row
    -- Usage From br procedures
    is
    l_rowid rowid;
    begin
    if g_current_row.the_rowid is not null
    then
    l_rowid := g_current_row.the_rowid;
    else
    select rowid     <--- We suspect this is a
    -- problem in CDM ruleframe,
    into l_rowid -- because a deleted row is read !!!
    from sln_felter
    where id = g_current_row.id
    g_current_row.the_rowid := l_rowid;
    if g_stack_index is not null
    then
    g_felt_tbl(g_stack_index).the_rowid := l_rowid;
    end if; -- g_stack_index
    end if; -- g_current_row.the_rowid
    return l_rowid;
    end get_rowid;

    We also have a problem with the delete rule.
    In our case we have two tables persons and reservations.
    A person can place more reservations. The foreign key between them two is cascade delete.
    Our code is
    Purpose Persons can only be deleted three years after they made the last reservation
    Remarks
    Revision History
    When Who
    Revision What
    30-01-2002 REPOWN
    1.0 Using utility HSU_BRTR (revision 6.5.1.3)
    04-01-2002 MAST     
    1.1 Code toegevoegd
    l_rule_ok boolean := true;
    begin
    trace('br_klt002_del (f)');
    -- for instructions, see the Headstart User Guide
    l_rule_ok := not ati_rsg_capi.exists_row
    ( p_where => 'trunc(reservationdate ) >= add_months(trunc(sysdate),-36) and psn_id = '||p_old_id );
    --also tried
    --l_rule_ok :=  not ati_rsg_capi.exists_row
    -- ( p_where => 'trunc
    --(reservationdate ) >= add_months(trunc(sysdate),-36) and
    --psn_id = '||p_id   );
    return l_rule_ok;
    exception
    when others
    then
    qms$errors.unhandled_exception(PACKAGE_NAME||'.br_klt002_del (f)');
    end br_klt002_del;
    The problem is that this doesn't work. We are allowed to delete every person, even if they have a reservation yonger than three years.

Maybe you are looking for

  • Embedded audio player in Internet Explorer

    I have created a webpage that has several sound files on it that people can choose which clip to listen to by pressing play (pause, fast forward, etc.) on the plugin control panel. In firefox and chrome, the sound files come up with the plugin contro

  • Killed two 890fxa-gd70s, my fault or bad luck?

    Not sure where to start but I had an MSI 890fxa-gd70 (amd) board for 6 months in which it was overclocked since nearly day one, all good till recently. This past friday the board failed. Durring prime the system shut down, fans and all, and a burning

  • Java.io.NotSerializableException: paint.Main$1

    hi everybody this is my problem... i have this code: public class Main extends JFrame class figura implements Serializable Point x, y; int tipo; int rettipo(){ return tipo;} public Point retx(){ return x;} public Point rety(){ return y;} void ponerti

  • SFTP configuration using SFTP tool in ODI

    Does anyone has successfully done the SFTP inmplementation in ODI? I am trying to achieve the same and failingwith error: org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "sftp://10.3.48.215/".      at org.apache.common

  • Problem interating through dataobjects in Adobe 8 and 9 (1 of 1),

    I need help. I am having a problem with a script I previously wrote that works fine in Adobe 7 but not in Adobe 8 or 9. Instead of printing the main PDF then iterating through the attachments(data objects) and printing each one, like it does in Adobe