Can xsu not be used to update more than one table at a time.

I would like to update two or more tables using the same XML package. However when I use XML that contains tags using column names from both tables I get an error that the second table's columns names can not be found in the first table even if I use setUpdateColumnList and build an array that contains only columns from the first table.
Xsu does not do me a lot of good if only one table at a time can be updated.

Assuming you are using Oracle 8i you may want to bone up on 'Object Views' and 'instead of' triggers. This is the functionality that is commonly used to perform multiple table updates from a single data source such as XML.
An object view can be based on a query such as 'select a.col1, a.col2, b.col1, b.col2 from a, b where a.key1 = b.key1'.
The object view is then used by the XSU to perform the XML query/update rather than using tables a and b.
You would then write an 'instead of' trigger on the object view. The trigger would update the appropriate table (a or b) based on the columns provided in the update list.
Steve's book 'Building Oracle XML Applications' in Chapter 12 explains how to do it and has sample code that demonstrates the process.
The book is available everywhere and you can download the sample code from the book at o'reilly's web site.
Good luck!

Similar Messages

  • How can i update more than one table at a time?

    i would like to update more than one table at a time. In Java Studio creator2 how can i do table updation?

    Hi,
    Please go through the below thread might be of help to you.
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=51839
    RK

  • Why can I not send a text to more than one person at a time on my iphone 5

    I have an iphone 5 IOS 8.1.3, and I can only send text messages to one person at a time. I cannot send GROUP text messages. It will then tell me they are not delivered.  What is wrong? How can I correct it?

    Send a group message with your iPhone, iPad, or iPod touch - Apple Support
    Send messages with your iPhone, iPad, or iPod touch - Apple Support
    If you can't send or receive messages on your iPhone, iPad, or iPod touch - Apple Support

  • Failed to upgrade more than one table at same time

    Hi
    In Deployment Manager, I failed to upgrade more than one table at same time.
    I tried to hightlight 4 tables and set the default action as Upgrade, and click File/Generate Deploy. It passed the code generation step then I click Deploy, they are all failed with no error message.
    But they are all successful when I upgrade them one by one. Any one has any idea about this?
    For the known reason, we have no choice to do the deployment with action of 'upgrade' through OMBPlus, instead, can only do that interactively through OWB Client. I can't imagine to ask our Production side DBA to upgrade 80 tables one by one. Or I have to use the generated scripts to do the upgrade, which will resulted in 'no deploy status updated' in OWB. Any help will be very appricated.
    The version I'm using is OWB 10g.
    Thanks,
    Daming

    Hi
    First of all, Patrick's solution doesn't work for me. I didn't do cloning and there is no problem when check the WB tables.
    Second, I think your solution is only good for the developing environment just to get tables upgrade via deployment manager. In most cases, when you do a new release on PROD environment you just exp/imp the MDL file from DEV to PROD and any developing is not recommended on PROD. But your approach is trying to manually the DB, and then EDIT the mapping to do the Reconcile and then deploy. Surely you can do that if you have full control on your PROD side. However, in my situation, I have no access to the PROD for the security reason and an DBA Operator of the Client is responsible to implement my Migration process on PROD by himself.

  • How to insert into more than one table at a time also..

    hi,
    i am a newbee.
    how to insert into more than one table at a time
    also
    how to get a autoincremented value of an id say transactionid for a particular accountid.
    pls assume table as
    transactionid accountid
    101 50
    102 30
    103 50
    104 35
    i want 102 for accountid 30 and 103 for accountid 50.
    thank u

    @blushadow,
    You can only insert into one table at a time. Take a look here :
    Re: insert into 2 tables
    @Raja,
    I want how to extract the last incremented value not to insert.Also, I don't understand your thread title... which was "how to insert into more than one table at a time also.. "
    Insert, extract... ? Can you clarify your job ?
    Nicolas.

  • How to update more than one table using EO

    Hi frnds,
    Can someone provide me a doc/link which explain in detail how we can we update more than one PL/SQL tables using entity objects(on which VOs are based).
    Till date I have been doing this using PL/SQL procedures but now my requirement is to achieve it thru EO.Someone suggested me use VL to achieve plz help
    Thanks & Regards,

    Hi,
    That would be very nice of you,plz send me the docs and also send me similar docs that would be beneficial for a beginner like me.
    My id is [email protected]
    Thnx for your time.

  • Update more than one table

    Can more than one table be updated from a single form that was created using a wizard? If so, how? I tried firing a trigger to add a new record to another table, but get this message "No updatable report found. Multi row updated and delete operations can only be performed on tabular forms of type "Updateable Report"
    Thanks
    John

    Hi John B
    Please make sure you explain to forum when asking for help.
    What version of Apex your using.
    Database Version:
    Browser etc.
    Yes you can update multiple tables from one single form. I'm not 100% sure about the wizard part, because before anyone can answer that we need to know which version of Apex your using?

  • I have an HP Photosmart C4180 all in one printer scanner and copier, I can't figure out how to scan more than one page at a time and then send as a PDF file via email

    I have an HP Photosmart C4180 all-in-one, printer, scanner and copier.  I can't figure out how to scan more than one page?  It will only let me do one page at a time and then I have difficulty sending pages 1, 2 and 3 as one docuement.  Any ideas??
    Thank you, Jetteski

    Hello Jetteski,
    Hello Jetteski, Thanks for the post.
    Since you are running a MAC, check the below links for some excellent information on scanning.  Good Luck!
    http://goo.gl/M8Cl2
    http://goo.gl/cufK6
    http://goo.gl/OTQoR
    I work for HP but my posts and replies are my own....Thank you!

  • Firefox will not load pictures, videos or more than one tab at a time. Help!

    Hi there,
    I have reinstalled Firefox 3.6 a few times, but it doesn't seem to fix the problem. When I try and load a site with pictures, videos (such as YouTube, but including a blog post with pictures), or more than one tab at a time, I just get "Untitled" tabs that don't even register the address. This happens especially when clicking to open a link in a new tab from a Google Reader.
    At this point too, a lot of pages will not load correctly; even Firefox Help as it turns out!

    Sorry there is no telephone support. You could try the IRC if you want a quick response, ( whilst it is [https://support.mozilla.com/en-US/kb/ask open] )
    Firefox 4 is not supported, but firefox 3.6 is
    * see [[installing a previous version of firefox]]
    There is a change to a preference which may help, post back with more details of your problems please.

  • Creating SQL-Loader script for more than one table at a time

    Hi,
    I am using OMWB 2.0.2.0.0 with Oracle 8.1.7 and Sybase 11.9.
    It looks like I can create SQL-Loader scripts for all the tables
    or for one table at a time. If I want to create SQL-Loader
    scripts for 5-6 tables, I have to either create script for all
    the tables and then delete the unwanted tables or create the
    scripts for one table at a time and then merge them.
    Is there a simple way to create migration scripts for more than
    one but not all tables at a time?
    Thanks,
    Prashant Rane

    No there is no multi-select for creating SQL-Loader scripts.
    You can either create them separately or create them all and
    then discard the one you do not need.

  • Can XML Update more than One Table in one call?

    Hello,
    I had a quick question. I have a client who is using both Oracle and SQL. They have an app developed in C sharp with XML whichs runs against SQL and want to port to Oracle.
    In SQL one XML statment can update multiple Tables. Can we do that in XML in Oracle? I know, we can't do that using PL/SQL.
    Subhash

    Anupama,
    Thanks for offering your help. I have attached the sample code. It works fione on SQL. I need to make sure it works on Oracle as well.
    Subhash
    ALTER PROCEDURE dbo.spx_PutPackage
    @XMLText text
    AS
    DECLARE @hDoc int,
    @Package_Tbl_Id Int,
    @Package_Type_Id Int,
    @Binder_Id Int,
    @Package_Name Varchar(256),
    @Package_Status_Type_Id Int,
    @Package_Approval_SeqNo Int,
    @Package_Current_Issue Int
    BEGIN
    --******************************** DELETE ********************************
    EXEC sp_xml_preparedocument @hDoc OUTPUT, @XMLText
    DECLARE xml_cursor
    CURSOR FOR
    SELECT Package_Tbl_Id,Package_Type_Id,Binder_Id
    FROM openxml(@hDoc,'/ROOT/Package[@Package_Status="D"]')
    With Package
    OPEN xml_cursor
    FETCH NEXT FROM xml_cursor INTO @Package_Tbl_Id,@Package_Type_Id,@Binder_Id
    WHILE @@fetch_status = 0
    BEGIN
    DELETE Package WHERE Package_tbl_Id = @Package_Tbl_Id
    --If this package is an addendum, a trigger decrements the Current_Addendum_Number
    --when the addendum table is deleted as part of the cascade delete.
    FETCH NEXT FROM xml_cursor INTO @Package_Tbl_Id,@Package_Type_Id,@Binder_Id
    End
    Close xml_cursor
    DEALLOCATE xml_cursor
    --******************************** INSERT ********************************
    DECLARE xml_cursor
    CURSOR FOR
    SELECT
    Package_Tbl_Id,
    Package_Type_Id,
    Binder_Id,
    Package_Name,
    Package_Status_Type_Id,
    Package_Approval_SeqNo,
    Package_Current_Issue
    FROM openxml(@hDoc,'/ROOT/Package[@Package_Status="I"]')
    With Package
    OPEN xml_cursor
    FETCH NEXT FROM xml_cursor INTO
    @Package_Tbl_Id,
    @Package_Type_Id,
    @Binder_Id,
    @Package_Name,
    @Package_Status_Type_Id,
    @Package_Approval_SeqNo,
    @Package_Current_Issue
    WHILE @@fetch_status = 0
    BEGIN
    INSERT INTO Package (Package_Tbl_Id, Package_Type_Id, Binder_Id, Package_Name,
    Package_Status_Type_Id, Package_Approval_SeqNo, Package_Current_Issue)
    VALUES(@Package_Tbl_Id,
    @Package_Type_Id, @Binder_Id, @Package_Name, @Package_Status_Type_Id,
    @Package_Approval_SeqNo, @Package_Current_Issue)
    FETCH NEXT FROM xml_cursor INTO
    @Package_Tbl_Id,
    @Package_Type_Id,
    @Binder_Id,
    @Package_Name,
    @Package_Status_Type_Id,
    @Package_Approval_SeqNo,
    @Package_Current_Issue
    End
    Close xml_cursor
    DEALLOCATE xml_cursor
    --******************************** UPDATE ********************************
    DECLARE xml_cursor
    CURSOR FOR
    SELECT
    Package_Tbl_Id,
    Package_Type_Id,
    Binder_Id,
    Package_Name,
    Package_Status_Type_Id,
    Package_Approval_SeqNo,
    Package_Current_Issue
    FROM openxml(@hDoc,'/ROOT/Package[@Package_Status="U"]')
    With Package
    OPEN xml_cursor
    FETCH NEXT FROM xml_cursor INTO
    @Package_Tbl_Id,
    @Package_Type_Id,
    @Binder_Id,
    @Package_Name,
    @Package_Status_Type_Id,
    @Package_Approval_SeqNo,
    @Package_Current_Issue
    WHILE @@fetch_status = 0
    BEGIN
    Update Package
    SET
    Package_Type_Id = @Package_Type_Id,
    Binder_Id = @Binder_Id,
    Package_Name = @Package_Name,
    Package_Status_Type_Id = @Package_Status_Type_Id,
    Package_Approval_SeqNo = @Package_Approval_SeqNo,
    Package_Current_Issue = @Package_Current_Issue
    WHERE Package_tbl_Id = @Package_tbl_Id
    FETCH NEXT FROM xml_cursor INTO
    @Package_Tbl_Id,
    @Package_Type_Id,
    @Binder_Id,
    @Package_Name,
    @Package_Status_Type_Id,
    @Package_Approval_SeqNo,
    @Package_Current_Issue
    End
    Close xml_cursor
    DEALLOCATE xml_cursor
    EXEC sp_xml_removedocument @hDoc
    exec spx_putattachment @XMLText
    End
    SET QUOTED_IDENTIFIER ON

  • Can not forward e-mails to more than one address at a time. Just installed the latest upgrade.

    Prior to the recent update I was able to add addresses to an e- mail message for forwarding by touching a letter on the keyboard. Contact list would pop up and I could select a name and I . could continue this 8 or 9 times if desired. Adding an address each time
    Currently the updated system will only allow the selection of one name. What happened??
    How do I get it back the way it was???

    I have the same problem, did you get a resaloution?

  • Can't get itunes library to playback more than one song at a time

    Has anyone had this problem? I am in the iTunes library and I can't get any songs to play unless they are selected. Even then, it will only play one song and then stop. I have "shuffle" activated and I have "repeat" activated. I have tried uninstalling and reinstalling the software. I have also made sure I have the latest updates of iTunes and Quicktime. Does anyone have any idea how I can solve this?
      Windows XP  

    To me, it looks like the songs are not checked.
    iTunes will only play checked songs continuously.
    Control-click on one of the checkboxes in front of the name to check/uncheck them all at once.
    Hope this helps.
    M

  • Can a trigger base on DML of more than one table?

    Can a single trigger for multiple tables DMLs? Or is there any other similar solution ?

    Hmm... you mentioned...
    IF data is inserted into Tab1 only then then i define it as add operation in the audit trail log table You also earlier mentioned...
    If data is added to Tab1 and Tab2 then it is logged as an insertion record in audit I am sorry but I am not able to understand how oracle can come to know when you are adding a record in Tab1 only and when in Tab1 and Tab2.
    Now, back to packaged approach that I mentioned earlier. It goes something like this (assuming you want to add only ONE record (or set of records) to audit table when records are added to Tab1 as well as Tab2 ),
    1) create a procedure (in a schema that has INSERT / UPDATE rights on Tab1 and Tab
    2). Grant EXECUTE rights to this procedure to the USER that runs the application
    3) In packaged procedure, write DML to populate audit table.
    this will ensure that only way to manipulate Tab1 (or Tab2) data is the packaged procedure and hence audit data will already be logged.

  • Updating more than one table in the same region

    Hi all,
    I have a header and detail relationship created between to entities. I created an association between them. I have 2 views and a view link based on the 2 entities.
    I have built an update page and I'm able to display the detail and header fields in the same region and my update to the detail fields are being processed correctly. However, my update to the header field is not working. I'm not getting any error messages, just that my header field remain unchange even after modifying the value and clicked the submit button on my page.
    Any suggestiong as to where I might have made a mistake?

    Ok, I got it to work by creating an association between the 2 entity objects and create a view based on the 2 entities. However, my real requirement is to only update the header level entity attribute after performing validations on the detail level attribute. My question now is this,
    How do call the set method associated with the header entity from the detail EOImpl?
    Please help!

Maybe you are looking for