XSQL and insertion in temporary table: seems not to work

Using XSQL 9.0.2.0.0 and 9i Database.
XSQL does not really inserts rows in temporary table.
Given a regular table and a temporary table:
create table toto (id number, name varchar2(30));
create global temporary table toto_tmp
on commit delete rows as
select * from toto where 1=2;
-- XSQL database connection is set to <autocommit>false</autocommit> in XSQLConfig.xml
-- XSQL insertion in regular toto table:
-- with commit-batch-size="0" xsql:insert-request does not issue commit:
<xsql:insert-request commit-batch-size="0" table="toto" transform="params.xsl"/>
<xsql:dml>
begin
-- PL/SQL processing
commit;
end;
</xsql:dml>
-- Data inserted in table TOTO are "seen" from the XSQL:DML block
But if inserting in temporary table TOTO_TMP using:
<xsql:insert-request commit-batch-size="0" table="toto_tmp" transform="params.xsl"/>
the XSQL:DML do not see the inserted rows !
This works as if commit-batch-size="0" had no effect when using temporary table!
Thank you for help.

Hi Subhash,
thanks for your help.
We are on AIX on our database sever and using Oracle 11.
Our app servers are using on Linux.
Best regards
Carlos

Similar Messages

  • Create and insert into temporary table

    Dear all,
    I want to create an temporary table and insert data from select statement and order data by field in that table, at the end i want to drop temporary table.
    CURSOR rob_twin
    IS
    SELECT t.tarj, s.b24, date, status, fii, acnt, mbr, pviv, type
    FROM
    p6.tarj t
    p6.stb24 s
    p6.cuet c
    WHERE .......
    --now I want to create table and insert above data (from cursor rob_twin)
    --after that I need to order data by t.tary from new table
    --finally I want to drop this table
    Thank you for your help.
    Regards,
    Robert

    The point is in Oracle you do not create the temporary table at run-time, use it, and drop it again.
    But you can create a GTT (Global Temporary Table) once and then it stays in the data dictionary, just like a normal table. The "temporary" part is simply that the data is temporary, can only be seen in this one session, and will go away either on commit or when the session ends.
    So first you create a global temporary table with the columns you wish. Using either ON COMMIT DELETE ROWS or ON COMMIT PRESERVE ROWS you decide whether data in this GTT should survive across transactions or not.
    Your logic could then be to populate this GTT with data from your remote database using INSERT INTO gtt_table SELECT ... FROM ...@dblink
    Then work with that data in the GTT as you would with any normal local table
    And finally either you simply commit your transaction and the data in the GTT goes away (if you did ON COMMIT DELETE ROWS), or you just DELETE gtt_table.
    You do not continually create and drop a GTT. The table definition is permanent - it is only the data that is temporary.
    Edit:
    PS: As Karthick stated above - for almost any usual purposes it is likely to be possible to solve the problem without having to use GTT's. Usually even with db_links it can be done with suitable SQL and joins without having to use a GTT. But if that turns out to be one of those rare occasions where that is hard - then the above is the way to go ;-)
    Edited by: Kim Berg Hansen on Sep 19, 2011 1:38 PM

  • Please recommend if we have options to read xml file and insert data into table without a temporary table.

    Please recommend if we have options to read xml file and insert data into table without a temporary table. 

    DECLARE @data XML;
    SET @data =N'<Root>
    <List RecordID="946236" />
    <List RecordID="946237" />
    <List RecordID="946238" />
    <List RecordID="946239" />
    <List RecordID="946240" />
    </Root>'
    INSERT INTO t (id) SELECT T.customer.value('@RecordID', 'INT') AS id
    FROM @data.nodes('Root/List')
     AS T(customer);
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to extract data from xml and insert into Oracle table

    Hi,
    I have a large xml file. which will have hundreds of the following transaction tags having column names and there values.
    There is a table one of the schema with coulums "actualCostRate","billRate"....etc.
    I need to extract the values of these columns and insert into the table
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuUK" chargeCode="LCOCD1" externalID="L-RESCODE_UK1-PROJ_UK_CNT_GBP-37289-8" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-12" transactionType="L" units="11" taskID="5017601" inputTypeCode="SALES" groupId="123" voucherNumber="ABCVDD" transactionClass="ABCD"/>
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuEU" chargeCode="LCOCD1" externalID="L-RESCODE_US1-PROJ_EU_STD2-37291-4" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-04" transactionType="L" units="4" taskID="5017601" inputTypeCode="SALES" groupId="124" voucherNumber="EEE222" transactionClass="DEFG"/>

    Re: Insert from XML to relational table
    http://www.google.ae/search?hl=ar&q=extract+data+from+xml+and+insert+into+Oracle+table+&btnG=%D8%A8%D8%AD%D8%AB+Google&meta=

  • Dequeue XML from Oracle AQ and insert data into table

    Using PL/SQL in a stored procedure, I need to dequeue a message from an Oracle AQ queue, parse the XML content and insert the data in an Oracle table. This is being done in Oracle 9.2.x.
    The payload for the message consists of 2 attributes, APPLICATION_DATA (VARCHAR2(32) and MESSAGE_BODY (CLOB). The MESSAGE_BODY is an XML document. A sample of the message is shown below:
    (M_NAME=MSG_LAW_WR_CRE_UPD, <?xml version = "1.0"?>
    <MSG_LAW_WR_CRE_UPD ID = "WMIS-4744" SRC_SYSTEM_CODE = "WMIS" SRC_SYSTEM_INSTANCE = "WMIS">
    <WR:CMP_LAW_WR_CRE_UPD xmlns:WR = "WR" >
    <WR:DATETIME>12/19/2005</WR:DATETIME>
    <WR:RUSCODE>100</WR:RUSCODE>
    <WR:WRNO>38213</WR:WRNO>
    </WR:CMP_LAW_WR_CRE_UPD>
    </MSG_LAW_WR_CRE_UPD>)
    This message needs to be dequeued from a queue named INBOUND, parsed and inserted into a table named INFO_TO_ACCT (CREATEDATE date, RUSCODE varchar2(10), WRNO number).
    Any help would be appreciated.

    SELECT EXTRACTVALUE(xmltype('<?xml version = "1.0"?>
    <MSG_LAW_WR_CRE_UPD ID = "WMIS-4744" SRC_SYSTEM_CODE = "WMIS" SRC_SYSTEM_INSTANCE = "WMIS">
    <CMP_LAW_WR_CRE_UPD>
    <DATETIME>12/19/2005</DATETIME>
    <RUSCODE>100</RUSCODE>
    <WRNO>38213</WRNO>
    </CMP_LAW_WR_CRE_UPD>
    </MSG_LAW_WR_CRE_UPD>'),'//DATETIME/text()') FROM DUAL;
    hope this helps.

  • I downloaded iMovie 11 butit seems not to work with IDVD6. Do I need to get the Newest IDVD? Which IDVD is the latest and where do i download it from?

    I downloaded iMovie11 but it seems not to work with iDVD6. Do I need to down load the latest IDVD?

    Where do I download it from?
    You need to use iDVD 09 or iDVD 11.  These are only available on disk.
    IDVD is a wonderful piece of software and well worth the low cost of $40.
    http://www.amazon.com/Apple-MC623Z-A-iLife-VERSION/dp/B003XKRZES/ref=sr_1_1?ie=U
    If you live in a state where Amazon collects sales tax you may prefer the link below.
    http://dealmac.com/lw/artclick.html?1,527850,1872219

  • How to read ecel sheet and insert into oracle table

    hi all,
    am working on forms builder 6i. and i want , from a trigger to read from a a sheet excel file the data and insert into a table that i had aleady created.
    i whrite a code that can till now open the excel file but i cant read the data to insert it into the table.
    am using TEXT_IO.IS_OPEN to open the file
    TEXT_IO.GET_LINE to take each line
    and subst(x as variable) to read the first line , but the subsrt return nohing
    any solution??

    There's already a topic made on this: how to copy data from excel to oracle forms

  • Can the new garageband open files from the previous garageband? in my case it seems not to work and I would like to know if it is possible at all...

    Can the new garageband open files from the previous garageband? in my case it seems not to work and I would like to know if it is possible at all...

    No.
    I find it extremely frustrating that Apple does not care for such an obvious bug affecting one of the basic funcionalities of AirPlay. Unless, of course, if there's something I don't know - but I've done some research and it seems that plenty of people have same issue and no solution is settled.

  • HT4437 Is it possible to zoom in photos when using airplay? It seems not to work at all. I can only zoom in if i use mirroring and even then i have to reconnect mirroring each time I chage an albumor even go from the photo to the album level.

    Is it possible to zoom in photos when using airplay? It seems not to work at all. I can only zoom in if i use mirroring and even then i have to reconnect mirroring each time I chage an albumor even go from the photo to the album level.

    No.
    I find it extremely frustrating that Apple does not care for such an obvious bug affecting one of the basic funcionalities of AirPlay. Unless, of course, if there's something I don't know - but I've done some research and it seems that plenty of people have same issue and no solution is settled.

  • Dropped my iphone and now home button doesnt work and will not charge.lower third of it seems not to work.i assume it's had it.what will i lose off it?

    dropped my iphone and now home button doesnt work and will not charge.lower third of it seems not to work.i assume it's had it.what will i lose off it?

    rbrook0113 wrote:
    I know any device could malfucntion but if it costs $40,000 to buy you could at least warn someone of the possible malfuctions. It makes the company look bad when a large amount of your devices act up and you "cant help them" if they dont pay extra. Im just saying.
    Sorry but that makes no sense at all.  How can they possible know what things will possible malfunction on your device?  Anything that they think is highly likely to malfunction they would have addressed in desiging and manufacturing the device in the first place, during development.  They've made and sold many millions of iPhones, and many of them have lasted years without any problems (I know, I've owned such iPhones personally).  So how could they possible know if yours was any more likely to develop any issues than any of those other trouble free ones?
    It's hardware - stuff sometimes breaks randomly.  No amout of money ever guarantees or even reduces the likelyhood of random product failures.
    Take it in to Apple and see about getting it fixed.

  • My select select statement seems not to work...

    Hello experts,
    I am having trouble with my select statement below. Here is what I need to do:
    1. loop at itab it_equz.
    2. get single asset number(ANLNR) and description(SHTXT) from table ITOB where EQUNR =_equz-equnr.
    3. get single asset number(ANLN1), asset subclass(ANLN2 and subnumber(ORD42 from table ANLA where its asset(anln1) equals to the asset fetched by ITOB. (no. 2 step) and DEAKT eq '00000000'
    4. Now, I would get all fields(select single) in table ANLC where ANLN1 equals to asset fetched by ANLA and ANLN2 equals to ANLN2 fetched by ANLA and AFABE eq '01'.
    5.endloop.
    Now, the problem is that I can't seem to get the right values in table ANLC. Now, my boss said that the values that I must get in ANLC must not be deactivated. So I did that by getting the required fields(no 3 step) in table ANLA where its DEAKT is equal to '00000000'.
    Now, my select statement for ANLC seems not to work properly since I have the proper where conditions. Anyway, below is my select statement that I did:
    LOOP AT it_equz.  "no 1 step
    SELECT SINGLE anlnr shtxt FROM itob   "no 2 step
              INTO (it_itob-anlnr, it_itob-shtxt)
              WHERE equnr = it_equz_dum1-hequi.
    MOVE it_itob-anlnr TO it_finaltab-asset_dum.
                MOVE it_itob-anlnr TO it_finaltab-asset.
                MOVE it_itob-shtxt TO it_finaltab-description.
    SELECT SINGLE bukrs anln1 anln2 ord42   "no 3 step
                FROM anla                                  
                INTO (it_anla-bukrs, it_anla-anln1, it_anla-anln2,
                      it_anla-ord42)
                WHERE anln1 = it_finaltab-asset
                  AND bukrs IN r_iwerk
                  AND deakt = '00000000'.
    MOVE it_anla-ord42 TO it_finaltab-asset_sub.
                  WRITE it_finaltab-asset TO v_asset.
                  CONCATENATE v_asset '-' it_anla-anln2
                  INTO it_finaltab-asset_subnum.
    SELECT SINGLE bukrs anln1 gjahr afabe knafa kansw  "no 4 step
                              answl kaafa nafal aafav aafag
                              nafap aafap nafav nafag FROM anlc
                          INTO (it_anlc-bukrs, it_anlc-anln1, it_anlc-gjahr,
                                it_anlc-afabe, it_anlc-knafa, it_anlc-kansw,
                               it_anlc-answl, it_anlc-kaafa, it_anlc-nafal,
                               it_anlc-aafav, it_anlc-aafag, it_anlc-nafap,
                               it_anlc-aafap, it_anlc-nafav, it_anlc-nafag)
                            WHERE anln1 EQ it_finaltab-asset
                              AND anln2 EQ it_anla-anln2
                              AND bukrs EQ it_anla-bukrs
                              AND afabe EQ '01'.
    it_finaltab-accq_cost = it_anlc-kansw + it_anlc-answl.
                IF p_posdep = 'X'.
                  it_finaltab-acc_dep = it_anlc-knafa +
                                        it_anlc-nafav +
                                        it_anlc-nafag +
                                        it_anlc-kaafa +
                                        it_anlc-aafav +
                                        it_anlc-aafag.
                ELSE.
                  it_finaltab-acc_dep = it_anlc-knafa +
                                        it_anlc-nafav +
                                        it_anlc-nafag +
                                        it_anlc-kaafa +
                                        it_anlc-aafav +
                                        it_anlc-aafag +
                                        it_anlc-nafap +
                                        it_anlc-aafap.
                ENDIF.
    APPEND it_finaltab. CLEAR it_finaltab.
              APPEND it_equz_dum2. CLEAR it_equz_dum2.
              CLEAR it_itob. CLEAR it_anla. CLEAR it_anlc.
    endloop.

    Hi,
      Please avoid selection in loop. it will lead to major performance issue.
    avoid move statements ; instead use assignment.
    1st :- select the entire data into internal table
    eg:-
    SELECT anlnr shtxt FROM itob
    INTO table it_itob
    for all entries in it_equz
    WHERE equnr = it_equz-hequi.
    1st select
    2nd select.
    2nd :- now loop on ur internal table to get the desired result.
    it is good to work with internal table rather than select statements in loop.
    Regards

  • TS1363 i have a new iphone 5 and although I had a little trouble downloading all my apps and music, i did this successfully but now when I connect to my itunes, itunes doesn't see it and also bluetooth doesn't seem to be working.Can  Anyone help

    I have a new iphone 5 and although I had a little trouble downloading all my apps and music, I did this successfully but now when I connect to my itunes, itunes doesn't see it and also bluetooth doesn't seem to be working.Can  Anyone help?

    Hey leafxxx,
    Thanks for the question, and welcome to Apple Support Communities.
    The following resource provides troubleshooting steps if your iPhone is not displayed in iTunes when connected:
    Apple - Support - iPhone - iTunes Troubleshooting Assistant
    http://www.apple.com/support/iphone/assistant/itunes/
    For more detailed instructions, see this article:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Enjoy your new iPhone 5!
    Matt M.

  • The function AirDrop on my Mac BookAir seems not to work, not detect my iPad. How to fix this?

    The function AirDrop on my Mac BookAir seems not to work, not detect my iPad. How to fix this?

    AirDrop on iOS devices (iPads, iPhones, iPod touches) can only AirDrop things with other iOS devices. AirDrop on Mac can only AirDrop things with other Macs.
    I hope this solves your question.
    Austin

  • I recently bought a iPhone and iMessage just doesn't seem to be working. It won't let me send messages to my friends with emails. Help? Haha

    I Recentl. Bought an iPhone and iMessage just doesn't seem to be working. It won't let me send a message to my friends with emails? Or iPods I don't know

    Read these:
    Using iMessage
    http://support.apple.com/kb/HT3529
    Troubleshooting iMessage activation:
    http://support.apple.com/kb/TS4268

  • What is wrong? The "show my windows and tabs from last time" has not been working these past two or three days. It was fine before. Ive changed nothing except the last update from you. Thank you.

    What is wrong? The "show my windows and tabs from last time" has not been working these past two or three days. It was fine before. Ive changed nothing except the last update from you. Thank you.

    Make sure that you do not use "Clear Recent History" to clear the "Browsing History" when Firefox is closed because that prevails and prevents Firefox from opening tabs from the previous session.
    * https://support.mozilla.com/kb/Clear+Recent+History
    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/Session_Restore
    * http://kb.mozillazine.org/sessionstore.js
    If you use cleanup software like CCleaner then make sure that Session is unchecked in the settings for the Firefox application.

Maybe you are looking for

  • Problem In miro

    Dear All, i am facing a problem time of miro. I was purchase a material  of 800 PC from my vendor.  when i was make Purchase order for this material  i took rate  1000 rs per PC, but after making GRN Somebody else change material rate with 500rs per

  • Qosmio G40: How to create master disk for Windows Vista?

    Hello all, I am looking forward to install Windows XP additional to Windows Vista on my QOSMIO G40 (dual boot). Before starting this journey I need to secure a little bit the way-back by creating a *master disk* I can boot from to load Vista. I am no

  • Adobe photoshop elements 11 organizer, NOT RESPONDING

    I installed 11 yesterday and have converted existing catalogs, imported new media, including some movie clips. While in organizer I watched some of the short movies ( 2 minutes or less). I opened, watched and closed 2 or three movies and then Organiz

  • What Version of Flash should I use for XP Version 2002???

    I have an older PC with base XP on it and I am having trouble installing/running flash. Can anyone tell me what version of Flash that will support my old PC running Windows XP Professional Version 2002??? Everything else is working fine except for Fl

  • Extending Domain with Oracle Access Manager 10g

    Oracle® Fusion Middleware Enterprise Deployment Guide for Oracle Identity Management 11g Release 1 (11.1.1) Part Number E12035-05 http://download.oracle.com/docs/cd/E14571_01/core.1111/e12035/toc.htm Chapter 10 - Extending the Domain with Oracle Acce