ORA-02047: cannot join the distributed transaction in progress

Hi All,
My requirement is to do COMMIT Transactions in BULK like 100 rows. I am doing update in Oracle and SQL Server both. Following statement update the SQL Server side:
v_sqlstr :=
'update JDETAIL set interfacedate = getdate() where company ='
|| v_company
|| ' and Recordnumber= '
|| TO_NUMBER (v_recordNumber)
|| ' COMMIT TRANSACTION';
num_rows :=
DBMS_HS_PASSTHROUGH.execute_immediate@ex_test (v_sqlstr);
After this I am calling Oracle Update Procedure . In Oracle UPDATE Procedure when I write AUTONOMOUS TRANSACTIONS AND Commit then it works fine BUT when I don't COMMIT which I don't want because I want to COMMIT in BATCHES then following error is thrown
ORA-02047: cannot join the distributed transaction in progress
Thanks

you can't put the commit transaction into a pasthrough statement.
Oracle Gateway starts the transaction, so you need to write the code in a way that allows the gateway to perform the commit. When doing a commit in a passhrough statement the gateway has no control over the committed data. Thus you get the error unless you start an autonomous transaction.
Why do you need to call the update in a pasthrough statement? Why not in a PL/SQl code block with a counter that commits after 100 rows?

Similar Messages

  • ORA-00210: cannot open the specified controlfile

    Hi,
    We are trying to run a package remotly and while executing the package . we are getting ORA-00210: cannot open the specified controlfile. I did crosscheck the controlfile through v$controlfile parameter and the ctlfile shows there. I did also go thorugh with metalink, it says you need to chech weather some process has locked it, or the max number of open file limit of OS. I would appriciate, if you can describe both of the above options.
    OS Solaris
    DB 9.2.0.8.0
    hare krishna
    Alok

    Thanks Damorgan, I've verified it by checking the alert.log file and I also switch logfiles, it's working absolutly file. I am going to paste the comple error stack.
    Connecting to the database CHRY_STAGE_STG.
    ORA-00210: cannot open the specified controlfile
    : controlfile: '/u700/oradata/pubint/control01.ctl'
    ORA-27041: unable to open file
    SVR4 Error: 24: Too many open files
    Additional information: 3
    ORA-06512: at "CHRY_STAGE_STG.DIFF_UTILS", line 1080
    ORA-06512: at "CHRY_STAGE_STG.PKG_GROUP_IMG_CROSS_REFERENCE", line 199
    ORA-06512: at line 6
    Process exited.
    Disconnecting from the database CHRY_STAGE_STG.
    and when I verfied the diff_utils at line 1080 , I found the following.
    EXECUTE IMMEDIATE 'INSERT /*+ APPEND */ INTO ' || p_HistoryTable ||
    '( SELECT ' || p_column || ' FROM ' || p_MasterTable || ' A INNER JOIN ' ||
    p_CurrentTable || ' B ON A.' || p_Keys || ' = B.' || p_Keys || ')';
    hare krishna
    Alok

  • ORA-02048: attempt to begin distributed transaction without logging on

    Hello,
    I've got the error:
    ORA-02048: attempt to begin distributed transaction without logging on
    When calling OCITransStart
    (The XID of the transaction to start is:
    formatID = 11101, gtrid = 123, bqual = 1
    I've already run several queries before trying to call
    OCITransStart and the queries are successfull.
    Could anyone help please ?
    I'm running Oracle 10g on Linux.
    Thanks a lot
    Laurent Marzullo

    I believe this is the error you see if the client database name is not set prior to calling OCISessionBegin. To set the client database name, use OCIAttrSet on the server handle with the OCI_ATTR_EXTERNAL_NAME and OCI_ATTR_INTERNAL_NAME attributes.
    These attributes are discussed in chapter 8 of the OCI Programmer's Guide in the section "OCI Support for Transactions".

  • My iPhone 4S has stopped receiving iMessages, cannot send/load any pictures over whatsapp, cannot join the wifi in my house anymore. What has happened to my iPhone i haven't made any changes?

    My iPhone 4S has stopped receiving/sending iMessages, cannot send/load any pictures over whatsapp and cannot join the wifi in my house anymore.
    Essentially all the things I use my phone for have now stopped working. I constantly have 3G connected (even though i dont want to use it, i want to connect to the wifi in my house) but still when I try to download/ send a picture over whatsapp it comes up with an error message saying the server is unverified, or something equally ridiculous.
    I deleted the app so i could reinstall it (as if that would help), but the app store is started saying "unable to connect", despite 3G, so that bright idea died out pretty sharpish.
    Whenever i try to turn on iMessage, it asks for my Apple ID password, which I know I've typed in correctly because I reset the **** thing about 4 times due to it apparently being "incorrect". Even so, it repeatedly asks for the password over and over as soon as I've entered it, saying it was "unable to connect" before a final "incorrect password" message pops up just to add an extra smack of annoyance.
    I haven't changed a single setting on my iPhone whatsoever. It just suddenly started spiralling into what is now £28/month-worth of pure frustration.
    I don't even have any music or photos on it as I had to free up 3.5GB of space on the **** thing to allow it to update, naively thinking that would solve the problem, but alas it did not.
    I have seen a few questions posted like this one, usually just one of the problems I have, but I seem to have rounded up the whole bunch (lucky me). None of the previously posted questions have received any replies.
    Can some please help me! Honestly, if i see another "unable to..." or "unverified source" pop up again I'll probably smash the thing against the side of my house.
    Cheers.

    On your iPad, go to [Settings > General > Reset > Reset Network Settings] Once that is done, re-connect your iPad to your wifi network.

  • Problem: [Microsoft][ODBC SQL Server Driver][SQL Server]The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.

    Hi Gurus,
    I have this problem in my MS SQL Server 2012 that is running in SQL Server 2008 R2 Enterprise 64 bit.. Not sure why... Here is the full details of the error:
    Microsoft OLE DB Provider for ODBC Drivers 80040E14
    [Microsoft][ODBC SQL Server Driver][SQL Server]The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.
    /Libraries/DBA/DBA.asa, line 717
    Line 717 is this:
    rs.open destTableName,,,,adCmdTable
    Full details of the code:
        'Field object used to iterate through each field of the rs
        dim rs, fld
        'call dbInitRS(rs)
        set rs = server.createobject("adodb.recordset")
        'On Error Resume Next
        'Open rs
        set rs.activeConnection = myConnection
        rs.cursorType = adOpenKeyset
        rs.lockType = adLockOptimistic
        'rs.open destTableName
        rs.open destTableName,,,,adCmdTable
        'if err.number <> 0 then
        '    goto HandleError
        'end if
        rs.addNew
    Any ideas how to solve this problem?
    Thanks

    Still does not work. I have allow MSDSTC in my firewall list.
    Hi dudskie,
    Have you try to use DTCTester or DTCPing to verify MSDTC functionality over the network? Please refer to the following article:
    Troubleshooting Problems with MSDTC:
    http://msdn.microsoft.com/en-us/library/aa561924.aspx
    Use the DTCTester utility to verify transaction support between two computers if SQL Server is installed on one of the computers. The DTCTester utility uses ODBC to verify transaction support against a SQL Server database. For more information about
    DTCTester see How to Use DTCTester Tool.
    Use DTCPing to verify transaction support between two computers if SQL Server is not installed on either computer. The DTCPing tool must be run on both the client and server computer and is a good alternative to the DTCTester utility when SQL Server
    is not installed on either computer. For more information about DTCPing, see
    How to troubleshoot MS DTC firewall issues.
    If you have any feedback on our support, please click
    here.
    Hope this helps.
    Regards,
    Elvis Long
    TechNet Community Support

  • ORA-00210: cannot open the specified control file

    Hi all,
    Initially we faced the following error:
    ORA-00214: control file '+DBDG/dws/controlfile/current.256.638648487' version
    75647 inconsistent with file '+FLASHDG/dws/controlfile/current.256.638648489'
    version 75645
    Then the following action:
    RMAN> restore controlfile from autobackup;
    Starting restore at 05-DEC-07
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=997 devtype=DISK
    recovery area destination: +flashdg
    database name (or database unique name) used for search: DWS
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: +flashdg/DWS/AUTOBACKUP/2007_12_04/s_640476511.697.640476513
    channel ORA_DISK_1: control file restore from autobackup complete
    output filename=+DBDG/dws/controlfile/current.256.638648487
    output filename=+FLASHDG/dws/controlfile/current.256.638648489
    Finished restore at 05-DEC-07
    RMAN> recover database;
    Starting recover at 05-DEC-07
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 12/05/2007 15:16:10
    ORA-00210: cannot open the specified control file
    RMAN>
    Any idea why this is happening?
    Regards,
    Soma Sekhar Karri

    Something which you should have looked up prior to posting
    00210, 00000, "cannot open the specified controlfile"
    // *Cause:  Cannot open the controlfile.
    // *Action: Check to make sure the controlfile exists and is not locked by
    // some other program.
    Sybrand Bakker
    Senior Oracle DBA

  • ORA-20000: cannot find the dimension

    Hi,
    While trying to install Oracle 11g R2 Single Instance Database on Solaris 10 (sparc) got following error:
    [Thread-10] [ 2012-07-14 20:57:33.395 EEST ] [CloneDBCreationStep.executeImpl:650] ** INSTALL SAMPLE SCHEMA'S **
    [Thread-10] [ 2012-07-14 20:57:33.397 EEST ] [CloneDBCreationStep.executeImpl:691] Transportable datafile:=/opt/oracle/oradata/egldb/example01.dbf
    [Thread-10] [ 2012-07-14 20:57:33.398 EEST ] [CloneDBCreationStep.executeImpl:698] Script to be Excecuted ::::=/opt/oracle/product/11.2.0/db_1/demo/schema/mkplug.sql
    [Thread-14] [ 2012-07-14 20:59:40.903 EEST ] [BasicStep.handleNonIgnorableError:430] oracle.sysman.assistants.util.UIMessageHandler@9c4ff2c:messageHandler
    [Thread-14] [ 2012-07-14 20:59:40.905 EEST ] [BasicStep.handleNonIgnorableError:431] ORA-20000: cannot find the dimension
    ORA-06512: at "SYS.DBMS_DIMENSION", line 404
    ORA-06512: at "SYS.DBMS_DIMENSION", line 426
    ORA-06512: at "SYS.DBMS_SUMMARY", line 54
    ORA-06512: at line 1
    :msg
    Do you have any ideas about how to fix it?
    Thanks, Andriy.
    Edited by: 946442 on 14/7/2012 11:08

    Hi,
    More errors appeared after i ignored previous errors.
    Are they because of previous "ORA-20000: cannot find the dimension" error?
    [Thread-14] [ 2012-07-14 21:26:11.986 EEST ] [BasicStep.handleNonIgnorableError:430] oracle.sysman.assistants.util.UIMessageHandler@9c4ff2c:messageHandler
    [Thread-14] [ 2012-07-14 21:26:11.988 EEST ] [BasicStep.handleNonIgnorableError:431] ORA-24010: QUEUE IX.AQ$_ORDERS_QUEUETABLE_E does not exist
    ORA-06512: at "SYS.DBMS_AQADM_SYSCALLS", line 309
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 11237
    ORA-06512: at line 1
    :msg
    [Thread-14] [ 2012-07-14 21:26:17.602 EEST ] [BasicStep.handleNonIgnorableError:430] oracle.sysman.assistants.util.UIMessageHandler@9c4ff2c:messageHandler
    [Thread-14] [ 2012-07-14 21:26:17.604 EEST ] [BasicStep.handleNonIgnorableError:431] ORA-24010: QUEUE IX.AQ$_STREAMS_QUEUE_TABLE_E does not exist
    ORA-06512: at "SYS.DBMS_AQADM_SYSCALLS", line 309
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 11237
    ORA-06512: at line 1
    :msg
    [Thread-14] [ 2012-07-14 21:26:18.442 EEST ] [BasicStep.handleNonIgnorableError:430] oracle.sysman.assistants.util.UIMessageHandler@9c4ff2c:messageHandler
    [Thread-14] [ 2012-07-14 21:26:18.443 EEST ] [BasicStep.handleNonIgnorableError:431] ORA-24010: QUEUE IX.ORDERS_QUEUE does not exist
    ORA-06512: at "SYS.DBMS_AQADM_SYSCALLS", line 309
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 11237
    ORA-06512: at line 1
    :msg
    [Thread-14] [ 2012-07-14 21:26:20.673 EEST ] [BasicStep.handleNonIgnorableError:430] oracle.sysman.assistants.util.UIMessageHandler@9c4ff2c:messageHandler
    [Thread-14] [ 2012-07-14 21:26:20.675 EEST ] [BasicStep.handleNonIgnorableError:431] ORA-24010: QUEUE IX.STREAMS_QUEUE does not exist
    ORA-06512: at "SYS.DBMS_AQADM_SYSCALLS", line 309
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 11237
    ORA-06512: at line 1
    :msg
    Thanks, Andriy.

  • Windows could not start the distributed transaction coordinator service on local computer

    Dear All,
    I'm having an issue starting the DTC service in windows 7 OS. I always got the error message below when im trying to start it.
    "Windows could not start the distributed transaction coordinator service on local computer"
    Thanks,
    Melvin

    Hi Melvin,
    Please try the following methods to solve this issue:
    Method 1: Re-create the MS DTC log, and then restart the service.
    Click
    Start, type cmd in the search box, and then press
    Enter.
    Type the command
    msdtc -resetlog at the command prompt, and then press
    Enter.
    Warning: The msdtc -resetlog command can cause data corruption if it is used incorrectly. Make sure that you do not have any pending transactions when you run this
    command.
    Type the command net start msdtc, and then press
    Enter.
    Method 2: Set the logon account permissions for the MS DTC service
    If Method 1 does not resolve the problem, set the logon account for the MS DTC service to have read and write permissions for the Msdtc.log file. Please follow the steps below:
    Click
    Start, type cmd in the search box, and then press
    Enter.
    Type the command
    control admintools at the command prompt, and then press
    Enter.
    Double-click
    Services.
    In the Services pane, locate
    Distributed Transaction Coordinator.
    In the
    Log On As column, note the account name.  Note: The default logon account for the MS DTC service is the NETWORK SERVICE account.
    Start Windows Explorer, and
    then open the %windir%\System32\Msdtc folder.
    Right-click the
    Msdtc.log file, and then click Properties.
    Click the
    Security tab.
    Click the logon account name that you noted
    in step 5. For example, click the NETWORK SERVICE account name.
    In the
    Permissions pane, click to select the Allow check box for the following permissions: ◦Read & Execute  
    ◦Read    ◦Write
    Click
    OK.
    Click
    Yes to accept the security warning.
    In the
    Services pane, right-click Distributed Transaction Coordinator, and then click
    Start.
    Method 3: Assign permissions to the NETWORK service to traverse the directory tree
    Determine whether the NETWORK service has permissions to traverse through the folder. To do this, follow these steps.
    Note: By default, the "Everyone" group has these permissions. For more information, go to the following Microsoft TechNet website:
    Bypass traverse checking
    Click
    Start, type secpol.msc in the search box, and then press
    Enter.     
    Browse through the following computer configuration: 
            \Windows Settings\Security Settings\Local Policies\User Rights Assignment 
    Check for "Bypass traverse checking," and then add the "Everyone" group. 
    Update the Group Policy settings on the computer. To do this, click
    Start, type gpupdate in the search box, and then press
    Enter.
    In the
    Services pane, right-click Distributed Transaction Coordinator, and then click
    Start.
    Regards,
    Lany Zhang

  • LAP1242 cannot join the WLC2500

    Hi,
    I have some LAP1242 which by mistake were bought for Mesh. I am trying to convert them to LWAPP so what I did first was to convert them to Stand Alone then to LWAPP but I cannot get the AP to join the WLC and sends several error logs.
    I attached some logs taken from AP and WLC so that you can figure out what's going on.
    I wonder if I have to remove anything from flash either on SA or LWAPP mode (I know that in some cases you have to delete privete-config in order to avoid the AP taken previous configurations). By the way I think I had never seen this c1240-k9w8-mx.124-25e.JA2 on an AP IOS before, I wonder if it has to do with the mesh thing.
    Thank you!

    Hi,
    I have done that process thousands of times but this time the APs came with an IOS for mesh and once it is back in LWAPP it still shows the mesh stuff in the flash.
    Flash Stand Alone:
    Directory of flash:/
       17  drwx         320  Jan 01 1970 00:05:46 +00:00  c1240-k9w7-mx.123-8.JEA3
        7  -rwx          62  Nov 14 2012 14:35:46 +00:00  mesh_cfg.txt
        8  -rwx        6168  Nov 14 2012 14:45:49 +00:00  private-multiple-fs
        9  -rwx       97561  Nov 14 2012 15:15:44 +00:00  event.log
       10  drwx         256  Jan 17 2013 17:52:05 +00:00  c1240-k9w8-mx.124-25e.JA2
       15  -rwx          36  Nov 14 2012 14:35:46 +00:00  mesh_port_cfg.txt
       16  drwx           0  Nov 14 2012 14:35:49 +00:00  configs
        4  -rwx         266  Jan 01 1970 00:05:52 +00:00  env_vars
    Flash LWAPP:
    Directory of flash:/
        2  -rwx         318   Mar 1 2002 00:00:06 +00:00  env_vars
        3  -rwx        6168  Nov 14 2012 14:36:04 +00:00  private-multiple-fs
        4  drwx         128  Jan 16 2013 15:11:30 +00:00  c1240-rcvk9w8-mx
        7  -rwx          62  Nov 14 2012 14:35:46 +00:00  mesh_cfg.txt
        8  -rwx           5  Jan 16 2013 15:11:56 +00:00  private-config
        9  -rwx       97561  Nov 14 2012 15:15:44 +00:00  event.log
       19  drwx         256  Jan 17 2013 21:12:38 +00:00  c1240-k9w8-mx.124-25e.JA2
       15  -rwx          36  Nov 14 2012 14:35:46 +00:00  mesh_port_cfg.txt
       16  drwx           0  Nov 14 2012 14:35:49 +00:00  configs
       10  -rwx           0  Nov 14 2012 14:36:05 +00:00  config.txt
    Logs from AP
    Jan 17 18:28:15.377: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to down
    *Jan 17 18:28:15.382: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to reset
    *Jan 17 18:28:16.407: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to up
    *Jan 17 18:28:17.407: %LINEPROTO-5-UPDOWN: Line protocol on Interface Dot11Radio0, changed state to up
    *Jan 17 18:28:24.810: %CAPWAP-3-ERRORLOG: Go join a capwap controller
    *Jan 17 18:28:26.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_ip: 192.168.1.2 peer_port: 5246
    *Jan 17 18:28:26.002: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to down
    *Jan 17 18:28:26.007: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to reset
    *Jan 17 18:28:27.187: %LINEPROTO-5-UPDOWN: Line protocol on Interface Dot11Radio0, changed state to down
    *Jan 17 18:28:27.322: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to up
    *Jan 17 18:28:27.400: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully peer_ip: 192.168.1.2 peer_port: 5246
    *Jan 17 18:28:27.401: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.2
    *Jan 17 18:28:27.403: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to down
    *Jan 17 18:28:27.404: %DTLS-5-ALERT: Received WARNING : Close notify alert from 192.168.1.2
    *Jan 17 18:28:27.404: %DTLS-5-SEND_ALERT: Send FATAL : Close notify Alert to 192.168.1.2:5246
    *Jan 17 18:28:27.405: %CAPWAP-3-ERRORLOG: Go join a capwap controller
    *Jan 17 18:28:26.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_ip: 192.168.1.2 peer_port: 5246
    *Jan 17 18:28:27.330: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to up
    *Jan 17 18:28:27.335: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to down
    *Jan 17 18:28:27.340: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to reset
    *Jan 17 18:28:27.409: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully peer_ip: 192.168.1.2 peer_port: 5246
    *Jan 17 18:28:27.410: %CAPWAP-5-SENDJOIN: sending Join Request to 192.168.1.2
    *Jan 17 18:28:27.413: %DTLS-5-ALERT: Received WARNING : Close notify alert from 192.168.1.2
    *Jan 17 18:28:27.413: %DTLS-5-SEND_ALERT: Send FATAL : Close notify Alert to 192.168.1.2:5246
    Logs from WLC
    *spamApTask0: Jan 17 15:18:25.695: %LWAPP-3-RADIUS_ERR: spam_radius.c:137 The system could not send join reply, AP authorization failed; AP:6c:20:56:e8:ea:f4
    *spamApTask0: Jan 17 15:18:24.273: %LWAPP-3-RADIUS_ERR: spam_radius.c:137 The system could not send join reply, AP authorization failed; AP:6c:20:56:e8:ea:f4
    *spamApTask0: Jan 17 15:18:12.435: %LWAPP-3-RADIUS_ERR: spam_radius.c:137 The system could not send join reply, AP authorization failed; AP:6c:20:56:e8:ea:f4
    *spamApTask0: Jan 17 15:18:11.023: %LWAPP-3-RADIUS_ERR: spam_radius.c:137 The system could not send join reply, AP authorization failed; AP:6c:20:56:e8:ea:f4
    *spamApTask0: Jan 17 15:16:18.080: %LWAPP-3-ECHO_ERR: spam_tmr.c:1381 Did not receive heartbeat reply; AP: 6c:20:56:e8:ea:f4
    *spamApTask0: Jan 17 15:13:49.192: %LWAPP-3-RX_ERR3: spam_l2.c:440 The system has received LWAPP packet with invalid sequence number (got 3expected 4) - from AP 6c:20:56:e8:ea:f4
    *spamApTask0: Jan 17 15:13:45.935: %LWAPP-3-PAYLOAD_MISSING: spam_lrad.c:5730  Join request does not contain BOARD_DATA payload

  • TS1398 cannot join the network

    Just recently my phone will not connect to the wireless network (previously used networks).  I've tried resetting the networks, that did not work.  I get the error message saying "unable to join the network"

    I have followed ALL steps!! I guess I'm not making myself clear.  At home, I've turned everything off, and on, and reset networks on my phone.  However, my phone still gives me an error message "unable to join network ...".  At my house, it will work in one room and not the next.  I am currently at a hotel, and I get the error message in my hotel room, but it connects without issue in the meeting room (using the same network) For some reason it is selective.  On the flip side, my iPad has no issue connecting to the same networks, with the same router and modem.

  • How to configure distributed transaction in Oracle Database Gateway for ODBC? (ORA-02047)

    I am connecting from Oracle to another database server (MS SQL Server, DB2 the error message is the same) through an ODBC connection using Oracle SQL Developer. (This is how I set up)
    I want to query the schema of a non-Oracle database using the data dictionary mapping of the Oracle Database Gateway for ODBC.
    This works well:
    select * from all_tables@katimssql;
    But this doesn't:
    create table alltables_mssql as
    select * from all_tables@katimssql;
    Output:
    Error report:
    SQL Error: ORA-00604: error occurred at recursive SQL level 1
    ORA-02047: cannot join the distributed transaction in progress
    ORA-06512: at "SYS.HS$_DDTF_SQLTABLES", line 58
    ORA-06512: at line 1
    Does anyone know the solution of this?
    Thanks in advance,
    Kata
    Details:
    Oracle Database 11g Express Edition Release 11.2.0.2.0
    Microsoft SQL Server 2008 (SP2) - 10.0.4000.0 (X64)
    ODBC Driver: SQL Server Native Client 11.0 (32 bit)
    initkatimssql.ora:
    HS_FDS_CONNECT_INFO=katimssql
    HS_FDS_TRACE_LEVEL = ON
    HS_TRANSACTION_MODEL = READ_ONLY_AUTOCOMMIT
    I tried these, none of them worked, the error message is the same.
    HS_FDS_TRACE_LEVEL = off
    HS_TRANSACTION_MODEL = SINGLE_SITE
    HS_TRANSACTION_MODEL = READ_ONLY_AUTOCOMMIT
    HS_TRANSACTION_MODEL = READ_ONLY

    Hi Kata,
    this won't work as the ALL_TABLES is not a table that exists in your SQl Server  - instead it is a "mimicked" table. This means the gateway will check if you have on your SQL Server a table called all_tables and when there's no table it will start an internal mechanism to check out what sort of tables exist in your SQL Server database. So the gateway is starting internally another transaction to get details from the foreign database and DG4ODBC can't participate in distributed transactions at all. Instead of using all_tables you have to use a real SQL Server table like SQ Server sys.objects or sys.tables.
    - Klaus

  • Is HS Generic Connectivity(db2/400 odbc) supports Distributed Transaction?

    hi,
    Is HS Generic Connectivity(db2/400 odbc) supports Distributed Transaction?
    I am getting an error as follows
    "ORA-02047 cannot join the distributed transaction in progress" when i am trying a transaction, which is inserting in to db2/400 and updating in Oracle.
    if it does not support this, what is the best way
    to do such things using generic connectivity.
    (eg. by committing each sql statement ?)
    my db is oracle 9i 9.2.0.4.0
    remote db is db2/400 connected with client access ODBC.
    Thanks
    BA

    Hi,
    one of the restrictions of generic connectivity is, that distributed transactions are not allowed.
    See manual: 7-6 Oracle9 i Heterogeneous Connectivity Administrator's Guide
    - Generic Connectivity agents cannot participate in distributed transactions; they
    support single-site transactions only
    So you can only commit after each statement or you have to use the GATEWAY

  • Import err: ORA-20001,ORA-02047,alter session set nls_numeric_characters...

    Hi APEX development team,
    I get mad about an APEX import error which occurs maybe one time every second month.
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.
    ORA-02047: cannot join the distributed transaction in progress <pre>
    begin execute immediate 'alter session set nls_numeric_characters='''||wwv_flow_api.g_nls_numeric_chars||''''; end; </pre>I described the error really detailed inside my APEX blog. The following links will help you understanding what I tried to find a solution for it:
    [APEX error ORA-20001 and ORA-02047 during application import (1)|http://apex-at-work.blogspot.com/2008/11/apex-error-ora-20001-and-ora-02047.html]
    [Again import error ORA-02047: cannot join the distributed... (2)|http://apex-at-work.blogspot.com/2008/11/again-import-error-ora-02047-cannot.html]
    [Solution for APEX import error ORA-20001, ORA-02047 (3)|http://apex-at-work.blogspot.com/2008/11/solution-for-apex-import-error-ora.html]
    Write now I have two options to solve the error:
    1. Restart Oracle Application Server
    2. Wait a couple of days with the import (restart of my client computer) and it works for a while again
    Apex Version: 3.1.2
    DB Version: Oracle XE database under Windows
    Hope there is a chance to get some help about this annoying error.
    King regards,
    Tobias

    Hi Joel, Scott and the rest of the community.
    I went on determine the import problem. It occurred two more times since the last post.
    First time:
    This time was a bit different. I wanted to create a new workspace and got the error "ORA-02047: cannot join the distributed transaction in progress" when I clicked on the button to create a new workspace after I entered all information to it.
    I restarted the OAS and worked again
    Second time:
    During an application import the error occurred again and I tried the following things:
    As data owner (only one db link exist)
    ALTER SESSION CLOSE DATABASE LINK DBMS_CLRDBLINK;Result no open database links to close
    As sys (all database links)
    -- The following script queries the DBA_DB_LINKS view to access link information:
    SELECT * FROM DBA_DB_LINKS;
    -- close of all database links
    ALTER SESSION CLOSE DATABASE LINK username.db_link_name;
    ...Result no database links open. Try of import ended with same error.
    Check of apex_public_user no (open) db_links. No objects locked.
    I had to restart the OAS again.
    Any ideas?
    Regards,
    Tobias

  • ORA-02042: too many distributed transactions

    1. I have been working on a portal application for several weeks.
    2. Portal is installed in 1 instance and my data is in another instance.
    3. I've had no ora-02042 problems in the devt environment set up that way.
    4. I've recently migrated the application/pages to a test environment set up that way.
    5. I've been working in the test environment for several days with no problems.
    6. For some portlets on some pages I'm now getting:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    Failed to parse query
    Error:ORA-02042: too many distributed transactions
    Error:ORA-02042: too many distributed transactions
    ORA-02063: preceding line from
    LINK_TO_TEST (WWV-11230) Failed to parse as PACID_SCHEMA -
    select user_action.userid, action.name,
    user_action.created_date,
    user_action.created_by, action.action_id,
    'del' del_link from user_action , action
    where user_action.action_id =
    action.action_id and user_action.userid
    LIKE UPPER(:userid) order by USERID
    ASC, NAME ASC, CREATED_DATE
    ASC (WWV-08300)
    <HR></BLOCKQUOTE>
    7. I cannot find anything about this error in the db log files for either instance.
    8. I've increased distributed transactions to 200 in the portal db and bounced
    it. Still get the error.
    9. No records in dba_2pc_pending or dba_2pc_neighbors in the portal instance.
    10. I get the error in various reports and form LOVs at different times. Pages with a lot of portlets seem to be more prone to the error.
    Here is a typical LOV error:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    COMBOBOX LOV ERROR:
    LOV: "ASIMM_1022.TITLE_LOV"
    Parse Message: Parse as pre-set global: "PACID_SCHEMA".
    Find Message: LOV is of type DYNAMIC (LOV based on SQL query).
    Query: "select code display_column, code return_column from codes where table_id = 'OFFICER_TITLE' order by code"
    wwv_parse.parse_as_user: ORA-02042: too many distributed transactions ORA-02063: preceding line from LINK_TO_TEST wwv_parse.parse_as_user: Failed to parse as PACID_SCHEMA - select code display_column, code return_column from codes where table_id = 'OFFICER_TITLE' order by code wwv_security.check_comp_privilege: Insufficient privileges. wwpre_utl.get_path_id: The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.217_USER_INPUT_ASIMM_5423428
    <HR></BLOCKQUOTE>
    Why are these select statements being interpreted as distributed transactions? Note:1032658.6 suggests I "USE SET TRANSACTION READ ONLY". Is this necessary? If so how?
    What puzzles me is that this set up has been working fine for several days. I don't know of any changes to my environment apart from me increasing distributed transactions.
    null

    Hi,
    this is information from metalink:
    The ORA-2042 indicates that you should increase the parameter
    distributed_transactions.
    The ORA-2063 indicates that this must be done at the remote
    database.
    Explanation
    If the distributed transaction table is full on either side of
    the database link you get the error ORA-2042:
    ORA-02042: "too many distributed transactions"
    Cause: the distributed transaction table is full,
    because too many distributed transactions are active.
    Action: increase the INIT.ORA "distributed_transactions" or
    run fewer transactions.
    If you are sure you don't have too many concurrent
    distributed transactions, this indicates an internal
    error and support should be notified.
    Instance shutdown/restart would be a workaround.
    When the error is generated at the remote database it is
    accompanied with an ORA-2063. In this case the parameter
    distributed_transactions must be increased at the remote
    database.
    If there is no ORA-2063 the parameter distributed_transactions
    must be increased at the local database.

  • ORA-01591: lock held by in-doubt distributed transaction

    I am using oracle wcf adapter to connect to oracle to insert.
    I am getting the ORA-01591: lock held by in-doubt distributed transaction.
    Any ideas as to what could be the resolution. I have followed the below mentioned steps. but that's not a permanent solution.
    Please advice.
    The resolution described below is not acceptable and never should have been used.  Although it does avoid the error, it's not okay to turn off AmbientTransaction when performing inserts
    and/or updates.  A different solution needs to be found.<o:p></o:p>
    http://msdn.microsoft.com/en-US/library/dd788352(v=BTS.10).aspx <o:p></o:p>
    "Not performing operations in a transactional context is advisable only for operations that do not make changes to the database. For operations that update data in the database, we recommend
    setting the binding property to true otherwise you might either experience message loss or duplicate messages depending on whether you are performing inbound or outbound operations."<o:p></o:p>
    ********************************************<o:p></o:p>
    This can be resolved by adjusting the configuration settings on the Oracle adapter, accessible via the Send Port properties.  The properties and the values that should be used are shown below:<o:p></o:p>
    ** Binding tab:
    incrPoolSize:  1
    maxPoolSize:  10
    useAmbientTransaction:  False<o:p></o:p>
    ** Messages tab:
    Isolation Level:  ReadCommitted<o:p></o:p>
    Also, you'll need to get a DBA to rollback the hanging "in-doubt" transactions, which will be viewable via the sql below.  Otherwise, if you try processing the same data again, you'll
    still get the same error.<o:p></o:p>
    SELECT LOCAL_TRAN_ID, GLOBAL_TRAN_ID, STATE, MIXED, HOST, COMMIT# FROM DBA_2PC_PENDING;<o:p></o:p>
    The transactions can be rolled back with sql, using this syntax:<o:p></o:p>
    ROLLBACK FORCE '<LOCAL_TRAN_ID>';
    <o:p></o:p>
    Thank you and have great day! Vivek Kulkarni MCAD.net

    Hi Vivek,
    This error is encountered by many DBA's and cause problem by locking the distributed transaction process, and not letting the query go through, because the Two - Phase Commit Mechanism got an error somewhere.
    he DBA should query the pending_trans$ and related tables, and attempt to repair network connection(s) to coordinator and commit point.
    Here are some codes to help you through the process:
    This one brings in-doubt transactions:
    select * from DBA_2PC_PENDING where state='prepared'
    This one prepares the rollback script for the transactions:
    select 'rollback force '''||local_tran_id||''';' from DBA_2PC_PENDING where state='prepared'
    All this is well described in below link
    ORA-01591: lock held by in-doubt distributed transaction
    ORA-01591: lock held by in-doubt distributed transaction string tips
    On BizTalk Side you need to make ambient transaction to false as Oracle does not go ahead with DTC Transaction with  Biz Talk
    Thanks
    Abhishek

Maybe you are looking for

  • Media file (quicktime) not playing when Pages document is saved as a pdf

    I added a quicktime file (a movie trailer) to my presentation and it plays when in Pages - but when I export it to a pdf it is just a black space. 1. are these links/media files are supposed to be active when in a pdf format 2. how can I get the medi

  • GZIPPed  XMLEncoded HttpRequest post parameter!

    Hi All, I'm devolping a standalone java application that builds some kinds of objects and needs to send them to a servlet in xml fashion (via HttpUrlConnection with "post" method). My problem is that now this objects are too big so i thought: no prob

  • Unable to use Automator scripts

    Ever since migrating to Leopard 10.5.1 from Tiger, I have not been able to use any of my Automator scripts. They don't work. I did create a script to rename my files and every time I use it I constantly get an Applescript error -1700. What's going on

  • Dead drive or blind tiger?

    greetings all, i hope everyone's celebrations were enjoyable. one of the gifts i recieved was a crash for my external FW drive. i need some diagnostic help. im pretty sure it's not a software problem but i wanted to be sure... the enclosure gets powe

  • Instale Mountain Lion y lo encuentro muy lento, quiero volver a Snow Leopard

    Quiero volver a Snow Leopard pero no se si funciona ICLOUD., Instale Mountain Lion y lo encuentro muy lento todo, quiero volver a Snow Leopard pero no se si funciona ICLOUD. Alguna solucion si no funciona? Saludos Miguel