problem with the locking insert and delete between two linked tables help please.

Hi guys I have a problem with a table of locking in Oracle forms, but when I try in SQL happens here too many users. I was wondering if anyone can shed some light on this?

I created two scenerios one that works and is not based on the primary key and foreign key constraints (but one that works is not possible for us because it would mean change design table that we can not do).

I've hardcoded in 1127,1128 number to make it easier (in reality it is a sequence)

OK scenerio one (our scenerio)

two tables
 CREATE TABLE testSFLABPR 
   (     LABP_REF_IRN VARCHAR2(25 BYTE), 
     LABP_REF_REF VARCHAR2(30 BYTE), 
     LABP_REF_SL NUMBER(8,0), 
     LABP_CONFIG_ID NUMBER(8,0),
      CONSTRAINT PK_testLABPR_IRN_SL PRIMARY KEY (LABP_REF_IRN,LABP_REF_SL)
   ) ;

 CREATE TABLE testSFLABP 
   (     LABP_IRN VARCHAR2(25 BYTE), 
     LABP_OPNO NUMBER(3,0), 
     labp_no NUMBER(8,0),
      CONSTRAINT PK_testSFLABP PRIMARY KEY (LABP_IRN, LABP_OPNO, LABP_NO) ENABLE, 
      CONSTRAINT testFK_SFLABP_SFLABPR FOREIGN KEY (LABP_IRN,labp_no)
       REFERENCES TESTSFLABPR (LABP_REF_IRN,LABP_REF_SL) ENABLE
   ) ;
OK now session is done the following
DELETE FROM      testSFLABPR     WHERE   LABP_CONFIG_ID            = 1127;          
               
INSERT INTO testSFLABPR(
        LABP_REF_IRN,
        LABP_REF_SL,
        LABP_REF_REF,
        LABP_CONFIG_ID
        )
        VALUES
        (
        'SOPENSHELVING',
        1127,
        1127||'CF Route',
        1127
        );
        
INSERT INTO testSFLABP
      (
      LABP_IRN,
      LABP_OPNO,
      LABP_NO)
VALUES (
'SOPENSHELVING',
1,
1127);
session one remains in this State.

second session now does the following
DELETE     FROM testSFLABPR     WHERE   LABP_CONFIG_ID            = 1128;     
second session is now locked until a commit or rollback occurs.

If I run the exact scenerio even with only a primary key on the table without locks held
 CREATE TABLE testSFLABPR 
   (     LABP_REF_IRN VARCHAR2(25 BYTE), 
     LABP_REF_REF VARCHAR2(30 BYTE), 
     LABP_CONFIG_ID NUMBER(8,0),
      CONSTRAINT PK_testLABPR_IRN_SL PRIMARY KEY (LABP_REF_IRN)
   ) ;

 CREATE TABLE testSFLABP 
   (     LABP_IRN VARCHAR2(25 BYTE), 
     LABP_OPNO NUMBER(3,0), 
     labp_no NUMBER(8,0),
      CONSTRAINT PK_testSFLABP PRIMARY KEY (LABP_IRN, LABP_OPNO, LABP_NO) ENABLE, 
      CONSTRAINT testFK_SFLABP_SFLABPR FOREIGN KEY (LABP_IRN)
       REFERENCES TESTSFLABPR (LABP_REF_IRN) ENABLE
   ) ;
INSERT INTO testSFLABPR(
        LABP_REF_IRN,
        LABP_REF_REF,
        LABP_CONFIG_ID
        )
        VALUES
        (
        'SOPENSHELVING',
        1127||'CF Route',
        1127
        );
        
INSERT INTO testSFLABP
      (
      LABP_IRN,
      LABP_OPNO,
      LABP_NO)
VALUES (
'SOPENSHELVING',
1,
1127);
DELETE     FROM testSFLABPR     WHERE   LABP_CONFIG_ID            = 1128;
I hope I posted all the information that is relevant... version of DB were is Oracle Database 10g Release 10.2.0.3.0 - Production

Any help is appreciated...

Creating indexes on columns of the FK. Something like:

CREATE INDEX testFK_SFLABP_SFLABPR_IDX
ON testSFLABP(LABP_IRN,labp_no)
/

SY.

Tags: Database

