Oracle Deadlock script

hi,
i am using oracle 11g in windows 2003 server. i stimulated oracle dead lock but i want a script which should show me whether the lock is dead lock or normal lock etc......
Plz can anyone tell me what all the tables i should use to get the information?????
Thanks in advance

There is no query to check for deadlocks - since deadlocks are handled (or resolved immediately) by Oracle kernel.
For transactional locks, you can query V$lock, v$locked_object, dba_blockers.

Similar Messages

  • In oracle Open Script (OATS) OracleEBS/Forms project all the elements or fields are being identified as web objects.

    In oracle Open Script (OATS), we have created an OracleEBS/Forms project. But when we try to record the script all the elements or fields are being identified as web objects. Due to this we are unable to use the functions like getText. Hence, please help.
    Example: The below line when executed gives an error " Failed to connect to the Oracle Forms applet after 90 seconds. Verify that the applet launching page opens, and that the Forms Startup Timeout setting is high enough for this site."
    forms.textField("/web:window[@index='0' or @title='Person']/web:document[@index='7' or @name='tabPage']/web:input_text[@id='PER_ID' or @name='PER_ID' or @index='0']").getText();
    We have already set the event timeouts in OpenScript Preferences -> Playback -> OracleEBS/Forms Functional as
    Forms startup time out = 90Sec
    Forms Action timeout = 120Sec
    Forms Response Timeout = 120 Sec.
    OpenScript
    Version: 12.4.0.1 Build 139

    If it is a name resolution I would try either replacing the server name in the script with the IP address or making an entry in the local host file of the machine trying to play back the script
    If you try one or both of those approaches does the script play back?

  • Send mails with csv file as an attachment through oracle(SQL SCripts / Stor

    Hello Everybody,
    I have recently come across a requirement in which I am supposed to send mails with csv file as an attachment through oracle(SQL SCripts / Stored Procedure) .
    The contents of the csv file are to be retreived from the Database as well as the content of the mail and to whom it needs to be sent has also to be picked up from the database.
    Can somebody suggest me with a suitable code for the same?
    Would be of great help..!!
    Thanks & Regards,
    - VR
    Edited by: user646716 on Dec 18, 2009 10:44 AM

    read below links
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:255615160805
    http://www.orafaq.com/wiki/Send_mail_from_PL/SQL#Send_mail_with_UTL_TCP_-withattachments
    How to send csv file as an attachment

  • Oracle Open Script - Failed to open script error

    I am receiving the following error when trying to open a script in Oracle open script
    'Failed to open script' has encountered a problem.Failed to open <script_name>. See error log for details.
    I have tried the Giri Mandalika's solution but there is no "<failing_script_name>" folder in specified path.
    Can someone please help me to resolve this issue ?

    Hi ,You can try deleting the osworkspace folder .The folder should be at C:\Users\<username>\. May be take a back up copy of the folder before deleting it.Let me know if it works.

  • Oracle deadlock question

    *** 2003-12-25 01:02:42.782
    *** SESSION ID:(12.3) 2003-12-25 01:02:42.732
    DEADLOCK DETECTED
    No current SQL statement being executed.
    The following deadlock is not an ORACLE error. It is a
    deadlock due to user error in the design of an application
    or from issuing incorrect ad-hoc SQL. The following
    information may aid in determining the deadlock:
    Deadlock graph:
    ---------Blocker(s)-------- ---------Waiter(s)---------
    I have an application causing an Oracle deadlock with the following trace/dump. The app uses a single transaction to insert a record (containing a blob col) and then select it for update to use the blob col ref to add the blob value. Transaction commit/rollback is explicit after success/failure.
    My question is, given that the trace file indicates the same process/session for the waiter and the blocker, can a single running app instance w/a single session and transaction, block itself? if so, what conditions produce such a deadlock...
    Thanks for any help,
    -Dean Palamides
    Resource Name process session holds waits process session holds waits
    TX-00010016-00000882 12 12 X 12 12 S
    session 12: DID 0001-000C-00000002     session 12: DID 0001-000C-00000002
    Rows waited on:
    Session 12: obj - rowid = 00003152 - AAAAAAAADAAD45hAAA
    (dictionary objn - 12626, file - 3, block - 1019489, slot - 0)
    Information on the OTHER waiting sessions:
    End of information on OTHER waiting sessions.

    Hi Dean:
    We've had a similar problem (but doesn't manifest consistently), also single-thread, via JDBC "thin" onto Oracle 9.2.0.1.0... there's a MetaLink note, 130214.1, that shows the same symptom with Oracle 8.0 when MAX_TRANS of the LOB index is too low. I suspect in our case the INI_TRANS is too low (at 2), but LOB index storage parameters cannot be set in Orcle 9 - it's automatic.
    Were you using JDBC? Is the problem the same when you use PL/SQL's DBMS_LOB.xxx procedures? What Oracle version do you have? Was it BLOB or CLOB? Is the failure consistent?
    If I get any joy from Oracle support, I'll post it here... please let me know any particulars you have (such as above) about your problem.

  • Need an Oracle Email script

    I'm trying to get an Oracle email script that sets up the tablespaces and database for Oracle email. The script is supposed to be: $ORACLE_HOME/oes/install/sql/tblspc.sql
    If anyone has this, please email to [email protected]
    Thanks!
    Chris Parrish

    If you start installing the Oracle software you will be asked if you want to create a sample database. You can use that. Or, you can use DBCA. Check out the main documentation for details as they are many options, depending on your Oracle and O/S versions.

  • Install Oracle from script

    Install Oracle from script
    Hi
    I need to install and uninstall oracle from script (Win platform), as part of product installation .
    How to do it?
    Can you lead me for a link explain abut it ?

    Hi;
    What is your oracle version?
    I need to install and uninstall oracle from script (Win platform), as part of product installation .If you are 10g level than check
    http://download.oracle.com/docs/cd/B19306_01/install.102/b14316/toc.htm << search as slient installation
    If you are 11g level than check
    http://download.oracle.com/docs/cd/E11882_01/install.112/e16773/toc.htm
    Also see below good explaination on Tim site
    http://www.oracle-base.com/articles/misc/OuiSilentInstallations.php
    Regard
    Helios

  • Oracle Startup Scripts for AIX

    Does anyone have experience setting up automatic Oracle startup scripts for AIX?
    Any help would be greatly appreciated!
    Thanks,
    Mike

    Some recommandation here :
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b15658/strt_stp.htm#sthref255
    Nicolas.

  • Error During the Oracle Open Script Playback

    Hi,
    I'm getting the below error while I try to execute my recorded script, which executes fine in other systems:
    14:29:49,876 ERROR [EnumSrvc] Failed to get children by tag:window
    oracle.oats.scripting.modules.webdom.common.api.exception.WaitForPageTimeoutException: Timeout(60 seconds) occurred waiting for page to load.
         at oracle.oats.scripting.modules.webdom.common.api.exception.WaitForPageTimeoutException.createWaitForPageTimeoutException(WaitForPageTimeoutException.java:34)
         at oracle.oats.scripting.modules.webdom.common.api.internal.communication.MessageHandler.sendMessage(MessageHandler.java:80)
         at oracle.oats.scripting.modules.webdom.api.internal.InternalWebDOMService.sendMessage(InternalWebDOMService.java:272)
         at oracle.oats.scripting.modules.webdom.api.internal.service.EnumSrvc.getChildrenByTag(EnumSrvc.java:163)
         at oracle.oats.scripting.modules.webdom.api.internal.service.EnumSrvc.getChild(EnumSrvc.java:104)
         at oracle.oats.scripting.modules.webdom.api.internal.service.EnumSrvc.getChildren(EnumSrvc.java:240)
         at oracle.oats.scripting.modules.webdom.api.internal.service.EnumSrvc.getChildren(EnumSrvc.java:1)
         at oracle.oats.scripting.modules.functionalTest.api.internal.services.FindTestObjectSrvc.findTestObject(FindTestObjectSrvc.java:131)
         at oracle.oats.scripting.modules.functionalTest.api.internal.services.FindTestObjectSrvc.findTestObject(FindTestObjectSrvc.java:75)
         at oracle.oats.scripting.modules.functionalTest.api.internal.services.FuncTestSrvc.findTestObject(FuncTestSrvc.java:72)
         at oracle.oats.scripting.modules.functionalTest.api.internal.services.FuncTestSrvc.findTestObject(FuncTestSrvc.java:66)
         at oracle.oats.scripting.modules.webdom.api.internal.InternalWebDOMService.findDomElement(InternalWebDOMService.java:798)
         at oracle.oats.scripting.modules.webdom.api.internal.InternalWebDOMService.findDomElement(InternalWebDOMService.java:782)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMTestObject.checkTestObject(DOMTestObject.java:171)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.checkTestObject(DOMBrowser.java:82)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.navigate(DOMBrowser.java:103)
         at script.run(script.java:27)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:316)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:726)
         at java.lang.Thread.run(Thread.java:619)
    14:29:49,892 ERROR [1] Error in section Run at line (script.java:27). Find Object timeout. Detail information:/web:window[@index='0' or @title='about:blank'].
    oracle.oats.scripting.modules.webdom.common.api.exception.ObjectNotFoundException: Find Object timeout. Detail information:/web:window[@index='0' or @title='about:blank'].
         at oracle.oats.scripting.modules.webdom.api.elements.DOMTestObject.checkTestObject(DOMTestObject.java:174)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.checkTestObject(DOMBrowser.java:82)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.navigate(DOMBrowser.java:103)
         at script.run(script.java:27)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:316)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:726)
         at java.lang.Thread.run(Thread.java:619)
    14:29:49,907 ERROR [1] Iteration 1 failed at line (script.java:27). 4 Errors. Find Object timeout. Detail information:/web:window[@index='0' or @title='about:blank']. ...
    oracle.oats.scripting.modules.webdom.common.api.exception.ObjectNotFoundException: Find Object timeout. Detail information:/web:window[@index='0' or @title='about:blank'].
         at oracle.oats.scripting.modules.webdom.api.elements.DOMTestObject.checkTestObject(DOMTestObject.java:174)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.checkTestObject(DOMBrowser.java:82)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.navigate(DOMBrowser.java:103)
         at script.run(script.java:27)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:316)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:726)
         at java.lang.Thread.run(Thread.java:619)
    14:29:49,907 INFO [1] Finished VU 1 for script WebTutor2
    Edited by: 916445 on Feb 23, 2012 1:14 AM
    Edited by: 916445 on Feb 23, 2012 1:15 AM

    Hi Elmar,
    I have checked the packages and the XFree86-libs-4.3.99 is not installed. I guess I will have to install it.
    Now your question about oracle user. I am not sure if you have performed any SAP MDM installation with ORACLE RDBMS but the installation guide is totally different than the normal SAP inst guides. Indeed someone needs to install separately SAP MDM and ORACLE and in my installation I do not install NetWeaver since it is not mandatory for the testing phase of the project. You can have a look at the guide (it is very poor -no reference to ORACLE details):
    https://websmp105.sap-ag.de/~sapidb/011000358700000271882007E
    So the official ORACLE inst gudie says to install the ORACLE software with the oracle user.
    Rgds,
    Louka

  • Oracle Installer scripting

    Does anyone know where to find a comprehensive documentation of Oracle Installer scripting (for Windows)?
    I'd like to deploy my Developer (6.0) app with Oracle Installer (using Oracle File Packager).
    I must modify the code it generates but I can't really find a good and comprehensive doc for it.
    Thanks,
    Zs

    Does anyone know where to find a comprehensive documentation of Oracle Installer scripting (for Windows)?
    I'd like to deploy my Developer (6.0) app with Oracle Installer (using Oracle File Packager).
    I must modify the code it generates but I can't really find a good and comprehensive doc for it.
    Thanks,
    Zs

  • Oracle Deadlock Weblogic 8.1 sp4, Oracle 8i, StuckThreadMaxTime

    It will be very helpful if you can suggest on the deadlock issue....
    Application was fine for more than 6 months, all of a sudden Appplication goes down after throwing Oracle deadlock exception and after which all thread are hung and no ideal thread available to process incoming request.
    We are using weblogic 8.1 sp4 and Oracle 8.1.7
    "<WebLogicServer> <BEA-000337> <ExecuteThread: '19' for queue: 'weblogic.kernel.Default' has been busy for "1,209" seconds working on the request "Http Request: /requestconfirmed", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>"
    Attaching part of Thread dump and Jdbc log:
    "ExecuteThread: '24' for queue: 'weblogic.kernel.Default'" daemon prio=10 tid=0006a308 nid=37 lwp_id=17700 runnable [0x574e400
    0..0x574e34c0]
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:134)
    at oracle.net.ns.Packet.receive(Unknown Source)
    at oracle.net.ns.DataPacket.receive(Unknown Source)
    at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
    at oracle.net.ns.NetInputStream.read(Unknown Source)
    at oracle.net.ns.NetInputStream.read(Unknown Source)
    at oracle.net.ns.NetInputStream.read(Unknown Source)
    at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:971)
    at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:941)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:432)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:180)
    at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:783)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1027)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2885)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2976)
    - locked <79098e48> (a oracle.jdbc.driver.T4CCallableStatement)
    - locked <5d00fca0> (a oracle.jdbc.driver.T4CConnection)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
    - locked <79098e48> (a oracle.jdbc.driver.T4CCallableStatement)
    - locked <5d00fca0> (a oracle.jdbc.driver.T4CConnection)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:102)
    at com.compoundrequester.dataobjects.DeliveryDO.creatOrderOnSubmitRequest(DeliveryDO.java:157)
    at com.compoundrequester.servlets.RequestConfirmedServlet.processInitialScreen(RequestConfirmedServlet.java:
    264)
    at com.compoundrequester.servlets.RequestConfirmedServlet.service(RequestConfirmedServlet.java:115)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:322)
    at com.compoundrequester.servlets.AbstractRequesterServlet.forwardTo(AbstractRequesterServlet.java:140)
    at com.compoundrequester.servlets.RequestInformationServlet.processSubmitRequest(RequestInformationServlet.j
    ava:312)
    JDBC log stream started at Mon Sep 10 03:00:51 EDT 2007
    DriverManager.initialize: jdbc.drivers = null
    JDBC DriverManager initialized
    registerDriver: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@893e69]
    DriverManager.getDriver("jdbc:oracle:thin:@prd-coats.prius.jnj.com:1601:CMIP1")
    trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@893e69]
    getDriver returning driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@893e69]
    registerDriver: driver[className=weblogic.jdbc.jts.Driver,weblogic.jdbc.jts.Driver@8864af]
    registerDriver: driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@c787d7]
    registerDriver: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@1051922]
    DriverManager.getConnection("jdbc:oracle:thin:@ncsprd04.rar.ncsus.jnj.com:1573:cosmprp4")
    trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@893e69]
    DriverManager.deregisterDriver: oracle.jdbc.driver.OracleDriver@1051922
    getConnection returning driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@893e69]
    registerDriver: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@1402772]
    DriverManager.getConnection("jdbc:oracle:thin:@ncsprd04.rar.ncsus.jnj.com:1573:cosmprp4")
    trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@893e69]
    DriverManager.deregisterDriver: oracle.jdbc.driver.OracleDriver@1402772
    getConnection returning driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@893e69]
    SQLException: SQLState(null) vendor code(17110)
    java.sql.SQLException: execution completed with warning
         at oracle.jdbc.driver.DatabaseError.newSqlException(DatabaseError.java:80)
         at oracle.jdbc.driver.DatabaseError.newSqlException(DatabaseError.java:98)
    java.sql.SQLException: Error (-60) caught executing stored procedure: ORA-00060: deadlock detected while waiting for resource
         at com.compoundrequester.dataobjects.AbstractRequestorDataObject.checkStoredProcedure(AbstractRequestorDataObject.java:91)

    We solved the deadlock after changing code.
    Issue is, when Submit button is clicked, it calls requestconfirmed servlet, which in turn calls a proceduer and gets stuck, we tested the same proceduer on development server, but on production it gives the following error, some how database is not processing requests fast enough...
    <Error> <WebLogicServer> <BEA-000337> <ExecuteThread: '20' for queue: 'weblogic.kernel.Default' has been busy for "821" seconds working on the request "Http Request: /us/requestconfirmed", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
    <Error> <WebLogicServer> <BEA-000337> <ExecuteThread: '21' for queue: 'weblogic.kernel.Default' has been busy for "825" seconds working on the request "Http Request: /us/requestconfirmed", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
    <Error> <WebLogicServer> <BEA-000337> <ExecuteThread: '22' for queue: 'weblogic.kernel.Default' has been busy for "1,125" seconds working on the request "Http Request: /us/requestconfirmed", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
    <Error> <WebLogicServer> <BEA-000337> <ExecuteThread: '23' for queue: 'weblogic.kernel.Default' has been busy for "1,425" seconds working on the request "Http Request: /us/requestconfirmed", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
    <Error> <WebLogicServer> <BEA-000337> <ExecuteThread: '24' for queue: 'weblogic.kernel.Default' has been busy for "1,121" seconds working on the request "Http Request: /us/requestconfirmed", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
    Below is thread dump
    Full thread dump [Wed Sep 19 11:58:59 EDT 2007] (Java HotSpot(TM) Server VM 1.4.2 1.4.2.05-040917-18:54-PA_RISC2.0 PA2.0 (aCC_AP) mixed mode):
    "ListenThread.Default" prio=10 tid=0007a318 nid=62 lwp_id=24967 runnable [0x56d54000..0x56d544c0]
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
         - locked <5d2455d8> (a java.net.PlainSocketImpl)
         at java.net.ServerSocket.implAccept(ServerSocket.java:454)
         at java.net.ServerSocket.accept(ServerSocket.java:425)
         at weblogic.socket.WeblogicServerSocket.accept(WeblogicServerSocket.java:26)
         at weblogic.t3.srvr.ListenThread.accept(ListenThread.java:735)
         at weblogic.t3.srvr.ListenThread.run(ListenThread.java:301)
    "OracleTimeoutPollingThread" daemon prio=8 tid=01ddf950 nid=61 lwp_id=24114 waiting on condition [0x568cb000..0x568cb4c0]
         at java.lang.Thread.sleep(Native Method)
         at oracle.jdbc.driver.OracleTimeoutPollingThread.run(OracleTimeoutPollingThread.java:144)
    "Thread-8" prio=8 tid=0007aa20 nid=60 lwp_id=24110 waiting on condition [0x5694c000..0x5694c4c0]
         at java.lang.Thread.sleep(Native Method)
         at com.jandj.rwjpri.us.release.REL1.run(REL1.java:221)
         at java.lang.Thread.run(Thread.java:534)
    "Thread-7" daemon prio=8 tid=0007a8b8 nid=59 lwp_id=24107 waiting on condition [0x569cd000..0x569cd4c0]
         at java.lang.Thread.sleep(Native Method)
         at com.jandj.rwjpri.us.sessiontracker.usSessionTracker.run(usSessionTracker.java:171)
         at java.lang.Thread.run(Thread.java:534)
    "Thread-6" prio=10 tid=0007a750 nid=58 lwp_id=24088 in Object.wait() [0x56a4e000..0x56a4e4c0]
         at java.lang.Object.wait(Native Method)
         - waiting on <5cfb8c18> (a java.util.TaskQueue)
         at java.util.TimerThread.mainLoop(Timer.java:429)
         - locked <5cfb8c18> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:382)
    "weblogic.health.CoreHealthMonitor" daemon prio=8 tid=0007a5e8 nid=57 lwp_id=24022 waiting on condition [0x56acf000..0x56acf4c0]
         at java.lang.Thread.sleep(Native Method)
         at weblogic.t3.srvr.CoreHealthMonitorThread.run(CoreHealthMonitorThread.java:128)
    "Thread-5" prio=10 tid=0007a480 nid=56 lwp_id=24020 in Object.wait() [0x56b50000..0x56b504c0]
         at java.lang.Object.wait(Native Method)
         - waiting on <5cd1cdc0> (a java.util.TaskQueue)
         at java.util.TimerThread.mainLoop(Timer.java:429)
         - locked <5cd1cdc0> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:382)
    "LDAPConnThread-0 ldap://NCSUSRAEBZWLA01:5001" daemon prio=10 tid=0007a1b0 nid=53 lwp_id=23989 runnable [0x56cd3000..0x56cd34c0]
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:134)
         at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
         - locked <5cc37d78> (a java.io.BufferedInputStream)
         at netscape.ldap.ber.stream.BERElement.getElement(BERElement.java:101)
         at netscape.ldap.LDAPConnThread.run(LDAPConnThread.java:538)
         at java.lang.Thread.run(Thread.java:534)
    "VDE Transaction Processor Thread" prio=10 tid=00079ee0 nid=51 lwp_id=23986 in Object.wait() [0x56dd5000..0x56dd54c0]
         at java.lang.Object.wait(Native Method)
         - waiting on <5cc0c2c8> (a com.octetstring.vde.backend.standard.TransactionProcessor)
         at java.lang.Object.wait(Object.java:429)
         at com.octetstring.vde.backend.standard.TransactionProcessor.waitChange(TransactionProcessor.java:365)
         - locked <5cc0c2c8> (a com.octetstring.vde.backend.standard.TransactionProcessor)
         at com.octetstring.vde.backend.standard.TransactionProcessor.run(TransactionProcessor.java:212)
    "ExecuteThread: '2' for queue: 'weblogic.admin.RMI'" daemon prio=10 tid=0007a048 nid=50 lwp_id=23985 in Object.wait() [0x56e56000..0x56e564c0]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:429)
         at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:153)
         - locked <5cb6f4f0> (a weblogic.kernel.ExecuteThread)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:172)
    "ExecuteThread: '1' for queue: 'weblogic.admin.RMI'" daemon prio=10 tid=00079c10 nid=49 lwp_id=23984 in Object.wait() [0x56ed7000..0x56ed74c0]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:429)
         at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:153)
         - locked <5cb6efc8> (a weblogic.kernel.ExecuteThread)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:172)
    "ExecuteThread: '0' for queue: 'weblogic.admin.RMI'" daemon prio=10 tid=00079d78 nid=48 lwp_id=23983 in Object.wait() [0x56f58000..0x56f584c0]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:429)
         at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:153)
         - locked <5cb6ea80> (a weblogic.kernel.ExecuteThread)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:172)
    "ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'" daemon prio=10 tid=00079aa8 nid=47 lwp_id=23978 waiting for monitor entry [0x56fd9000..0x56fd94c0]
         at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:93)
         - waiting to lock <5ca5efe0> (a java.lang.String)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    "ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'" daemon prio=10 tid=00079940 nid=46 lwp_id=23977 waiting for monitor entry [0x5705a000..0x5705a4c0]
         at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:93)
         - waiting to lock <5ca5efe0> (a java.lang.String)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    "ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'" daemon prio=10 tid=000797d8 nid=45 lwp_id=23976 runnable [0x570db000..0x570db4c0]
         at weblogic.socket.PosixSocketMuxer.poll(Native Method)
         at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:100)
         - locked <5ca5efe0> (a java.lang.String)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    "weblogic.security.SpinnerRandomSource" daemon prio=10 tid=00079670 nid=44 lwp_id=23974 in Object.wait() [0x5715c000..0x5715c4c0]
         at java.lang.Object.wait(Native Method)
         - waiting on <5ca48110> (a java.lang.Object)
         at java.lang.Object.wait(Object.java:429)
         at weblogic.security.SpinnerRandomBitsSource.run(SpinnerRandomBitsSource.java:60)
         - locked <5ca48110> (a java.lang.Object)
         at java.lang.Thread.run(Thread.java:534)
    "weblogic.time.TimeEventGenerator" daemon prio=10 tid=00079508 nid=43 lwp_id=23973 in Object.wait() [0x571dd000..0x571dd4c0]
         at java.lang.Object.wait(Native Method)
         - waiting on <5ca46690> (a weblogic.time.common.internal.TimeTable)
         at weblogic.time.common.internal.TimeTable.snooze(TimeTable.java:272)
         - locked <5ca46690> (a weblogic.time.common.internal.TimeTable)
         at weblogic.time.common.internal.TimeEventGenerator.run(TimeEventGenerator.java:118)
         at java.lang.Thread.run(Thread.java:534)
    "ExecuteThread: '4' for queue: 'weblogic.kernel.System'" daemon prio=10 tid=000793a0 nid=42 lwp_id=23972 in Object.wait() [0x5725e000..0x5725e4c0]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:429)
         at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:153)
         - locked <5ca45e18> (a weblogic.kernel.ExecuteThread)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:172)
    "ExecuteThread: '3' for queue: 'weblogic.kernel.System'" daemon prio=10 tid=00079238 nid=41 lwp_id=23971 in Object.wait() [0x572df000..0x572df4c0]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:429)
         at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:153)
         - locked <5ca45958> (a weblogic.kernel.ExecuteThread)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:172)
    "ExecuteThread: '2' for queue: 'weblogic.kernel.System'" daemon prio=10 tid=000790d0 nid=40 lwp_id=23970 in Object.wait() [0x57360000..0x573604c0]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:429)
         at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:153)
         - locked <5ca45498> (a weblogic.kernel.ExecuteThread)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:172)
    "ExecuteThread: '1' for queue: 'weblogic.kernel.System'" daemon prio=10 tid=00078f68 nid=39 lwp_id=23969 in Object.wait() [0x573e1000..0x573e14c0]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:429)
         at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:153)
         - locked <5ca44fd8> (a weblogic.kernel.ExecuteThread)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:172)
    "ExecuteThread: '0' for queue: 'weblogic.kernel.System'" daemon prio=10 tid=00078e00 nid=38 lwp_id=23968 in Object.wait() [0x57462000..0x574624c0]
         at java.lang.Object.wait(Native Method)
         - waiting on <5ca44b18> (a weblogic.kernel.ExecuteThread)
         at java.lang.Object.wait(Object.java:429)
         at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:153)
         - locked <5ca44b18> (a weblogic.kernel.ExecuteThread)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:172)
    "ExecuteThread: '24' for queue: 'weblogic.kernel.Default'" daemon prio=10 tid=00078c98 nid=37 lwp_id=23967 runnable [0x574e4000..0x574e34c0]
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:134)
         at oracle.net.ns.Packet.receive(Unknown Source)
         at oracle.net.ns.DataPacket.receive(Unknown Source)
         at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
         at oracle.net.ns.NetInputStream.read(Unknown Source)
         at oracle.net.ns.NetInputStream.read(Unknown Source)
         at oracle.net.ns.NetInputStream.read(Unknown Source)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:971)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:941)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:432)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:180)
         at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:783)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1027)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2885)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2976)
         - locked <5d4c8b68> (a oracle.jdbc.driver.T4CCallableStatement)
         - locked <5d01e348> (a oracle.jdbc.driver.T4CConnection)
         at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
         - locked <5d4c8b68> (a oracle.jdbc.driver.T4CCallableStatement)
         - locked <5d01e348> (a oracle.jdbc.driver.T4CConnection)
         at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:102)
         at com.jnj.jjprd.compoundrequester.dataobjects.DeliveryDO.creatOrderOnSubmitRequest(DeliveryDO.java:157)
         at com.jnj.jjprd.compoundrequester.servlets.RequestConfirmedServlet.processInitialScreen(RequestConfirmedServlet.java:264)
         at com.jnj.jjprd.compoundrequester.servlets.RequestConfirmedServlet.service(RequestConfirmedServlet.java:115)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:322)
         at com.jnj.jjprd.compoundrequester.servlets.AbstractRequesterServlet.forwardTo(AbstractRequesterServlet.java:140)
         at com.jnj.jjprd.compoundrequester.servlets.RequestInformationServlet.processSubmitRequest(RequestInformationServlet.java:312)
         at com.jnj.jjprd.compoundrequester.servlets.RequestInformationServlet.service(RequestInformationServlet.java:102)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    "ExecuteThread: '23' for queue: 'weblogic.kernel.Default'" daemon prio=10 tid=00078b30 nid=36 lwp_id=23966 runnable [0x57565000..0x575644c0]
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:134)
         at oracle.net.ns.Packet.receive(Unknown Source)
         at oracle.net.ns.DataPacket.receive(Unknown Source)
         at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
         at oracle.net.ns.NetInputStream.read(Unknown Source)
         at oracle.net.ns.NetInputStream.read(Unknown Source)
         at oracle.net.ns.NetInputStream.read(Unknown Source)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:971)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:941)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:432)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:180)
         at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:783)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1027)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2885)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2976)
         - locked <7a880610> (a oracle.jdbc.driver.T4CCallableStatement)
         - locked <7a880958> (a oracle.jdbc.driver.T4CConnection)
         at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4103)
         - locked <7a880610> (a oracle.jdbc.driver.T4CCallableStatement)
         - locked <7a880958> (a oracle.jdbc.driver.T4CConnection)
         at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:102)
         at com.jnj.jjprd.compoundrequester.dataobjects.DeliveryDO.creatOrderOnSubmitRequest(DeliveryDO.java:157)
         at com.jnj.jjprd.compoundrequester.servlets.RequestConfirmedServlet.processInitialScreen(RequestConfirmedServlet.java:264)
         at com.jnj.jjprd.compoundrequester.servlets.RequestConfirmedServlet.service(RequestConfirmedServlet.java:115)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:322)
         at com.jnj.jjprd.compoundrequester.servlets.AbstractRequesterServlet.forwardTo(AbstractRequesterServlet.java:140)
         at com.jnj.jjprd.compoundrequester.servlets.RequestInformationServlet.processSubmitRequest(RequestInformationServlet.java:312)
         at com.jnj.jjprd.compoundrequester.servlets.RequestInformationServlet.service(RequestInformationServlet.java:102)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    vs
    Edited by sw_vishal at 09/25/2007 10:29 AM

  • How can I convert a mysql sql script to a oracle sql script

    Hi,
    We have a bunch of tables with data running on a mysql server.
    This should now be moved to an oracle 9 db.
    are there any tools to convert the import script of a mysql db
    to a format of the sql script that work for oracle ?
    Thanks
    Michael

    Oracle has a tool called Migration Toolbench, which supports MySQL 3.22 and 3.23:
    http://otn.oracle.com/tech/migration/workbench/content.html
    On this same topic, I was wondering if anybody has tried migrating from PostgreSQL to Oracle 9i. The workbench doesn't seem to support it, and feeding a pg_dump file directly into SQL*Plus is not working.

  • Problem with Oracle deadlocks

    We are having severe problems with deadlocks in Oracle. We have a web-based student online course registration system that gets hit hard at the precise minute registration starts, then proceeds to generate between 100-200 trace files within 10 minutes, bringing the database to a near standstill. Every trace file contains the same SQL statement and I tried reorganizing the table referenced in the statement, allocating 100 initrans slots. This did not help at all. The application vendor is looking at their PL/SQL source, but denies that they have a problem. Does anyone have any suggestions?
    Any input would be much appreciated,
    Regards,
    Don Morse

    To solve deadlocks, the developer must ensure that in every transaction of the application, the tables are updated in same order.
    That is:
    Transaction 1
    UPDATE T1
    UPDATE T2
    COMMIT
    Transaction 2
    UPDATE T1
    UPDATE T2
    COMMIT
    And also, if you have multiple updates to the same table across the code of your application, they must be in the same order also.
    Transaction 1
    UPDATE T1 WHERE COL=1
    UPDATE T1 WHERE COL=2
    COMMIT
    Transaction 2
    UPDATE T1 WHERE COL=1
    UPDATE T1 WHERE COL=2
    COMMIT
    If you cant be sure of the order, you can make more frecuent COMMIT, but be sure the database doesn't go inconsistent.

  • Oracle deadlock - how to use "synchronised" keyword in a transaction?

    Hi,
    I use WL6.1 SP4, Oracle 8.1.6, with some Java objects which execute a
    lot
    of SQL queries (mixed update, insert and select) using plain JDBC
    calls,
    and Weblogic connection pools. These objects are called by servlets.
    I experienced recently deadlocks when two users call the object at the
    same
    time (See error below).
    I execute the queries using "synchronized" keyword in the following
    way:
    synchronized (this)
    conConnection.setAutoCommit(false);
    executeTransaction(myStatement);
    conConnection.commit();
    executeTransaction is overriden in sub-classes and is the method which
    executes
    all the queries.
    It calls methods in other objects. These methods are not declared as
    synchronized.
    1) Should they?
    2) Should I use the keyword "synchronized" in another way?
    3) This part of code is also called when I do only "select"
    statements. I guess
    it should only be synchronized when we do "update" and "insert" which
    could lead
    to a deadlock?
    4) Do you have any idea why this deadlock occurs as I use the
    "synchronized"
    keyword, and one thread should wait until the other one has finished?
    Thanks for any idea,
    Stéphanie
    ----------------- error:
    <ExecuteThread: '4' for queue: 'default'> <> <> <000000> <SQL request
    sent to database: UPDATE PARTICIPANT par SET par.PARTICIPANTLASTRANK =
    4 WHERE par.IDPARTICIPANT = 8983566>
    <ExecuteThread: '11' for queue: 'default'> <> <> <000000> <SQL request
    sent to database: UPDATE PARTICIPANT par SET par.PARTICIPANTLASTRANK =
    6 WHERE par.IDPARTICIPANT = 8983570>
    ORA-00060: deadlock detected while waiting for resource
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2047)
         at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2709)
         at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:796)
         at weblogic.jdbc.pool.Statement.executeUpdate(Statement.java:872)
         at weblogic.jdbc.rmi.internal.StatementImpl.executeUpdate(StatementImpl.java:89)
         at weblogic.jdbc.rmi.SerialStatement.executeUpdate(SerialStatement.java:100)
         at bfinance.framework.EDBBLBean.executeSQL(EDBBLBean.java:299)

    Hi Stepanie,
    I'd try to group update statement together. Usually it helps.
    Regards,
    Slava Imeshev
    "Stephanie" <[email protected]> wrote in message
    news:[email protected]...
    Thanks for your answer.
    In the case you describe, is there a way to ensure that tx-2 waits for
    tx-1
    to be finished before beginning?
    My transaction which causes the problem is the following (simplified):
    UPDATE tableA SET islast=0 WHERE externalid=myid;
    for (int i=0; i< aVector.size(); i++) {
    INSERT INTO tableA (id, islast, ranking, externalid) (SELECT
    SEQ_tableA.nextval, 1, 0, myid);
    UPDATE tableA SET ranking = /*calculated ranking */
    WHERE externalid=myid AND islast=1;
    UPDATE tableB ....
    commit;
    tx-1 and tx-2 execute this transaction at the same time. tx-1 begins
    The deadlock appears when tx-2 executes the second UPDATE tableA
    query.
    I don't see how I can avoid to execute these two update queries, so if
    I can find another way to prevent deadlock, it would be great!
    Stéphanie
    Joseph Weinstein <[email protected]_this> wrote in message
    news:<[email protected]_this>...
    Stephanie wrote:
    Hi,
    I use WL6.1 SP4, Oracle 8.1.6, with some Java objects which execute a
    lot
    of SQL queries (mixed update, insert and select) using plain JDBC
    calls,
    and Weblogic connection pools. These objects are called by servlets.
    I experienced recently deadlocks when two users call the object at the
    same
    time (See error below).Hi. The error you are getting isn't necessarily from a lack ofsynchronization
    of your java objects. It has to do with the order in which you accessDBMS
    data. You are getting ordinary DBMS deadlocks, which are caused when
    two DBMS connections each have a lock the other wants, in order toproceed.
    The DBMS will quickly discover this and will kill one transaction inorder to
    let the other one proceed:
    time 0: tx-1 and tx-2 have started.....
    time 1: tx-1: update tableA set val = 1 where key = 'A'
    time 2: tx-2: update tableB set val = 2 where key = 'B'
    time 3: tx-1: update tableB set val = 1 where key = 'B' (waitsbecause tx-2 has the row
    locked)
    time 4: tx-2: update tableA set val = 2 where key = 'A' (waitsbecause tx-1 has the row
    locked)
    This is a deadlock. The solution is to organize your application code sothat every
    transaction accesses the data in the same order, eg: update tableAfirst, then update tableB.
    This will prevent deadlocks.
    Joe Weinstein at BEA
    I execute the queries using "synchronized" keyword in the following
    way:
    synchronized (this)
    conConnection.setAutoCommit(false);
    executeTransaction(myStatement);
    conConnection.commit();
    executeTransaction is overriden in sub-classes and is the method which
    executes
    all the queries.
    It calls methods in other objects. These methods are not declared as
    synchronized.
    1) Should they?
    2) Should I use the keyword "synchronized" in another way?
    3) This part of code is also called when I do only "select"
    statements. I guess
    it should only be synchronized when we do "update" and "insert" which
    could lead
    to a deadlock?
    4) Do you have any idea why this deadlock occurs as I use the
    "synchronized"
    keyword, and one thread should wait until the other one has finished?
    Thanks for any idea,
    Stéphanie
    ----------------- error:
    <ExecuteThread: '4' for queue: 'default'> <> <> <000000> <SQL request
    sent to database: UPDATE PARTICIPANT par SET par.PARTICIPANTLASTRANK =
    4 WHERE par.IDPARTICIPANT = 8983566>
    <ExecuteThread: '11' for queue: 'default'> <> <> <000000> <SQL request
    sent to database: UPDATE PARTICIPANT par SET par.PARTICIPANTLASTRANK =
    6 WHERE par.IDPARTICIPANT = 8983570>
    ORA-00060: deadlock detected while waiting for resource
    at
    oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
    atoracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)
    atoracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093)
    atoracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2047
    atoracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)
    atoracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
    :2709)
    atoracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:796)
    atweblogic.jdbc.pool.Statement.executeUpdate(Statement.java:872)
    atweblogic.jdbc.rmi.internal.StatementImpl.executeUpdate(StatementImpl.java:89
    atweblogic.jdbc.rmi.SerialStatement.executeUpdate(SerialStatement.java:100)
    at bfinance.framework.EDBBLBean.executeSQL(EDBBLBean.java:299)

  • How to create an oracle integration script?

    Hi All,
    I need to load data into FDM directly from Oracle database and i`m trying to use the Integration Script.
    the Script that i`m using is:
    Dim objSS          'ADODB.Connection
    Dim strOra           'SQL string
    Dim rs           'Recordset
    Dim rsAppend      'tTB table append rs object
    'Initialize objects
    Set cnSS = CreateObject("ADODB.Connection")
    Set rs = CreateObject("ADODB.Recordset")
    Set rsAppend = DW.DataAccess.farsTableAppend(strWorkTableName)
    cnss.open "Provider=ORAOLEDB.ORACLE;Data Source=<data source name>;User ID=<user id name>;password=<password>"
    However when i run the script on WebClient i got the message:
    ERROR:
    Code............................................. -2147217887
    Description...................................... Multiple-step operation generated errors. Check each status value.
    At line: 43
    Procedure........................................ clsImpProcessMgr.fExecuteImpScript
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 12780
    IDENTIFICATION:
    User............................................. <<User Name>>
    Computer Name.................................... <<Server>>
    App Name......................................... <<App Name>>
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... <<DB Name>>
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    Somebody have an idea about this error?
    Thanks in advance!

    Follow the entire Script:
    Function Teste(strLoc, lngCatKey, dblPerKey, strWorkTableName)
    Dim objSS          'ADODB.Connection
    Dim strOra           'Ora string
    Dim rs           'Recordset
    Dim rsAppend      'tTB table append rs object
    'Initialize objects
    Set cnSS = CreateObject("ADODB.Connection")
    Set rs = CreateObject("ADODB.Recordset")
    Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
    cnss.open "Provider=ORAOLEDB.ORACLE;Data Source=<<Data Source Name>>;User ID=<<user id>>;password=<<password>>"
    strOra = "Select Col1,Col2,Col3,Col4,Col5 "
    strOra = strOra & "FROM TB_Test"
    'Get data
    rs.Open strOra, cnSS
    'Check for data
         If rs.bof And rs.eof Then
              RES.PlngActionType = 2
    RES.PstrActionValue = "No Records to load!"
              Exit Function
         End If
    'Loop through records and append to tTB table in location's DB
         If Not rs.bof And Not rs.eof Then
              Do While Not rs.eof
              rsAppend.AddNew
                   rsAppend.Fields("PartitionKey") = RES.PlngLocKey
                   rsAppend.Fields("CatKey") = lngCatKey
                   rsAppend.Fields("PeriodKey") = dblPerKey
                   rsAppend.Fields("DataView") = "YTD"
    'The next one is the line 43
                   rsAppend.Fields("Amount") = rs.fields("Col1").Value
                   rsAppend.Fields("Account") = rs.fields("Col2").Value
                   rsAppend.Fields("Entity") = rs.fields("Col3").Value
                   rsAppend.Fields("UD1") = rs.fields("Col4").Value
                   rsAppend.Fields("UD2") = rs.fields("Col5").Value
              rsAppend.Update
              rs.movenext
              Loop
         End If
              'Close Record Sets
              rs.close
              rsAppend.close
    'Assign Return value
    Teste = True
    End Function
    Edited by: Guerino on May 9, 2011 2:04 PM

Maybe you are looking for

  • Can i transfer money from my austrian account to the danish account?

    HI! Can i transfer money from my austrian account to a new danish account - it says, that I still have money on the austrian account and therefore I can not switch to the danish account (country)

  • Download and upload speed per ssid in air-sap2602.

    Dear team, How to limit the download and upload speed per ssid in air-sap2602 ? SSID =5MB download + 1upload SSID= 30MB download + 5upload Regards

  • Commit in IDOC inbound

    Hi experts ! I m facing a very strange issue ! My function module, which has a BDC, for incoming idoc doesnt commit work on creation of delievery schedule lines by me38. But I tried a test program which uses the same BDC code and it does commit work

  • Clear Project Cache option .cpd

    Hi, I'm using RH8. When my project was taking forever to open up, from past experience I knew it was due to a large .cpd file. Sure enough, it was up to 11 MB and after deleting it, the new .cpd file is only about 1 MB now. Opens much faster now. Rob

  • Oracle 9i Installation : svrmgr missing

    Hello, I downloaded Oracle 9i database from OTN. After installation I wanted to create a database since I had not ticked on any pre- defined databases which Oracle had supplied. When I ran command svrmgr I was stumped to find that it came with error.