Cascade Delete thru Cross-Reference Table?

I'm setting up cascade delete rules in my database and I wonder if there's a way to cascade delete through a cross-reference table?
I have a table: "projects" that can have many "tasks" (also a table). A "participation" table is the cross-reference between them and it holds other information about the relationship.
So I know I can do a cascade delete so that the participations will get deleted when either the project or the task get deleted, but can I rig something so that when I delete a project all the participations and tasks get deleted?
Quick answers are greatly appreciated,
Janice

I recommend you to post this topic as well here:
Forums Home » Oracle Technology Network (OTN) » Products » Database » SQL and PL/SQL
Discussion of Oracle SQL and PL/SQL issues
PL/SQL
Joel Pérez

Similar Messages

  • Error while creating Cross-reference table using Xreftool (PIP Ins)

    Error while running xref.sh script unable to create cross reference table.
    **Error: Exception in thread "main" java.lang.NoClassDefFoundError: oracle/tip/xref/tool/AdminTool**
    Could not find xref directory within tip folder (/OracleAS_1/bpel/docs/workflow/oracle/tip)
    searched for similar issue in OTN it says issue fixed by upgrading Oracle AS, we are using 10.1.3.4 MLR#8
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=835446
    steps followed.
    Creating Cross-Reference Tables
    Complete the following procedure to create cross-reference tables.
    To create cross-reference tables
    1 Navigate to the following directory:
    %SOAHOME%/SiebelODOPPIP/scripts/
    2 Open the following file for editing:
    xref.sh
    3 Set the userid and passwd for logging into BPEL console on the appropriate lines.
    4 Set the correct SOA_HOME location on the appropriate line.
    5 Save and close the file.
    6 Make the file executeable:
    chmod +x xref.sh
    dos2unix xref.sh
    7 Change directory (cd) to integration/esb/bin under %SOAHOME%.
    8 Execute ../../../SiebelODOPPIP/scripts/xref.sh.
    I am using SOA suite 10.1.3.3 and getting same error
    Error: Exception in thread "main" java.lang.NoClassDefFoundError: oracle/tip/xref/tool/AdminTool

    Hi Abhijeet,
    please check in transaction FI01, about your data consistencies. You can use this wiki help in terms of Address, it it found any useful facts for you
    Address Checks - Business Address Services (BC-SRV-ADR) - SAP Library

  • Is it possible to delete all cross-reference links in a PDF at once?

    I have a 577 page PDF with multiple cross-references on each page.
    Unfortuntely, this causes the document to load pages VERY slowly on my iPad.
    Is it possible to delete these cross-reference links in one shot, rather than one by one?
    I am using Acrobat 9.5, if it matters.
    I tried Advanced - Document Processing - Remove All Links
    But it didn't touch them.
    Thanks

    A simple, but not typically recommended to do this is simply print the PDF to a new PDF. The printing process will eliminate all such markup, including bookmarks. There may be a preflight script to do this or might even be possible with the PDF Optimizer (think I remember such an option, but can't check on this machine).

  • Cross Reference Tables

    During a xref:lookup, I got an error which said 'XML-22044: (Error) Extension function error: Error invoking. Please ensure lookup criteria has a match'. I used the xreftool and saw that the tables that were referred to by the xref:lookup were there. I read that xrefexport would export the table and its metadata into a XML file. I tried using the xrefexport command after the setting a few parameters, but I keep getting the error '"ORA-00942: table or view does not exist' no matter which user I login as (sysdba, sysoper or oraesb) .
    Can anyone tell me where the Xref tables are actually created so that I can directly query the table and have a look at the data ?
    Cheers,
    Arun Ramesh

    Hi Arun,
    The error '"ORA-00942: table or view does not exist' implies you have not loaded the xreftables.sql located at $ORACLE_HOME/integration/esb/sql/oracle folder in the oraesb schema
    -regards

  • Problem deleting cross-references: Deleted cross-references do not convert to correct text

    This helpful page states that, "When you delete a cross-reference, the source cross-reference is converted to text."
    I use InDesign to create user's manuals, which are full of cross-referenced page numbers.
    The cross-references are all internal to a single document, they do not link to other documents. Each cross-reference is linked to paragraph text and the cross-reference format is Page Number.
    I find that whenever I delete a cross-reference, the cross-reference does convert to text; however, the text—which in this case is a page number—is wrong.
    For example, this sentence is on page 16:
    "You can measure your heart rate using either the handgrip heart rate monitor or an optional chest heart rate monitor (see page 21 for information about the optional chest heart rate monitor.)"
    Screenshot:
    However, when I delete the cross reference, the sentence now reads:
    "You can measure your heart rate using either the handgrip heart rate monitor or an optional chest heart rate monitor (see page 16 for information about the optional chest heart rate monitor.)"
    Screenshot:
    Now, to my mind, the cross-reference should have converted to the text "21," since that is what the cross-reference said (and it is the correct page number for the optional heart rate monitor text that is being referred to).
    Instead, the cross-reference converted to the text "16," which is the number of the page that the sentence is actually on, but is most definitely not what the cross-reference said and is not the correct page number to boot.
    Do any of you know the reason this happens?
    Is there a way to make the text convert to the correct page number when the cross-reference is deleted?

    Update: The cross references work when I export the book as Print PDF. Sadly this solution does not work in my case, because all my interactive element are disabled when exporting as Print PDF.

  • Look up ESB Cross-Reference within ODI

    We have a need to look up ESB cross reference table that is populated by AIA PIPs. I saw ESB Cross-Reference KM mentioned in "Oracle Data Integrator Knowledge Modules Reference Guides 10.1.3". My question is that can this KM be used to do ESB cross reference table look up. We don't need to populate xref table, just need to look up.

    Hi Ace2-
    Thanks for your quick response!
    I can able to reterive unmatched records by using “Left outer join” but it will multiple the record counts for “matching condition”.
    PRODUCT_ID,PRODUCT_NAME,SALES_QTY,SALES_AMT
    101,SEGATE-HD,10,100
    101,SEGATE-HD,10,100
    102,TOSHIBA-HD,20,5000
    103,TRANSCEND-PENDRIVE,10,2000
    104,SONY ERICSSON,10,100000
    105,NOKIA-7710,20,20000
    106,TOSHIBA-HD,10,9000
    107,NULL,NULL,NULL
    The above records will be the output of outer join. If you see the 2nd record it is getting duplicated as 1st record. I have to exclude the 2nd record as it increases the record count of “PRODUCT_SALES.csv” file.
    Thanks, Prabhu

  • Cross Reference Range?

    Need to get a cross-reference to range some pages, say page 16-19
    At the moment I'm creating two text anchors, one for each page, 16 and 19, then inserting the page references as two entities.
    Is there a better way?

    Eugene Tyson wrote:
    Ok - doing the cross-reference range works that way
    The Paragraph Numbers are done with "<paraNum />"
    And I use that for the cross-reference - but sometimes it pulls the entire paragraph in instead of the Para num?
    Capturing a paragraph in a cross-reference when its format is not defined with the <fullPara/> or <paraText/> building blocks, AFAIK is not a known bug.
    To be sure the cross-reference format's building blocks are correct, build the format's expression by clicking the plus sign button in the Cross-Reference Formats dialog box, rather than by typing it or copying it from other defined formats.
    To cross-reference a range of pages, insert a page-number format cross-reference at the beginning and end of the range. When content is added to or removed from between the cross-reference source markers, page number references adjust if needed. Take care not to delete the cross-reference markers when deleting text; it's helpful to work with hidden characters displayed. Moving a page that contains a cross-reference marker, as you'd expect, changes the page number reference.
    InDesign cross-references don't update automatically; you need to click the Update cross-reference button in the cross-references panel, or click the option in the cross-references panel flyout menu,  to fix the yellow warning symbols.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Converting cross references from Frame

    I am importing my Frame files by reference in RoboHelp (using
    Technical Communication Suite). I have mapped my "Heading &
    Page" cross reference style to the <$paratext> building block
    to drop the page numbers from the cross references. I cannot for
    the life of me get these to import correctly. When I import the
    chapters, the cross references still contain the page numbers. In
    addition, they are not hyperlinks, as they are in Frame.
    Double-clicking on the imported cross reference links does nothing.
    I am desperate to get these to convert properly - I have 34
    chapters to import from my user guide!!

    Yes, I applied all of the patches and same problem.
    What I did yesterday afternoon was to save the source FM file
    as MIF and take a look at the markers. The cross reference markers
    that were failing to move over had an \xod at the end. I posted in
    the Framemaker forum and discovered that this was the hexadecimal
    for a carriage return. As for why there would be a carriage return
    at the end of some of my cross reference markers I have no idea and
    I assure you it was not because I hit ENTER.
    However, I have been having some success this morning in
    deleting the cross reference markers and reinserting them. Of
    course, this messes up all of the other cross reference pointers
    throughout the book. It may be that if more than one cross
    reference is made to a single source (e.g., the marker is used more
    than once) the \xod appears. I am not yet sure. In between the
    time-consuming and focus-grabbing Force Updates and the frequent
    RoboHelp crashes during the Force Update process it takes some time
    to discover. Framemaker never had a problem keeping track of my
    cross references \xod or no.
    I still have the problem of two cross references right next
    to each other causing a Fatal Error when I try to compile. So I
    have to add some spurious word like "and" and it won't even let me
    make this word white. So I basically have to rewrite my source
    document.
    Any patches planned? Also, please consider an upgrade to the
    server hosting this board: it is extremely unresponsive.
    Thank you,
    Z.

  • Cross References: CS4 to CS3

    Background:
    My company group uses InDesign CS3 on Windows XP for about 5% of our document needs. The small percentage is primarily due to cost and learning curve issues, but we don't push to move more documents (particularly our engineering reports) from Word to InDesign because of page numbering and cross-referencing issues. The documents are graphics heavy, so this is a shame, particularly with our 300+ page documents that end up as pdfs.
    Question:
    I've read that cross-referencing has been extensively beefed up in CS4. If I use CS4 to put in cross references and take my document to my CS3 what happens?

    According to the Help file,
    Delete cross-referencesWhen you delete a cross-reference, the source cross-reference is converted to text.1In the Cross-References section of the Hyperlinks panel, select the cross-reference or cross-references you want to delete.2Click the Delete icon, or choose Delete Hyperlink/Cross-Reference from the panel menu.3Click Yes to confirm.To completely remove a cross-reference, you can also select the cross-reference source and delete it.
    "Deleting" and "completely removing" are different, and the characters composing the xref remain in the text if the xref is "deleted" ("converted to text" would be better terminology). You can select and "delete" all the xrefs in a document simultaneously, so it's a fast operation. I would then imagine that the text of the "deleted" xrefs will survive as text in ID3. You'll just have to try this last bit.
    The above is no good if you have to round-trip. I think you then have to buy DTP Tools' Cross-References Pro plug-in and use it to make xrefs in ID4, ignoring ID4's built-in capacities. These xrefs should survive as xrefs in ID3 (with the same plug-in installed), tho' you might want to check with the DTP people on that to be absolutely sure. If you then go back to editing the doc in ID4, the xrefs should still be there, "live" as opposed to dead text.
    Amazing that your company does tech docs in Word. Upgrading to ID4, or if you're on Windows, switching to FrameMaker, is a better way to go. There are various reports on the Web you can google that contrast Word and FM -- I bet quite a lot is applicable to Word vs ID too. You might be able to put together a persuasive budget request from them.

  • ODI : how to raise cross reference error before loading into Essbase?

    Hi John .. if you read my post, I want to say that you impress me! really, thank for your blog.
    Today, my problem is :
    - I received a bad quality data file from ERP extract
    - I have cross reference table (Source ==> Target)
    - >> How to raise the error before loading into Essbase !
    My Idea is the following, (first of all, I'm not sure if it is a good one, and also I meet issue to do it in ODI !)
    - Step 1 : make JOIN between data.txt and cross-reference Table ==> Create a table DATA_STEP1 in the ODISTAGING schema (the columns of DATA_STEP1 are the addition of columns of data.txt those of cross-references Tables (... there is more than 20 columns in my case)
    - Step 2 : Control if there is no NULL value in the Target Column (NULL means that the data.txt file contains value that are not defined in my cross reference Table) by using Filter ( Filter = Target_Account IS NULL or Target_Entity IS NULL or ...)
    The result of this interface is send to reject.txt file - if reject.txt file is not empty then a mail is sent to the administrator
    - Step 3 : make the opposite : Filter NOT (Target_Account IS NULL or Target_Entity IS NULL ... ) ==> the result is sent in DATA_STEP3 Table
    - Step 4 : run properly the mapping : source : DATA_STEP3 (the clean and verified data !) with cross reference Tables and send data into Essbase - NORMALY, there is not rejected record !
    My main problem is : what is the right IKM to send data into the DATA_STEP1, or DATA_STEP3 Table, which are Oracle Table in my ODISTAGING Schema ! I thy with IKM Oracle Incremental Update but I get error, and actually I don't need an update (which is time consumming), I just need an INSERT !
    I'm just lookiing for an 'IKM SQL to Oracle" ....
    regards
    xavier

    Thanks john : very speed !
    I understood better now which IKM is useful.
    I found other information about the error followup with ODI : http://blogs.oracle.com/dataintegration/2009/10/did_you_know_that_odi_generate.html
    and I decided to activate Integrity Constorl in ODI :
    I load :
    - data.txt in ODITEMP.T_DATA
    - transco_account.csv in ODITEMP.T_TRANSCO_ACCOUNT
    - transco_entity.csv in ODITEMP.T_TRANSCO_ENTITY
    - and so on ...
    - Moreover I create integrity constraints between T_DATA and T_TRANSCO_ACCOUNT and T_TRANSCO_ENTITY ... so I expected that ODI will raise for me in E$_DATA (the error table) the bad records !
    However I have one issue when loading data.txt into T_DATA because I have no ID or Primary Key ... I read in a training book that I could use a SEQUENCE ... I try but unsuccessful ... :-(
    Is there another simple way to create a Primary Key automaticaly (T_DATA is in an oracle Schema of course) ?thanks in advance

  • Db-cascade-delete for other databases than Oracle?

    I have two entity beans with a one to many relationship. The database designers have implemented a cascading delete between the two tables for the entity beans. How should the deployment descriptors be written for this to work properly? From what I understand I will need to use the <cascade-delete /> tag in ejb-jar.xml and <db-cascade-delete /> in weblogic-cmp-jar.xml. However this document http://e-docs.bea.com/wls/docs81/ejb/entity.html states that <db-cascade-delete /> only works for Oracle, and I'm using DB2. Does this mean that I have to remove the cascading delete in the database and only enable it in ejb-jar.xml, or will <db-cascade-delete /> work for other databases than Oracle?
    /Björn

    To get the certified answer I'd ask a tech support rep. Unofficially, if DB2 supports cascade delete then I would expect that the EJB container will work with that. There are issues surrounding certification of features against specific databases and I'm not up on all of these so I'd check with support.

  • Master/Details tables with CASCADE delete giving "table mutating" error

    Hi,
    I have two tables in a master/details configuration (table 1 is "master", table 2 is "details").
    The details has a FK contraint relation to the master with a CASCADE delete (so when the master is deleted, all associated details are deleted).
    The master table has a column "last_updated_datetime" which is updated by a master table update trigger whenever most (excluding the last_updated_datetime column) columns are updated.
    The details table has an update trigger which also updates the master table's last_updated_datetime column (whenever a detail row is changed).
    The details table also has a delete trigger which also updated the master table's last_updated_datetime column (whenever a detail row is deleted).
    The problem I have is: When the master record is deleted, which cascade deletes the details record(s), the delete trigger on the details table throws a "table is mutating" error.
    I understand that the "mutating" error is "correct" because the master record is being deleted.
    But is there some way I can get around this problem (for example, having the details table delete trigger not update the master table last_updated_datetime) when it's this cascade delete?
    Thanks for your help!

    create table master (
      id number primary key,
      changed date not null
    create table detail (
      id number primary key,
      master_id references master (id) on delete cascade
    create or replace package pkg is
      master_deleted boolean := false;
    end;
    create or replace trigger bds_master
      before delete on master
    begin
      pkg.master_deleted := true;
    end;
    create or replace trigger ads_master
      after delete on master
    begin
      pkg.master_deleted := false;
    end;
    create or replace trigger adr_detail
      after delete on detail
      for each row
    begin
    if not pkg.master_deleted then
        update master
           set changed = sysdate
         where id = :old.master_id;
      end if;
    end;
    insert into master values (1, sysdate - 10);
    insert into detail values (11, 1);
    insert into detail values (12, 1);
    insert into master values (2, sysdate - 10);
    insert into detail values (21, 2);
    insert into detail values (22, 2);
    insert into master values (3, sysdate - 10);
    insert into detail values (31, 3);
    insert into detail values (32, 3);
    commit;
    select * from master order by id;
            ID CHANGED                                                             
             1 01.09.08                                                            
             2 01.09.08                                                            
             3 01.09.08                                                            
    select * from detail order by id;
            ID  MASTER_ID                                                          
            11          1                                                          
            12          1                                                          
            21          2                                                          
            22          2                                                          
            31          3                                                          
            32          3                                                          
    delete detail where id = 21;
    select * from master order by id;
            ID CHANGED                                                             
             1 01.09.08                                                            
             2 11.09.08
             3 01.09.08                                                            
    select * from detail order by id;
            ID  MASTER_ID                                                          
            11          1                                                          
            12          1                                                          
            22          2                                                          
            31          3                                                          
            32          3                                                          
    delete master where id in (1, 2);
    select * from master order by id;
            ID CHANGED                                                             
             3 01.09.08                                                            
    select * from detail order by id;
            ID  MASTER_ID                                                          
            31          3                                                          
            32          3                                                           Regards,
    Zlatko
    Edited by: Zlatko Sirotic on Sep 11, 2008 11:15 PM
    This is disaster - ten attempts to format code!

  • Cross reference markers are deleted for content in text insets

    Cross reference markers are deleted for content text insets. I currently have a chapter that is built from several Import by Reference files. I added an introductory paragraph with cross reference links to heading 2 titles in these text insets. Everything works and saves normally, although the cross reference markers disappear from the chapter when files are checked out a few days later. An extra Heading 2 is also added to the end of the document.
    Steps to reproduce:
    1. Create a chapter composed of several text insets.
    2. Create a list of cross references to headings in these text insets at the beginning of the chapter.
    3. Check in/check out the files from a source control product.
    What went wrong?:
    The cross reference markers are gone, resulting in broken cross references. An empty Heading 2 is also added to the end of the document following the final text inset
    What should have happened?:
    The markers should remain and the heading 2 tag should not be applied to the document.
    Product version:
    Product: FrameMaker
    Version: 7.2
    Platform information:Windows XP
    Hardware: Dell Latitude D620
    OS Version: Windows XP Professional Version 2002, Service Pack 3.
    RAM: 1GB

    Thanks for the information, Van. We did try several techniques including adding the insertion point immediately after the text inset before the normal paragraph tag, but none seemed to consistently work. I will investigate this scenario futher, though, in light of your comments.
    We have managed to determine a workaround for this issue by avoiding a string of text insets. For some reason, using multiple text insets without separating them with normal text causes most of the problems after we add the files to our source control system. The situaton is not ideal, but it does work for the time being anyway.
    Steve

  • How to Maintain Surrogate Key Mapping (cross-reference) for Dimension Tables

    Hi,
    What would be the best approach on ODI to implement the Surrogate Key Mapping Table on the STG layer according to Kimball's technique:
    "Surrogate key mapping tables are designed to map natural keys from the disparate source systems to their master data warehouse surrogate key. Mapping tables are an efficient way to maintain surrogate keys in your data warehouse. These compact tables are designed for high-speed processing. Mapping tables contain only the most current value of a surrogate key— used to populate a dimension—and the natural key from the source system. Since the same dimension can have many sources, a mapping table contains a natural key column for each of its sources.
    Mapping tables can be equally effective if they are stored in a database or on the file system. The advantage of using a database for mapping tables is that you can utilize the database sequence generator to create new surrogate keys. And also, when indexed properly, mapping tables in a database are very efficient during key value lookups."
    We have a requirement to implement cross-reference mapping tables with Natural and Surrogate Keys for each dimension table. These mappings tables will be populated automatically (only inserts) during the E-LT execution, right after inserting into the dimension table.
    Someone have any idea on how to implement this on ODI?
    Thanks,
    Danilo

    Hi,
    first of all please avoid bolding something. After this according Kimball (if i remember well) is a 1:1 mapping, so no-surrogate key.
    After that personally you could use Lookup Table
    http://www.odigurus.com/2012/02/lookup-transformation-using-odi.html
    or make a simple outer join filtering by your "Active_Flag" column (remember that this filter need to be inside your outer join).
    Let us know
    Francesco

  • Cross-references (MS-Word to WebHelp) not showing up for Tables and Figures

    I am converting an MS-Word 2010 document to WebHelp using RH9. Cross-references to numbered sections, appendixes, websites, etc. come out fine. Cross-references to tables and figures do not always appear. In some sections they are there, and in some they are not.
    Would anyone be able to offer any insight into how I can get these table and figure cross-references to come out on a regular basis in the WebHelp version? Thank you.

    UPDATE TO PREVIOUS MESSAGE: Cross-references to tables and figures NEVER appear in the RH version when coming from MS-Word.
    Is there any way to have these cross-references appear? If not, it appears the only solution is to bookmark tables and figures individually and hyperlink to each of them.
    Thanks for any help you can offer.
    nankinnankin

Maybe you are looking for