Similar Questions

  • Equium L10: Problem with the main battery and battery RTC

    Hello

    I have the Toshiba Equium L10 and it is about 14 months old and I have problems with the battery and how much time it takes after a full charge. I also have problems with the RTC battery and an ERROR 0271: check date and time settings message when I turn on the laptop.

    Regarding the battery, I can fully charge it upward in about 3 hours, but when I start to use it, apparently in the last few hours around one and a half or so and then it needs to be recharged. I can have down for about 40 minutes and then turn it off and come back later or in a day or two. How long should I expect from a fully charged battery?

    About the batttery RTC, it really becomes a pain and I only started to get the message of the ERROR 0271 start-up, in recent weeks. I can charge the battery pack and then leave for a few days, but when I turn it on, I get the message ERROR 0271 on the date and time incorrect. Surely after a full charge, the RTC battery should last longer than a few days?

    The manual says that if the RTC battery is exhausted or becomes weak, you must charge the battery of the CCF for 24 hours, in a different part of this manual indicates between 24 and 48 hours, but how can load you for long when the sections concerning the charging battery pack status after charging the battery you unplug the power adapter because leaving connected will shorten the life expectancy of the Battery Pack. So, how we can charge the battery of the CCF for 24 to 48 hours if we shouldn't leave the AC adapter plugged in once the battery is charged - which is nearly three hours. Suggestions about these problems would be appreciated.

    Besides we all know that it is easy to change the CMOS/RTC battery in your desktop base unit, but is it easy to change in a Toshiba Equium L10?

    Concerning

    Brave0

    Hi Brave0,

    The normal recommendation for the CMOS (RTC) battery is to leave the laptop connected to the power supply at least 12 hours when the main battery is fully charged. The charging circuit is going to hijack the current to the load automatically RTC battery and no current will be forwarded to your main battery.

    Recommendation do not leave the power adapter is plugged in the main battery is fully charged is really only applicable to older laptops that used no batteries Li - ion and therefore they had to be completely discharged before recharging to avoid any effect 'memory' of the battery.

    With modern Li-ion batteries, it is quite safe to leave the battery when fully charged and still power the laptop from the AC adapter. The charging circuit will pass all the battery charge if it is fully charged.

    Kind regards

  • problem with the Finder - files and folders displaying incorrectly

    After acquiring a new iMac, I noticed a problem with the Finder - files and folders are displayed wrong (see table).

    This is what happens always after the files have been transferred from one folder to another. I was reminded of my days of using Mac OS in the 1980s when automatic setting of files was not so "automatic." I use Mac OS for decades and I don't remember the last time I had to think about GUI problems like that.

    Other problems in the graphical display of files and folders were introduced, such as when you have hundreds of files in a single folder, you end up deleting about 30 to 40 of them say in a particular section, and you end up with gaps of the ChartSpace where files used to be, that is the remaining files automatically rearrange themselves (fill in these gaps) - never. A week later, you open the folder, and the gap of GUI is still there.

    I decided to do a clean install of the operating system but nothing works.

    Is there some setting in Prefs I'm missing?

    Hi there highland99,

    Looks like your folder icons are not accommodating themselves automatically you plan to do. To me, this indicates that you have organize by the None value in the view menu. You can change the way files and folders are prepared automatically by clicking on view > reorganize by and selecting how you would like that fixed.

    Thank you for using communities of Apple Support.

  • I started having problems with the wireless mouse and the carpet of my laptop - Lenovo ThinkPad T420 mouse.

    Original title: right click on the mouse itself activating

    I borrowed a USB to a person at work and I started having problems with the wireless mouse and the carpet of my laptop - Lenovo ThinkPad T420 mouse. The left click of two devices works normally, however, sometimes she does not respond to clicks and it takes a few seconds to work. The left button was constantly starts to turn on, as if he was stuck. After that I hit Alt + Tab and modify windows it stops for a few moments and starts at a later date. I havo not found a specific condition or a combination of keys that may trigger the fault.

    I read a few posts on discussion forums, but all say that it could be a hardware problem, which I think is not, because both devices have the same problem and I'm sure it all started with the insertion of the borrowed memory stick. I scanned the readers to help Symantec's EndPoint Protection and installed Microsoft Security Essentials and performed a full scan, but found nothing. I even restored the system, but the problem remains.

    Should I get a different antivirus? How can I find the cause so I can find a better targeted solution?

    Try to install the drivers from this link and check.

    http://support.Lenovo.com/en_US/research/hints-or-tips/detail.page?&LegacyDocID=MIGR-77167

  • problem with the locking of the data

    Hi all

    I'm having a problem with the locking of the data.

    When I was trying to lock FY12 real periods. We cannot block periods. The consolidation runs perfect and all entities have the status of OK and all levels of the process are published, but when we try locking... We receive an error that "Consolidation, calculations or translations are required.

    Published by: user10926115 on October 16, 2012 10:34

    We had this problem with our application, as well. I don't know what causes it, but I can advise on our solution.

    In your grid lock, change your Value [None] member. Bear has the value and shows that all entities are in a State of OK or OK SC. However, when we go to the [none] member value, we see that some entities still need calculation. Select the groups that aren't in an OK OK SC or ND OK and select 'calculate '. Once solve us this problem in the [None] member value, we have no problems with locking or unlocking of these entities for periods that have been addressed.

    I would like to know if it works for you.

    Also, if someone else may be able to weigh in on the root of this problem, it would be certainly appreciated by more than just the op.

    Thank you!
    Scott

  • Hi.I download Microsoft Security Essentials and installation becomes a problem with the code: 0 x 80070643. If you can help me...

    Hi.I download Microsoft Security Essentials and installation becomes a problem with the code: 0 x 80070643. If you can help me...

    Support Microsoft Security Essentials forums
    http://social.answers.Microsoft.com/forums/en-us/category/MSE

    Can I install Microsoft Security Essentials [or any other anti-virus/anti-spyware application] to clean my already infected computer?
    http://social.answers.Microsoft.com/forums/en-us/msescan/thread/87058857-D181-4019-a723-efd9a49d9275

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • I get the message: Photoshop has encountered a problem with the display driver and has temporarily disabled GPU enhancements. Visit the Web site of the manufacturer of the video card for the latest version of the software.

    Photoshop has been giving me the warning:

    Photoshop has encountered a problem with the display driver and has temporarily disabled GPU enhancements. Visit the Web site of the manufacturer of the video card for the latest version of the software.

    Also other programs are affected.  I suspect a recent download of Adobe.  Can anyone HELP.

    No, it has nothing to do with updates of Adobe. There is a problem with your video card driver.

    Go directly to the Web site of the manufacturer of the GPU for updates (not Microsoft, not a System Builder).

  • How to solve the problem with the wacom tablet and the polygonal lasso tool. It does not work with a pen.

    How to solve the problem with the wacom tablet and the polygonal lasso tool. It does not work with a pen. I have install windows 10 and fresh, new drivers for wacom bamboo, could he makes problems or there is a problem of photoshop?

    It should do.  You use one of the buttons of pen maybe?  Just touching wheels with the pen with no buttons or modifier keys.  Press ENTER to close the selection.

    Personally I never use the lasso, Polygonal, but rather just the Lasso tool by using the ALT (Opt) to operate the Polygonal tool.  I also use the mouse instead of the Tablet for the selection of cutting edge.  It is a little too uncertain where the point will go when hovering the stylus above the image.

  • Problems with the radial tool and the gradient filter tool.

    I have suddenly problems with the radial tool and the tool filter degraded.  They are turning to my red while selection that the assets and not with the results of the any adjustments.  It is a new issue and out now where

    Does that help? Note that the tool must be active to see the check box.

    In addition, another reason, that you do not see it could be that the toolbar is not displayed. The toolbar display switch is to press the letter T.

  • Problem with the clone stamp and Healing brush, as soon as I use them I get a second image duplicated on top that move with the tool

    Problem with the clone stamp and Healing brush, as soon as I use them I get a second image duplicated on top that move with the tool

    You're apparently talking about Photoshop, so I'll pass this on Photoshop beginners forum.

  • Problems with the button "INSERT."

    Hello

    I have a problem in my homework. I need to do the following:

    "original numbers" table contains zeros. Let LabVIEW fill a table 'original numbers' by random integers from 10 to 90 at a rate 1 number/0.5 seconds by replacing each zero both from top down. (FACT)

    the user fills out 10numbers in a 'numbers inserted without doubt' table. The user then decides if it needs to change a generated number that he dislikes changing table "insert."

    Then he presses the button INSERT and a resulting table appears containing the items that the user has changed...

    This video could clarify:

    http://www.YouTube.com/watch?v=dDXo2ABqNM4

    The problem I face is the button INSERT. In the video, at the moment he is passed the program will continue until the last part.

    I enclose the vi. I think that there is no logical errors in the program except the INSERT box structure.

    Thank you.
    PS version is LabView2010; I get error when trying to save in the desolate previous versions.

    A.A.A. wrote:

    1. What does it mean to turn off automatic indexing?
    2. I did not understand why we used the palette table to remodel. What are the dimensions of the entry and exit? Very nice way how you did a length of 10 zero array. (I'll use when I guess that the solution to the problem of dimension.)
    3. Have you used the expectation of 100 ms to do not affect the performance of the computer or for another reason?
    4. How where you can link the table Palette not equal 'changed' numbers?
    5. Where did you get the button "replace"? I think that my button "insert" is the oppositeof he needs to do.

    Your code still has major flaws. Your questions are very basic, and I recommend doing a few tutorials.

    1. If wire you an array through a loop limit, the tunnel can have two modes (plain (solid square) or autoindexing (contains a small set of brackets)). In your case, you are autoidenxing the table 1 d, creating a 2D (two lines) table at the end of the first loop. You generate 10 x too much data! (create a KPI 10 x 10 on the 2D table to see what you actually do!). You can right click on a tunnel to switch between the modes of indexation. A simple tunnel carries the unchanged data in the table. A tunnel exit autoindexing, creates an array to a higher dimension, in your case a table 2D of a table 1 d with a new line by iteration. If you autoiindex one scalar value, you get an array of 1 d with a single element by iteration. A tunnel entrance of autoidexing does the opposite. If wire you a table 1 d to a loop FOR using autoindexing, you get a scalar by iteration and the loop FOR stops once the table runs out of elements. Is equavalent (with some differences) for wiring without autoidenxing, then using "index Board" with the index wired to [i] as you currently do. In your case, you should get the table 1 d since the shift of the first loop register, it has all the information (!) and autoidexing on the edge of the second loop off, and the result would be the same, except that you use only 10% of the memory.
    2. Once you are autoidexing to a loop limit, a number of loop iterations FOR will be determined by the size of the smallest table autoindexing. It would be a problem if you later want to modify the code to work on for example of 20 elements, because the other two tables in my code would force the loop to stop after 10 iterations. 'Resize the table' can be used for upholstery/trimming tables and in this case we are accommodating to the length on the main Board to ensure that the loop FOR does not stop prematurely. In your case, the berries to replace and switch are empty by default, if the loop would not turn at all unless you enter values. "resize the table" brings them up to the waist.
    3. Yes, you need a small wait inside the other case, or elsewhere in the while loop. Without delay, the essentially empty loop will turn millions of times per second, consuming all CPU in the process while doing nothing. No human can click a button with this kind of temporal resolution, so a wait 100 ms is not noticeable, but will fall CPU utilization to a negligible level. Your computer has dozens of processes running at any given time. Imagine how it would work if all programs would consume all CPU, they can possibly get?
    4. I compare two tables, and the result will be an array of Boolean. You are comparing only two scalars and you won't get a table. Also, you do not have the 'AND', because if the values are different, it must be true anyway. In your case, you will need to wear a similar table of Boolean in the table number, replacement of the elements as you go.
    5. A button is a button a button. There should be no difference. You can change the label text Boolean, default value, and mechanical action to match your needs.

    A.A.A. wrote:


    I had to initialize the tables full of zeroes but the way you did much simpler.  How to initialize them to zero? (where did you get the pallets? I've attached a picture clarifing my question.

    Here are the local variables. You don't need to find them in the palettes. Simply right click on a terminal and 'create the local variable '. Voila!

    (Local variables can serve as an indicator of reading or writing to a control. However, because they break the flow of data, you can generate dangerous racing conditions. They also force copies of additional data in the memory. Do not use them as "variables" in the text according to the code. Except for the interface initialization interactions and the user, they should be used sparingly and are rarely needed. In principle, my code has a theoretical condition because the order of operations is not determined between three sections of the code are independent. For example if the initializion would happen after the execution of the second loop, you will get an unexpected result. This will never happen in this particular case, but in other scenarios, it could be a problem.)

  • Problem with the plugin Photoshop and reflux

    I get the following message if poster every time I start photoshop:

    There is a problem with the generator. Quit Photoshop and try again. If the problem persists, remove third-party plug-ins or try to reinstall Photoshop.

    I am running PS 14.1.1

    I also noticed that the reflow option is missing from the drop-down list generaotr. I also tried just download/install the plugin installed by reflow.

    Any ideas?

    Thanks for the help.

    Hello

    There is a simple trick to achieve this.

    1. uninstall all your photoshop CC & edge reflow CC (make sure that you delete all the files in C: drive and temp files).

    2 after step 1 install photoshop CC & edge reflow CC normally.

    3. now download the Edge connection Plugin of

    4. after launch the plugin, and now, you will find a folder of reflow in your (Mac applications folder) and your (Program Files under Windows).

    5 open the folder "reflow/plug-ins/alternator /" and copy "reflow.generate" file.

    6. now open Photoshop CC and go into plug-ins/alternator /.

    7 paste the copied here folder and restart your Pc or Mac.

    8. now, everything should be good.

    It isn't only one answer is how I solved the same problem on my mac.

  • problem with the query insert masking character @.

    Hi the gems...

    I do through xml schema, run... means using a batch file, I'll call the xml files and the xml file contains the names of files containing all the DDLs and LMD...

    No problem with the DDL...

    now when I run the LMD, all are working well except a few insert scripts...

    Insert into TABLE_NAME (EVENT_ID, EVENT_DESC, EVENT_MESSAGE_TEMPLATE, EVENT_MESSAGE_SUBJECT) values (4, 'abcdefgh',)
    'Hi,
    Order details:
    @Order_ID #.
    @Instrument_ID #.
    This is an automated email. Please do not reply.',
    "executed");

    This kind of scripts insert failed with the error "[ora: sqlplus] SP2-0310: could not open the file" Order_ID #, .sql.

    This problem is due to the @ character before the data...

    problem doesn't happen when I run the script explicitly, xml perform only the origin of the problem

    So, I need to know if there is a way to hide the sign @...

    Please help... Thanks in advance

    user12780416 wrote:
    "[ora: sqlplus] SP2-0310: could not open the file" Order_ID #, .sql.

    In SQL * more the @ character means: run a script. That would explain the error message.
    The real problem is that your chain is written on several lines. A string like this might work:

    {code}
    Insert into TABLE_NAME (EVENT_ID, EVENT_DESC, EVENT_MESSAGE_TEMPLATE, EVENT_MESSAGE_SUBJECT) values (4, 'abcdefgh',)
    "Hi," | Chr (10)
    ||' Order of details :'|| Chr (10)
    |' @Order_ID #' | Chr (10)
    |' @Instrument_ID #' | Chr (10)
    ||' This is an automated email. Please do not respond. »
    "executed");
    {code}

    But it might not be a usable workaound.
    As you create the string insert sort, you might be able to replace all line breaks in the present with you own custom lines.

    Replace (yourEventMessage, Chr (10), "' |) Chr (10): "')

  • I had a few problems with the search engines and history

    My default search warning back to Yahoo after a reset on my computer. Close Firefox keep one to change but by restarting the computer, it takes.

    I can't open the sidebar history. The option "view the history of your" opens its tab fine (the drop-down menu that says 'Show History Sidebar', 'clear recent history... ("ect.). But, when you click on the "Show History Sidebar", nothing comes. Can I use the "Show history" option, but the sidebar does not open for some reason any.

    I just finished with a complete analysis of the Microsoft Safety Scanner and it said not that there is anything wrong. I have not reset the computer again to see if something has changed although after the factory reset (see the 2nd paragraph) it seems returned to Yahoo (search engine he kept going to happen).

    I open the history tab in the menu of the toolbar, and everything seems fine here. I also had him always use private off all first browsing mode. After activating the option clear history when Firefox closes, I ended up having to reset to factory settings (things he saves were saved isn't really a problem) that doesn't seem to fix the problem with the sidebar of history not to come.

  • Hello there is a problem with the iphone 6 and you do not want to connect to the Apple Store

    Hello there is a problem with the iphone 6 in more you won't connect to the Apple Store.

    Buenas tardes,

    Try a forced reboot. Hold down the home and Sleep/Wake buttons simultaneously for about 15-20 seconds , until the Apple logo appears. Ignore the "Slide to power off" text if it rises. You won't lose anything.

    Then sign out of the iTunes Store and reconnect.

Maybe you are looking for