A stand-alone-Dead lock Transaction

HI Guys ,
I was Reading about Autonomous Transaction from this link  http://www.orafaq.com/node/1915.
I got doubt in the following code .How the dead lock happened .

Procedure p2 is independent and committed ,so what is the reason for the deadlock here .
can any one me explain me why it went it deadlock situation




create table t4 (a number)
/

insert into t4 values (1)
/

commit
/

create or replace
procedure p2
as
   pragma autonomous_transaction;
begin
   update t4 set a = 2;
   commit;
end;
/
show errors

create or replace
procedure p1
as
begin
   update t4 set a = 3;
   p2;
   commit;
end;
/
show errors

exec p1

SQL> exec p1
BEGIN p1; END;

*
ERROR at line 1:
ORA-00060: deadlock detected while waiting for resource
ORA-06512: at "KEVIN.P2", line 5
ORA-06512: at "KEVIN.P1", line 5
ORA-06512: at line 1
Thank you
Vijay

Published by: vijay539 on May 10, 2010 12:05

Published by: vijay539 on May 10, 2010 12:06

Procedure P1 updates table t4 == put the lock on the table, and then calls the procedure P2.
Procedure P2 tries to update the table t4, but it is locked by the P1 procedure.
P2 will have to wait for P1 to unlock procedure (commit or rollback) table t4, but...
This would never happen, that P2 is called from P1 before validation - where a Dead lock...

HTH
Thomas

Tags: Database

