COMMIT Without Releasing Lock

Is it possible to keep on locking tables after COMMIT is
executed?
I am now writing a batch program to TRUNCATE and INSERT records
into a working table, which is locked exclusively at the
beginning. A COMMIT is executed after a fixed number of records
is inserted (and the last INSERT, of course). However, I
remember COMMIT will also release lock on the working table.
The problem is that I wish to keep the exclusive lock on the
working table until the end of the program. This is because I
need to further process the working table's contents, which are
supposed to be "freezed" until the end.
How can I do that?

you can try using the dbms_lock package to create your own lock,
this way you can choose to not automatically release the lock
when you commit.
I never used it, but in the oracle documentation you should find
more information about how to use this package.

Similar Messages

  • [Condition] Is it possible to make an await() WITHOUT releasing lock?

    Like title says...I expose my problem:
    I need to impose a FIFO ordering between 2 kind of threads, A and B. A and B come together in the critical section, here A has to check that NO thread of type B is in the section and, if it is not, pass and go in another section and, at the end, modify a variable value in order for B to enter. However, more threads of type A can be together in the 2nd section.
    So, if for example we have:
    BAAA> | critical | 2nd section |
    3 A can enter in 2nd section but 1 B stays outside the critical section.
    critical section is like this with condition variables:
    lock.lock();
                   while(nThreadBInside > 0)
                        waitCond.await();problem is that await() awakens another thread in the queue, so suppose a situation like this:
    BABA->
    A enters.
    B blocks on await unlocking the lock
    A enters...no FIFO ordering!
    Ho can I solve this?:(

    Use a simple in memory flag-- b.inWait(), be awakens checks to see if the flag is still set and if it is goes back to a wait state--works for single events.
    In the event you have multiple blockers, you need to keep count of the numer of blockers that have a hold on the wait state, so. Each time an A enters the critical, increment a counter. When b comes out of wait, then have it check the counter--Counter>0, then b goes back to wait. When each A leaves the critical segment, then decrrement the counter.

  • Releasing lock on closing NWBC

    Hi..
    I am locking a object when it is edited, when i close the browser i am able to release lock on the object.
    But the same lock is not released when i close the NWBC without saving.
    How to handle this in webdynpro whenthe application is exited abnormally in case of NWBC.
    Please give  your valuable inputs.
    thanks
    Vimal.

    Same problem here with he.net, my ISP. Apple's iPhone Mail.app has a clear bug here. I am unable to check my mail from my desktop for near 5 minutes or so after accessing it on the iPhone. Very annoying.

  • Pr& po -new release strategy? released/locked/incomplete

    Dear MM experts,
    I would like to understand what it is meaning of
    released
    locked
    incomplete
    while doing assignment of object class thru cl24n for new release strategies,
    I am clear on released & locked, I would like to understand what is "incomplete" means as per SAP.
    kindly clarify
    thanks in advance
    srihari

    Incomplete means - When you go to CL02 or CT04
    you are entering the statu for calss or char as locked or released
    but when you are creating and that time if you have keep the status is in preparation  and without changing the status you start maintainig the data in CL24N than you will see the statu as incomplete.

  • HT1212 how to reboot without a lock button

    We changed a screen on an Iphone and need help rebooting it without a lock button because it is broke. Wne tried connecting to iTunes and it won't recogize because the screen is locked??

    Try recovery mode.
    Placing your device into recovery mode
    Follow these steps to place your iOS device into recovery mode. If your iOS device is already in recovery mode, you can proceed immediately to step 6.
    Disconnect the USB cable from the iPhone, iPad, or iPod touch, but leave the other end of the cable connected to your computer's USB port.
    Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.If you cannot turn off the device using the slider, press and hold the Sleep/Wake and Home buttons at the same time. When the device turns off, release the Sleep/Wake and Home buttons.
    While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears you can release the Home button:
    If necessary, open iTunes. You should see the following "recovery mode" alert:
    Use iTunes to restore the device.
    If you don't see the "Connect to iTunes" screen, try these steps again. If you see the "Connect to iTunes" screen but the device does not appear in iTunes, see this article and its related links.

  • Function module to hold and release lock on MARD table entry

    Hi Gurus,
    Can you please tell me Function module to HOLD lock on MARD table and the Function Module to release lock on MARD table entry.
    Thanks and Regards,
    Sudipto

    Look via SE11 lock objects, use F4 for tables MAR*, the best for your request is on MARC table with object EMMARCS, so use FM ENQUEUE_EMMARCS and DEQUEUE_EMMARCS.
    Regards,
    Raymond

  • Cannot Release Lock error while Importing mdl file?

    Hi,
    I am trying to import an mdl file in the test enviroment from the development environment.
    No users are working on test environment.
    I start importing the mdl file.
    Then I got the error as "Cannot Release lock:.
    I checked that, no sessions are active and no one is using parallely the owb for testenviroment.
    Could anyone explain, why this error came?
    Thank you,
    Regards,
    Gowtham Sen.

    Did the instance go down whilst doing this?
    Is there more to the log before where you started it?
    Cheers
    David

  • My iPod touch isn't being recognized by my pc. The lock button on it won't work due to water damage, and a friend of mine fixed the problem by restoring it on his computer. How do I restore it without the lock button?

    My iPod touch isn't being recognized by my pc. The lock button on it won't work due to water damage, and a friend of mine fixed the problem by restoring it on his computer. How do I restore it without the lock button?

    first try:
    iOS: Device not recognized in iTunes for Windows
    next
    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Goods receipt can able to post without releasing the scheduling agreement.

    Hi experts,
    We have the SA which is created with document type LPA. Line item is having the confimation control key 0001.We believe that without releasing the SA we can't make the GR.
    ASN has been posted against the SA but without releasing the agreement i can able to post the GR.
    If we didn't create any ASN system won't allow us to make the GR.
    Kindly explain the usage of the doc type LPA and the conf contrl key 0001 in the SA.
    Thnaks for your help
    Reg
    raj

    Hi,
    In order header, go to goods receipt tab, check the storage location maintained. I think this storage location / plant combination is not linked to warehouse 717.
    Hope this answers your query.
    If helpful award points
    Regards,
    Vivek

  • PO Output Without release

    Hi All,
    Please let me know, would there be any possibility to get a print of PO before release with release strategy applied to it,
    Coz, in my one of the scenario PO of 160 line item & client want to discuss about the PO, for discussion purpose client need Printout of the PO.  i want to know what would be the probable reason why we cannot take printout of the PO without release & how can customized the release strategy it means client can take printout before  release PO.
    Regards,
    Romesh

    Hi,
    As per my knowledge   no possibility to get a print of PO before release with release strategy applied to it.
    Please refer the blow link for more clarity .
    Printing PO without release affected
    Hope it help you.
    Thanks.

  • Error in Select Statement " Comma Without Preceding Colon"

    Helo Gurus.
    This is my select query :
    SELECT SINGLE
           STREET
           HOUSE_NUM1
           CITY2
           TEL_NUMBER
           FAX_NUMBER
           POST_CODE1
           STR_SUPPL1
           REGION
           INTO ( L_STREET, L_HOUSENUM, L_CITY2, L_TELNUMBER , L_FAXNUMBER , L_POSTCODE1 , L_STRSUPPL1 , L_REGION )
           FROM ADRC    
           WHERE ADDRNUMBER = l_addrnumber.
    But i am getting error as " Comma Without Preceding Colon"
    How to correct this?
    Points are assured !!!

    Hi Anay Kulkarni ,
    find the modified code with out syntax error.....
    START-OF-SELECTION.     
    SELECT SINGLE STREET
                  HOUSE_NUM1
                  CITY2
                  TEL_NUMBER
                  FAX_NUMBER
                  POST_CODE1
                  STR_SUPPL1
                  REGION
               INTO (L_STREET, L_HOUSENUM, L_CITY2, L_TELNUMBER, L_FAXNUMBER, L_POSTCODE1, L_STRSUPPL1, L_REGION)
               FROM ADRC
    *           INTO (L_STREET, L_HOUSENUM, L_CITY2, L_TELNUMBER, L_FAXNUMBER, L_POSTCODE1, L_STRSUPPL1, L_REGION)
    WHERE ADDRNUMBER = '23453'.
    Dont forgot to Reward me points .....
    All the very best....
    Regards,
    Sreenivasa sarma K.

  • Possible to overwrite a pdf when in use or open a pdf without holding/locking the file for update

    Possible to overwrite a pdf when in use OR alternative open a pdf without holding/locking the file
    We frequently generate pdf files from our 3D program and would like to know if it's possible to either open a pdf file in a way that it doesn't get locked or hold up so the pdf can be updated even when opened or in use.
    Most programs e.g. ultra edit & notepad will let go the file when you opened and hence the file can be updated or over written even when in use.
    If any guru can help, would be highly appreciated

    Hi Abbas,
    It's not possible to overwrite a pdf when it is already in use by a different program or user. The file then opens up in Read Only mode.
    You can make a copy of the file and then apply those changes later in the original file. That's the only possible solution.
    Regards,
    Rahul

  • Error : comma without preceding colon

    Hi,
    I am using the following select query inside the loop and it is displaying syntax error:
    comma without preceding colon ( after Select ? )
    Can anybody suggest what could be an issue...
    SELECT SINGLE RUECK
                  RMZHL
                  IEDD
                  AUFNR
                  STOKZ
                  STZHL
    FROM AFRU INTO ( L_RUECK, L_RMZHL, L_IEDD, L_AUFNR, L_STOKZ, L_STZHL )
                  WHERE RUECK IN S_RUECK     AND
                        AUFNR = WA_ZSCPRT100 AND
                        STOKZ = SPACE AND
                        STZHL = 0.
       WA_AFRU-RUECK = L_RUECK.
       WA_AFRU-RMZHL = L_RMZHL.
       WA_AFRU-IEDD  = L_IEDD.
       WA_AFRU-AUFNR = L_AUFNR.
       WA_AFRU-STOKZ = L_STOKZ.
       WA_AFRU-STZHL = L_STZHL.
    APPEND WA_AFRU INTO T_AFRU.
            CLEAR WA_AFRU.
            CLEAR : L_RUECK,
                    L_RMZHL,
                    L_IEDD,
                    L_AUFNR,
                    L_STOKZ,
                    L_STZHL.
    Any suggestions will be apprecaited!
    regards,
    Kittu

    Hi Kittu ,
    I have checked the code and modified a bit , now it is working fine --
    DATA : l_rueck TYPE afru-rueck,
             l_rmzhl TYPE afru-rmzhl,
             l_iedd TYPE afru-iedd,
             l_aufnr TYPE afru-aufnr,
             l_stokz TYPE afru-stokz,
             l_stzhl TYPE afru-stzhl.
    SELECT SINGLE rueck
    rmzhl
    iedd
    aufnr
    stokz
    stzhl
    FROM afru INTO (l_rueck, l_rmzhl, l_iedd, l_aufnr, l_stokz, l_stzhl) " Modified
    WHERE rueck IN s_rueck AND
    aufnr = wa_zscprt100 AND
    stokz = space AND
    stzhl = 0.
    wa_afru-rueck = l_rueck.
    wa_afru-rmzhl = l_rmzhl.
    wa_afru-iedd = l_iedd.
    wa_afru-aufnr = l_aufnr.
    wa_afru-stokz = l_stokz.
    wa_afru-stzhl = l_stzhl.
    APPEND wa_afru into t_afru.
    CLEAR wa_afru.
    CLEAR : l_rueck,
    l_rmzhl,
    l_iedd,
    l_aufnr,
    l_stokz,
    l_stzhl.
    Regards
    Pinaki

  • Requisition without release strategy

    Hello everybody
    Is it possible to block create purchase orders with reference to requisition without release strategy?
    Example:
    1. Purchase Requisition 100887 with release strategy R1 <> Purchase Order 300 created with reference to PR 100
    2. Purchase Requisition 100888 without release strategy <> Purchase Order cannot be created.
    Thank you for help in advance
    Arek

    Hi,
    If you have seperate document type for PR's for release strategy
    You can remove the link of PR document types to purchase order document types
    other than release startegy in
    Purchase order document type customizing spro>mm>purchasing>PO>define doc types>link to PR
    this will not allow PO's to be created without Pr's having release strategy
    BR
    Diwakar
    reward if useful

  • Comma Without preceding colon Error in select query

    Hello Expert ,
    can anyone tell me what is wrong with this query
    SELECT APARTYP APARTNER ABUKRS BNAME1 AEPAID BORT01 B~ORT02
           BPFACH BPSTL2 BREGIO BSTRAS BLAND1 BTELFX
           INTO(WA_ZDEF_RFS_COMPLY-PARTYP, WA_ZDEF_RFS_COMPLY-PARTNER, WA_ZDEF_RFS_COMPLY-BUKRS,
           WA_ZDEF_RFS_COMPLY-NAME1, WA_ZDEF_RFS_COMPLY-EPAID, WA_ZDEF_RFS_COMPLY-ORT01,
           WA_ZDEF_RFS_COMPLY-ORT02, WA_ZDEF_RFS_COMPLY-PFACH, WA_ZDEF_RFS_COMPLY-PSTL2,
           WA_ZDEF_RFS_COMPLY-REGIO, WA_ZDEF_RFS_COMPLY-STRAS, WA_ZDEF_RFS_COMPLY-LAND1,
           WA_ZDEF_RFS_COMPLY-TELFX) FROM ZDEF_RFS_EPAREG AS A JOIN KNA1 AS B
          ON
          APARTNER = BKUNNR .
    ENDSELECT.
    Error : comma without preceding colon .(AFTER SELECT?)
    Im really not able to get the error .
    Please help.
    Regards Renu

    Hi Renu,
    I have corrected one mistake then you have made another mistake...
    Anyway
    Keep SPACE between INTO and (
    Remove SPACE between ( and G_T_ZDEF_RFS_EPAREG-PARTYP
    SELECT A~PARTYP
    A~PARTNER
    A~BUKRS
    B~NAME1
    A~EPAID
    B~ORT01
    B~ORT02
    B~PFACH
    B~PSTL2
    B~REGIO
    B~STRAS
    B~LAND1
    B~TELFX
    INTO ( G_T_ZDEF_RFS_EPAREG-PARTYP , G_T_ZDEF_RFS_EPAREG-PARTNER,  " Remove Space between ( and G_T...
    G_T_ZDEF_RFS_EPAREG-BUKRS, G_T_ZDEF_RFS_EPAREG-NAME1,
    G_T_ZDEF_RFS_EPAREG-EPAID ,G_T_ZDEF_RFS_EPAREG-ORT01,
    G_T_ZDEF_RFS_EPAREG-ORT02 ,G_T_ZDEF_RFS_EPAREG-PFACH,
    G_T_ZDEF_RFS_EPAREG-PSTL2, G_T_ZDEF_RFS_EPAREG-REGIO,
    G_T_ZDEF_RFS_EPAREG-STRAS, G_T_ZDEF_RFS_EPAREG-LAND1,
    G_T_ZDEF_RFS_EPAREG-TELFX )
    FROM ZDEF_RFS_EPAREG AS A JOIN KNA1 AS B
    ON A~PARTNER = B~KUNNR.
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

Maybe you are looking for

  • Ical broken in 10.5.5?

    I downloaded the latest os release, and now ical appears to be broken. Is the download, or something else that I have done wrong? I opens up, but I can't add an appt or see any calendars. Also, the month in the lower left is January, 2001. Is it just

  • Macros in layout

    is it possible to use macros in a layout inside STS? Regards

  • Subpool durations

    11.0.2.0.2 When you use AMM, the shared pool is split into subpool durations.    The durations are "instance", "session", "cursor", and "execution".   I can find very little online related to the term "duration" as its meant in in its context here. 

  • Oracle/Microsoft ODBC question

    Hi, I got in a situation where I cannot launch an application that's using Microsoft ODBC for Oracle driver after I installed an application that uses Oracle in Orahome90 driver. The application that uses Microsoft driver will now display 'Connection

  • Satelllite A100-773 and WIN 7: Card Reader and Fn-Hotkeys not working

    Hi, I hope that this question was not asked 100 times before. (I haven't found an answer in this forum) Problem: Card Reader and FN-Keys are not working, where can i get drivers? I installed Win 7 Pro on my Satellite A100-773 Notebook. All works fine