Can oracle temporary tables be used with distributed transactions?

Hello,
Does anybody know if temporary tables are supported with distributed transactions?
We use a temporary table to store query results and see no problems when the JDBC driver (Type 2 or Type 4) is used with local transactions. The temporary tables are set for transaction-level data persistence (delete rows on commit).
When we switch to JDBC/XA driver we occasionally get ORA-14450 error (java.sql.SQLException: ORA-14450: attempt to access a transactional temp table already in use).
Many thanks...

I have been able to use temporary tables on remote databases, so I don't think that it is forbidden. Of course, I'm not using JDBC so that might be a problem.
The other thing that occurs to me is that you are doing something other than DML with the table e.g. trying to drop it. If that is the case you should re-read the documentation and remind yourself of the purpose of temporary tables.
Cheers, APC

Similar Messages

  • TopLink, use of Oracle Temporary tables

    A project using TopLink has the following questions. Could someone help answer them?
    Does TopLink support the use of Oracle Temporary tables?
    Is there any recommendation regarding the two possible ways of setting them up, see below:
    ON COMMIT Setting Description DELETE ROWS This creates a temporary table that is transaction specific. A session becomes bound to the temporary table with a transactions first insert into the table. The binding goes away at the end of the transaction. The database truncates the table (delete all rows) after each commit.
    PRESERVE ROWS This creates a temporary table that is session specific. A session gets bound to the temporary table with the first insert into the table in the session. This binding goes away at the end of the session or by issuing a TRUNCATE of the table in the session. The database truncates the table when you terminate the session.
    We appreciate your assistance.
    Haiwei

    Haiwei,
    TopLink has no explicit support for temporary tables but it should be possible. It is tough to answer your question since it really depends upon connection and transaction management for either case. What is your planned configuration TopLink with respect to external versus internal connection pooling as well as the JTA TX management.
    I believe you are deploying your applications within WebSphere but would just like to confirm that you are using WAS data sources and transaction management.
    Doug

  • Can Oracle be forced to use the spatial index for sdo_filter in combination with an or clause? Difference between Enterprise and SE?

    We’re seeing the following issue: sql - Can Oracle be forced to use the spatial index for sdo_filter in combination with an or clause? - Stack Overflow (posted by a colleague of mine) and are curious to know if this behaviour is due to a difference between standard and enterprise, or could we doing something else wrong in our DB config.?
    We have also reproduced the issue on the following stacks:
    Oracle SE One 11.2.0.3 (with Spatial enabled)
    Redhat Linux 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
    11.2.0.3.0 Standard Edition and 11.2.0.4.0 Standard Edition (both with Spatial enabled)
    Microsoft Windows Server 2003R2 Standard x64 Edition
    However, the SQL works fine if we try it on Oracle 11.2.0.3.0 *Enterprise* Edition.
    Any help or advice would be much appreciated.
    Kindest Regards,
    Kevin

    In my experience sdo_filter ALWAYS uses the spatial index, so that's not the problem. Since you did not provide the explain plans, we can't say for sure but I think yhu is right: Standard Edition can't use the bitmap operations, and thus it'll take longer to combine the results of the two queries (because the optimizer will surely split this OR up in two parts, then combine them).
    BTW: when asking questions about queries here, it would be nice if you posted the queries here as well, so that we do not have to check another website in order to see what you are doing. Plus it will probably get you more answers, because not everyone can be bothered to click on that link. It would also have been nice if you had posted your own answer on the other post here as well, because my recommendation would have been to use union all - but since you already found that out for yourself my recommendation would have been a little late.

  • Oracle temporary tables

    Hi ,
    we have a application for transfering data approx 1 million records from one schema to another. the data is first inserted into a table temporarily and after all the data is transfered the data is manually deleted from this table.
    we are planning to replace this table with Oracle Temporary table. Can you please let us know if this would increase the performance and why???
    Thanks & Regards
    Saroj

    In theory it should, but you won't know whether the difference is going to be noticeable until you try.
    Oracle has to do much less work with global temporary tables. It knows no other sessions will be using the data so it does not need to bother with rollback segments or locks. It also does not bother with redo because there will not be a need to recover.

  • Temporary Table Not Creating With Rows

    I'm running Oracle 9i on Windows XP, and I'm trying to create a temporary table to use in a larger query. The problem is that when I create it using ON COMMIT DELETE ROWS, after creation it has no rows. If I use ON COMMIT PRESERVE ROWS, then I can't delete it unless I log out and come back.
    Here's the query
    CREATE GLOBAL TEMPORARY TABLE tempaltid
    ON COMMIT PRESERVE ROWS as (select distributionid
    from distributions d
    where D.distributionid not in
    (select distributionid
    from distributionalternatives
    where ( distributionalternatives.alternativeid not in (11018,11019,11020,11021,11022,11023,11024,
    11025,11026,11475,11476,11477,11478,11479,
    11480,11481,11482,11483,11484,11485,11486,
    11487,11488,11489,11490,11491,11492,11493,
    11494,11495)))
    and D.distributiontypeid in
    (239,209)
    and D.distributionexpdt is null);
    I'm not committing after creation, so I don't see why the table would just be empty.

    Yes you are, and before too
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/sqlplsql.htm#sthref3520
    You don't use global temporary tables like that, you create them once and fill and empty them repeatedly.

  • Can Business Object Universe be used with other BI Tool

    Post Author: help_eachother
    CA Forum: Semantic Layer and Data Connectivity
    Hi,
    Can Business Objects Universe be used with other BI tool ?
    Thanks

    Post Author: amr_foci
    CA Forum: Semantic Layer and Data Connectivity
    like wat tools...
    i heared in an oracle session that their business intelligence system would be able to connect to other business intelligence system ex, business objects
    but i dont know how it works,, or even anything about oracle BI
    good luck

  • Can oracle inventory forecasting be used without order management??

    Can someone please tell me how oracle forecasts are used.
    Like i have configured and tested it but i want to know how it calculates forecasting and whether it can be used without order management module or not
    when i define item comsumption entries and gvie a quantity in current, the ending date and then see bucketed, it shows same forecasted quantity for all periods that i entered in item comsumption entries
    I dont understand this
    And why is forecasting necessary for reorder point planning
    Some please explain
    Thanks
    Emm

    Query: "can oracle inventory forecasting be used without order management?"
    Yes, in that case it can accept manually entered forecasts or forecast generated from Inventory demand history (say Miscellaneous issue, Inter-org Transfer, Issue to WIP) excluding Sales Order issues (as OM is not included).
    For remaining questions you can refer to my earlier post under the following thread. Please refer to the bottom section (thread was started with a different subject)
    serial attribute and org attribute problems with item master
    If your questions are answered you can mark the thread as appropriate.
    Thanks
    - Supro

  • I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID

    I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID?
    The apple ID was his personal account and can no longer gain access. Im sure I can get purchase recipts from the accounting department if needed. I tried to put the Ipad in restore mode and used itunes to "recover" the ipad but it still wont let me in because he registered the device with the "lost iphone" feature or whatever that is.

    Activation Lock in iOS 7  >  http://support.apple.com/kb/HT5818
    The Apple ID and Password that was Originally used to Activate the iDevice is required
    If you do not have that information you will not be able to use the Device.

  • I have a smart rg router can a airport capsule be used with it

    can a airport utility be used with a smarter router

    The "smarter" router would need to have an available Ethernet port, and the Time Capsule would need to connect to the router that way permanently.
    If you can provide a few more details about what you are trying to accomplish, we can probably provide a better answer for you.

  • HT204387 Can a wireless mouse be used with the new IPAD?

    Can a wireless mouse be uses with the new iPad?

    While it is true that mice or other pointing device like track pads are not supported on the iPad since there is no real pointer, I use a stylus pen. I know it would probably tip over the iPad if you are standing it up, but it's the closest I've seen. I use the Wacom Bamboo stylus and a Zagg keyboard and the case for the iPad and keyboard. I use the stylus a lot on the Paper app to take notes in meetings and such. Not really a solution but if you are trying to move an insertion point in a document, it does work.

  • Can a C2890A printer be used with a laptop?

    Can a C2890A printer be used with a HP 15-1004dx laptop?

    Hi,
    It's time to buy a new printer.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Can a docking speaker be used with IPod nano 7th generation

    Can a docking speaker be used with IPod nano 7th generation

    It should work if you can plug in the iPod

  • HT1178 Can the time capsule be used with a pc running Windows Vista , 7 or 8 as a backup drive

    Can the time capsule be used with a pc running Windows Vista , 7 or 8 as a backup drive. If so what software do I need to buy?

    Can the time capsule be used with a pc running Windows Vista , 7 or 8 as a backup drive.
    Yes, on XP, Vista and 7. Have not tried 8.
    If so what software do I need to buy?
    Genie Timeline Pro does a very nice job...and it is similar to Apple's Time Machine.  It's not cheap though.  Check with the Genie folks for more info and compatibility with Windows 8.
    Genie Timeline Pro | Overview | Time Machine Backup Software for ...
    Other users may have some other suggestions.

  • Can a Thunderbolt display be used with an iPad?

    Can a Thunderbolt display be used with just an iPad? 
    Hal

    Not that I know of since the iPad does not have a Thunderbolt port and I know of no adapters to go from the iPad digital adapter or component cables to the new display.

  • Can the camera connector be used with nano 1st gen

    As subject states, can the camera connector be used with the Nano??
    Many thanks!!

    The camera connector cannot be used with the iPod
    nano; it is only compatible with the iPod photo, iPod
    with color display, and Fifth Generation iPods out of
    those released so far.
    (16782)
    Ok thanks, but the Nano does have a Does a colour screen and can also store photos.
    Not that i dissagree with what your saying, its just strange!

Maybe you are looking for

  • Events in iPhoto show a purple tint for half a second when scrolling

    After installing Mountain Lion my 27" iMac (May 2011) started showing events in iPhoto wahsed in a purple or reddish tint for less than half a second, when I scroll down or up quickly. Then they turn to their normal colors. Every time I scroll up or

  • 'CRM_ORDER_MAINTAIN'  error messages

    HI guys, I am using BAPI 'CRM_ORDER_MAINTAIN' to create FS Quotation, but i want to get error message before SAVE, Bapi only return exceptions table and CV_LOG_HANDLE. How can I get details of errors generated in the process of creation? Thanks ind a

  • I forgot my answers

    Hello, I forgot the answer to the question, do not say go as here,,,,, If you forgot the answers to your Apple ID security questions becuse for I have done so more than once, I want to restore a question in the mail, becuse e-mail does not send me a

  • Create new sales doc. type

    Hi all, may I know, do a customization request is generated when a new sales document type is created in VOV8. If so, when it is generated.

  • [systemd] Requiring authentication for shutdown/reboot

    I have completed most of my migration to systemd but am still running init scripts. I am having an issue where I am asked for authentication when I try to shutdown or reboot the computer. This user is in the groups 'wheel' and 'power'. It appears tha