Similar Questions

  • Said updated stand-alone Windows Setup program do not apply to this system.

    I tried to download and reinstall the stand-alone windows installer, but get the message that no update available for this system or this download does not apply to this system.  Standalone Installer, I think it's a system XP instead of Vista Home Premium 32 bits of the system. How can I uninstall the stand-alone Windows Installer and install one for Vista?   Is it important that I have a desktop computer that has XP on it?  I also rename the laptop with the Vista program to my name. Is it relevant. I tried to reverse the name

    Hi Rockyakauke25,
     
    Welcome to Microsoft answers community forum!

    This day stanalone you trying to install?

    Try to install the update in safe mode.

    Try to install the update in safe mode and see if you are able to install. Safe mode starts Windows with a limited set of files and drivers. Startup programs do not work in safe mode, and only the basic drivers needed to start Windows are installed.

    To start in safe mode, follow the steps below:

    1. remove all floppy disks, CDs and DVDs from your computer and restart your computer.

    Click the Start button, click the arrow next to the button lock and then click on restart.

    2   , do one of the following:

    ·         If your computer has a single operating system installed, press and hold the F8 key as your computer restarts. You need to press F8 before the Windows logo appears. If the Windows logo appears, you need to try again by waiting until the Windows logon prompt appears, and then stop and restart your computer.

    ·         If your computer has more than one operating system, use the arrow keys to select the operating system you want to start in safe mode, and then press F8.

    3. in the display Advanced Startup Options , use the arrow keys to select the option of safe mode you want and press ENTER. For more information about the options, see Advanced startup options (including safe mode).

    4 log your computer with a user account with administrator rights.

    Install the prerequisite updates before applying a new update that is installed sp 1 for a successful installation sp 2.

    See the link for download of SP1 and installation

    http://TechNet.Microsoft.com/en-us/Windows/bb738089.aspx

    Try to run the system update readiness tool before installing the SP1 or SP2.
     
    The system update tool:
    http://support.Microsoft.com/default.aspx/KB/947821
     
    A software update is available for the Windows Vista installation:
    http://support.Microsoft.com/kb/937287
     
    Then download and install Service Pack 2:
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=a4dd31d5-F907-4406-9012-a5c3199ea2b3&displaylang=en
     
     
    Hope this information helped!

    Thank you, and in what concerns:
    Aziz Nadeem - Microsoft technical support.
    Visit our http://social.answers.microsoft.com/Forums/en-US/answersfeedback/threads/ Microsoft answers feedback Forum and let us know what you think.

  • Cannot invoke the stubborn task in adf application flow after deployment on stand-alone WSL

    Hello.

    We have developed application in jdeveloper 12.1.3 using ADF workflows and *.jsp (try us and *.jspx also) pages.

    On integrated weblogic application server works, but after successfully deployment on stand-alone WLS (ver. 12.1.3, demployment mode domain) with ADF runtime 12.1.3, we cannot call activity of workflow (bounded task flows) on click of a button. If we call button click on the page of the progress of the task without terminals began that it works well.

    On the server we have deployments:

    ADF. Oracle.businesseditor (1.0,12.1.3.0.0)

    ADF. Oracle.Domain (1.0,12.1.3.0.0)

    ADF. Oracle.domain.WebApp (1.0,12.1.3.0.0)

    consistency-transaction-rar

    Application of the DMS (12.1.3.0.0)

    EM

    emagentsdkimplpriv_jar (11.2.0.1.0,12.1.0.3.0)

    emagentsdkimpl_jar (11.2.0.1.0,12.1.0.3.0)

    emagentsdk_jar (11.2,12.1.0.3.0)

    EMAS

    EMCORE

    emcoreclient_jar

    emcorecommon_jar

    emcoreconsole_jar

    emcoreintsdk_jar (11.2.0.1.0,12.1.0.0.0)

    emcorepbs_jar

    emcoresdkimpl_jar (11.2.0.1.0,12.1.0.0.0)

    emcoresdk_jar (11.2.0.1.0,12.1.0.0.0)

    emcore_jar

    em_core_ppc_pojo_jar

    em_sdkcore_ppc_public_pojo_jar

    JSF (2.1, 2.1.7 - 01-)

    jsr311-API (1.1.1,1.1.1)

    JSTL (1.2,1.2.0.1)

    log4j_jar (1.3,1.2.15)

    ODL.clickhistory (1.0,12.1.3)

    ODL.clickhistory.WebApp (1.0,12.1.3)

    OHW - RCF (5,12.1.3.0.0)

    OHW - uix (5,12.1.3.0.0)

    Oracle.ADF.dconfigbeans (1.0,12.1.3.0.0)

    Oracle.ADF.desktopintegration (1.0,12.1.3.0.0)

    Oracle.ADF.desktopintegration.Model (1.0,12.1.3.0.0)

    Oracle.ADF.Management (1.0,12.1.3.0.0)

    Oracle.BI.ADF.Model.slib (1.0,12.1.3.0.0)

    Oracle.BI.ADF.View.slib (1.0,12.1.3.0.0)

    Oracle.BI.ADF.WebCenter.slib (1.0,12.1.3.0.0)

    Oracle.BI.composer (11.1.1,0.1)

    Oracle.BI.jbips (11.1.1,0.1)

    Oracle.dConfig - infra (2.0,12.1.3)

    Oracle.jrf.System.Filter

    Oracle.jsp.Next (12.1.3,12.1.3)

    Oracle.pwdgen (2.0,12.1.3)

    Oracle.SDP.client (2.0,12.1.3)

    Oracle.WebCenter.composer (2.0,12.1.3)

    Oracle.WebCenter.Skin (2.0,12.1.3)

    Oracle.WSM.Console.Core.View (1.0,12.1.3.0)

    Oracle.WSM.seedpolicies (2.0,12.1.3)

    orai18n-ADF (11,11.1.1.1.0)

    OWASP. ESAPI (2.0,12.1.3)

    State-Management-Provider-Memory-rar-12.1.3

    UIX (11,12.1.3.0.0)

    webapp

    WebApp1

    wls_jrf

    wls_reconfig_jrf_12

    WSIL-wls (12.1.3.0.0)

    +++++++++++

    Our problem:

    Of view1.jspx on click commandButton1, we cannot call taskFlowCall1.

    During the click on we see view1.jspx refreshes, but should be called view2.jspx.

    +++++++++++

    Sources

    -adfc_config.xml-

    <? XML version = "1.0" encoding = "windows-1251"? >

    " < adfc-config xmlns =" http://xmlns.Oracle.com/ADF/controller "version ="1.2"> "

    < view id = "View1" >

    View1.jspx < page > < / print this page >

    < / view >

    < task-flows-call id = "taskFlowCall1" >

    <-flow-reference to tasks >

    /Web-INF/taskFlowCall1.XML < document > < / document >

    taskFlowCall1 < id > < /ID >

    < / task-flow-reference >

    < / task flows-call >

    < rule of flow control = '__1' id >

    View1 < of-activity-id > < /-activity-id >

    < control-flow-case id = "__2" >

    TFC < from outcome > < / de-results >

    taskFlowCall1 < to-activity-id > < / to-activity-id >

    < / control-flow-case >

    < / control-flow-rule >

    < / adfc-config >

    -taskFlowCall1.xml-

    <? XML version = "1.0" encoding = "windows-1251"? >

    " < adfc-config xmlns =" http://xmlns.Oracle.com/ADF/controller "version ="1.2"> "

    < - flow - the definition of task id = "taskFlowCall1" >

    View2 < by default-activity > < / default activity >

    < transaction >

    < new-transaction / >

    < / transaction >

    < data-control-scope >

    < shared / >

    < / data-control-scope >

    < view id = "view2" >

    View2.jspx < page > < / print this page >

    < / view >

    < id of task-flow-return = 'Cancel' >

    < result >

    cancellation of < name > < / name >

    < rollback / >

    < / results >

    < / task-flow-back >

    < task-flows-call id = "taskFlowCall2" >

    <-flow-reference to tasks >

    /Web-INF/taskFlowCall2.XML < document > < / document >

    taskFlowCall2 < id > < /ID >

    < / task-flow-reference >

    < / task flows-call >

    < rule of flow control = '__1' id >

    View2 < of-activity-id > < /-activity-id >

    < control-flow-case id = "__2" >

    Cancel < from outcome > < / de-results >

    cancellation of < to-activity-id > < / to-activity-id >

    < / control-flow-case >

    < control-flow-case id = "__3" >

    tfc2 < from outcome > < / de-results >

    taskFlowCall2 < to-activity-id > < / to-activity-id >

    < / control-flow-case >

    < / control-flow-rule >

    < / task-flow-definition >

    < / adfc-config >

    -view1.jspx-

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1"xmlns:f =" " http://Java.Sun.com/JSF/core "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "xmlns:h =" http://Java.Sun.com/JSF/html ">

    < jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >

    < f: view >

    < af:document title = "view1.jspx" id = "d1" > "

    < af:form id = "f1" >

    < h:commandButton value = "commandButton1" id = "cb1" action = "tfc" / >

    < / af:form >

    < / af:document >

    < / f: view >

    < / jsp:root >

    ++++++++++++

    Pls help me.

    We found a solution to the problem yourself.

    Our solution:

    On each page that uses the activity to call a workflow in the bindings, we added the executor of the ADF task flows Bindings type - taskFlow.

    The property is set (in my example):

    ID - taskFlowCall1

    taskFlowId - /WEB-INF/taskFlowCall1.xml#taskFlowCall1

    That's all.

  • Lightroom 6 wheel of death (stand-alone version on Mac)

    I had the stand-alone version of LR 6 May 24 and it worked for a while. Now I'm dead wheel no matter if I try to use the existing catalog or open a new one. Absolutely no answer other than the start window and the wheel of detah.

    We have uninstalled the previous version and installed it again. That solved the problem. For unknown reasons.

  • Stupid question: Acrobat X 1 exists as a stand-alone product?

    Total newbie.  Please forgive me.  I need Acrobat to a writing project.  I can't find a simple purchase and download option for a basic stand-alone package.  I've never run in so many dead ends, trying to make a simple purchase. Everything seems to be tied up in a sort of membership cloud demanding monthly payments.  I want just a program that can edit pdf files.  Nothing complicated.  Is this even exist?  Thanks in advance for pointing me in the right direction.

    Hi dinsdale,.

    Yes Acrobat 11 exists as a standalone product for US $449.00

    You can buy it from: price | Adobe Acrobat XI

    Kind regards

    Rave

  • I need the Java Player for firefox on a stand-alone computer without internet access. I have internet access on another computer. How can I do this?

    I have a stand-alone computer (no internet access) with firefox to run the Java Player. I have internet access on another computer in order to download files and hover over things to the stand-alone computer to install. That do and where can I download and how I install on the stand-alone computer.

    Thank you

    Leroy

    Hi, to get the Offline Installer that you can use on the computer without internet access, please visit https://java.com/en/download/help/windows_offline_download.xml

  • How can I get Web sites to open in the stand-alone windows instead of all stacked in a single window?

    If I have a window open and click a link to open another, they pile up in one window instead of opening a new stand-alone window. How can I change this?

    Open options
    Tabs
    Top box uncheck the box which

  • How to record a loop of garageband as a stand alone on my ipad pro?

    Once I recorded a song, I want to save it as a file of music stand alone and keep it on my iPad pro. How do I do that?

    If I try to export to iTunes, it is not found in my music application.

    Hi Marco_Polo,

    Thank you for using communities Support from Apple.

    I see you want to record a song that you created in GarageBand on your iPad.  I don't know what application you are trying to save it to, or if it is a ring, then I suggest that you look through the information provided in the link below for your different sharing options.

    Sharing GarageBand songs

    Have a good.

  • I need to stop a download of the query, I thought a stand-alone application but turns require a higher level (FCPX) as a 'parent' and I do not who have, or want to buy.

    I need to stop a download of the query, that I thought a stand-alone application but turns require a higher level (FCPX) as a 'parent' and I do not have that, or I want to buy it.

    Motion IS a stand-alone application. It is mainly designed to make effects for Final Cut Pro X, but it is not necessary to have with FCPX nor is it necessary to have FCPX to create projects for other purposes. When you open the query, simply select project of work outside the FCPX motion. You can save regular projects of Motion anywhere on your system.

  • Problems with MAX tasks on different stand-alone

    Hallo!

    I have problems with my MAX-tasks and my V12 Dasylab on different stand-alone.

    I have 3 devices on the first PC.

    OR USB-6009 dev1

    NEITHER USB-6210 dev2

    NEITHER USB-6501 dev3

    Now, I had programmed a file Dasylab which uses the device 2 and device 3. Everythink worked fine. I exported my MAX configuration for unit 2 and unit 3 and imported on the second PC. But that Dasylab was not able to find the right tasks for my program on the second PC, even if MAX everythink that went well. The only solution was to delete all tasks and create them again. But then I tried to open the program stored on my first PC again and I had the same problem, Dasylab was not able to find the right tasks, only solution was to remove the stains and create them again. I tried to reset the configuration of my Dasylab with the "Synchronize with MAX-configuration" option, but it wasn't succsessful. DASYLab gave an errormessage, not mentioning not what exactly is the problem.

    Can anyone help?

    Thank you very much and have a nice day.

    Hilby

    Hallo Hilby,

    I think it can be more that can be solved on the Forum of NOR. I think you should contact your local dealer and ask for help directly.

  • Stand-alone application with LabView 7.0 get error cannot find DAQmx clear task.vi

    I tried to create a stand alone vi with the Build Application or shared Library (dll) in LabVeiw 7.0

    When I put it on another PC to test it I get the error "cannot find DAQmx clear task.vi.

    the other PC also has 7.0 and 8.1 DAQmx Labview.

    I think my problem is in the source tab, where you are supposed to add dynamic vi and support, I have search the forums and database of nor and have not found a solution.

    Hi LabTech09,

    When you run the executable file on the other computer, that's when you get this error?  You have the same exact versions of DAQmx and LabVIEW on both computers?  Is the dialog box allow you to navigate to the clear task.vi DAQmx?  If so, you can find these screws in C:\Program NIUninstaller Instruments\LabVIEW 7.0\vi.lib\DAQmx\configure\task.llb.  The executable runs on the development computer (the machine, it was compiled on)?

  • Stand-alone labview application (.exe file) does not run correctly

    Hi all

    I'm doing a labview application only to run on another computer (I never did this before).

    I went through the tools-> build application prompts and was able to build an exe file.

    the program is supposed to control a power meter and measures of power, then save them in a text file.

    When I run the exe, on the same computer, I compiled the exe, the program generates a text file to save data to, but he cannot communicate with the electricity meter.

    There are a few screws Sub and a dll file that are used to communicate with the electricity meter. Would it be possible that I am not say labview to correctly

    include these files when I create an executable?

    What are some common problems that arise when building stand alone applications that could be cause of my problems?

    And no one knows of any good tutorials on building applications stand alone in labview, other than the help files OR?

    Thanks for your help,

    Also, if you used the VISA, include the runtime with your Installer.

  • binary and generations of stand alone files

    Hello: I have an application that is running in 2014 of LabView which creates and reads several tables 3D (25 X 8 X 6) to and from binary files. Works very well in the development environment. Problem is that now I need to create a (stand-alone) version for the client. Binary file functions do not seem to work. Any help or advice would be apprciated.

    Yes, a very common error is to save files with a path relative to the VI that saves the file. A more portable solution for no-LabVIEW files is to define paths to compared to the output of the function of the Application directory.

    In the development environment, it returns the path where the project file. In the executable file it returns the path where the executable.

    Mike...

  • cRIO stand alone running

    Hello world

    I am beginner in LabVIEW and LabVIEW FPGA and RT. student internship that I work this month on FPGA project and my goal is to schedule a stand-alone on cRIO application.

    I got a CompactRIO 9002 with an AIO 9215 analog input module and use LabVIEW 13. This cRIO Gets an ethernet and a RS323 port.

    My request is to:-code FPGA by ethernet

    -acquire a signal input of the NI 9215 module

    -Send the data measured on a device (first on hyperterminal on PC and on an SD card or a storage device) by the port COM (RS232)

    My development was to: 1. create a new FPGA project

    2 code for the target FPGA vi and compile (InOut.vi)

    3 code another vi to run the cRIO from my computer (OpenCloseFPGA)

    At this stage, everything goes well and works and I followed the signal measured on OpenCloseFPGA.vi and my Pc Hyperterminal.

    Can I track this topic 'http://zone.ni.com/reference/en-XX/help/370622L-01/lvrthowto/rt_building_rt_app/' on the creation and deployment of a stand-alone application in real time. But my RT generated and deployed application nothing happens. I followed other tutorials on standalone RT but I still stuck...

    Could someone give me any tips or tutorials to help me?

    I found the solution, there is a mismatch and a mistake in my project.

    First, I use a cRIO 9002 and in building'step to unplugging it SSE2 option in "Advanced dialog box.

    See this topic.

    The second was a mistake from myself, I give an ethernet address to RT host that cannot run in a standalone application (wireless).

    Thank you for all your help.

  • stand alone compact rio

    Hi to everyone!

    I am a student of the University and for my thesis, I use a COMPACT RIO with neither 9205 and gps module, some measures aboard an eletric car, measures will be saved to a TDMS file in the RIO COMPACT by a stand alone configuration and without connection to a pc.

    The compact rio will begins with the car and it will go off with him also.
    So I have a question, how can I stop the VI within the CRIO before turning off the car?  or in TDMS data will be saved in the same way without close the VI within the CRIO before turning off the car?

    Thank you

    Hello antoniolc!

    There is no way of knowing inside CompactRIO, if the system will be shut down.

    You must use an external signal to find out when your car will be stopped.

    Or you can use a multiple TDMS file and like it, just the last TDMS file will be unreadable. But you can probably read all previous TDMS files.

    Best regards.

Maybe you are looking for

  • On the opening of Firefox or to access a link, this not disply the url but watch "go to a Web site.

    Often the URL of a Web site is not displayed, but "Go to a Web site" is displayed in the address bar - even at the opening of my homepage. This makes it difficult if I need to reload the current page, which may have a very long address. This problem

  • SSD HARD drive cloning

    Hello everyone, I was wondering if anyone knows a quick and inexpensive way to clone my current hard drive to my new SSD.  The SSD, I is the EVO of 850 Samsung 250 GB internal 2.5 inch SATA III SSD flash disk. I thought that I could use as Carbon Cop

  • Motorcycle G2 Dual sim (non - LTE) - micro-SD card problem

    I use Moto G 2nd Gen XT 1068 Dual Sim (non-LTE phone) with Android ver 6.0 When using this phone with two sim cards(but without the micro SD card), if I insert a8/32 GB micro-SD card, sim #2 connection islost immediately and permanently. It does not

  • How to stop the dialogs from popping up randomly

    dialog boxes reappear, which stops at what I'm doing until I click on the mouse, which could let me progress or one another dialog box appears.  then you have to keep clicking on the mouse until the boxes are no longer appear.  These boxes could say

  • How to increase the font size on the modern UI for Dell coming 8 Pro

    Love the form factor of the device, but the font on the desktop and the modern user interface applications is too small to read. There seems to be a drop down to ' PCs and devices '/Display/' more Options ': change the size of the apps, text and othe