Records Locked - reason unknown

Hi there,
In the oracle forms , i have 2 Insert statements for table A and Table B, and a Commit right after that. I then call Java classes(that are imported) which has some parameters from Forms. These in turn call a shell script to run some reports.
The shell script should update a field "X" on Table A from Null to some value for the recently inserted statement.
Somehow after calling the java classes table A is getting locked and but has a new record but the field X is not getting updated i.e still has a null value.But when i close the form, the value is getting updated.
Why could this be happenning? is it some kind of lock? If there is one, shouldn't it be released after the commit?
Any help is appreciated.
Thanks a bunch

If that field "X" is updated into one of those reports, we have two different sessions: you cannot see changes made by Reports session from Forms sessions. Maybe when you close the form, a Commit is performed and thus you're able to see the X's new value.
Why don't you execute a COMMIT statement right after the update on field X?

Similar Messages

  • Record locking

    How does Oracle 8i handle record locking?
    Is this handled completely in the background by oracle or are there explicit record locks that can be set.
    I understand that an update or insert will lock the current record and the commit and rollback will release the lock.
    I have a problem where some developers are using an odbc connection to access an oracle database while a java servlet app is accessing the same database using jdbc. At times the changes made through the servlet app are rolled back or are not processed and the changes made by the odbc connection are kept.
    I am confused as to how this could happen.
    any suggestions?

    I have a simmilar problem, where my program aborts too often with a record Lock.
    Everytime I do an update/delete I do it using the SELECT .... FOR UPDATE NOWAIT. In order to reduce the number of aborts due to record locks I'd like to try your suggestion of catching the ROW_LOCKED error, sleep(dbms_lock.sleep in PL/SQL), and retry getting the lock a certain amount of times prior to erroring out. Can You give me more details of how to do this.
    In paticular how do you use dbms_lock.sleep function/package? where can I find this package? Can you share any code examples where you have used this package.
    I greatly appreciate all teh help/suggestions you can provide to me.
    Thanks.

  • Clearing Lock Reason

    Dear Experts,
    I have set the Clearing Lock in the document. I have searched in the DFKKOP table, where I am not able to identify the document number with clearing lock reason.
    I am having requirement that, if the line item is overdue system should lock the partcular line item, Is there any way to set the payment lock automatically?
    Could anyone please guide me in which table I can identify the document number with clearing lock.
    Thanks in Advance,
    Aswin
    Edited by: Aswinkumar.V on May 23, 2011 7:16 PM

    Try the func. module FKK_S_LOCK_CREATE.
    l_obj contains the lock object key.
    CALL FUNCTION 'FKK_S_LOCK_CREATE'
        EXPORTING
          i_loobj1              = l_obj
          i_appl_work_area      = ls_dfkkop-applk
          i_gpart               = ls_dfkkop-gpart
          i_vkont               = ls_dfkkop-vkont
          i_proid               = '10'
          i_lotyp               = '02'
          i_lockr               = l_reason
          i_fdate               = l_startdate
          i_tdate               = l_enddate
          i_uname               = sy-uname
        IMPORTING
          es_locks              = ls_locks
        EXCEPTIONS
          already_exist         = 1
          imp_data_not_complete = 2
          no_authority          = 3
          enqueue_lock          = 4
          wrong_data            = 5
          OTHERS                = 6.

  • Record mode 1 unknown

    Hi Experts,
    I am loding to the data to ODS,When i am loding data to ODS It's Showing below given error
    Record mode 1 unknown data record , activation failed,Please give him to suggestion so that i am go throw that your suggetion please help me.
    Regards,
    Suresh.

    Hi,
    RECORDMODE object can only have values N,R,X,D, and blank ...
    It cannot have 1 as the value in the recordmode field.
    check your mappings for the RECORMODE object in the DSO and see which field you have mapped in the transformation for this DSO.
    if not appearing in the main transformation then look for it in the other rule groups.
    Its should be mapped to either ROCANCEL or any indicator like deletion indicator..which brings only X and blank.
    If nothing like that is coming from the datasource then you can leave it blank and should not map to anything.
    Right now I think you have done wrong mappings and have recordmode to something which is bringing values 1.
    correct the mappings and reload the data.
    Thanks
    Ajeet

  • Record locks created when user closes the Browser and not the Web Form

    Hi. We sometimes encounter the issue where a user updates a record, locking the record on the table, but then they unexpectedly closes the browser without saving by clicking the X in the upper-right of the browser window. Then when another user comes along and attempts to edit that record they get the message Unable to Reserve Record. The orphaned record lock eventually does seem to clear itself out, but that can often take 15-20 minutes.
    Is there any way to speed this up? Or to pragmatically keep this from occurring? Either on the database side or with some code in a particular application?
    Please let me know your thoughts. Thanks in advance.

    If a user closes the browser window the forms runtime on the application server holding the locks is in most cases still up and running. The FORMS_TIMEOUT controls on how long a forms runtime on the server is up and running without the client applet not sending a heartbeat (See MOS note 549735.1). By default this is 15 minutes which would explain your locks being held 15 minutes.
    You could decrease the FORMS_TIMEOUT in the default.env, so the forms runtimes get cleaned earlier and thus the locks get released earlier.
    Note that if you have blocking client_hostcalls with webutil this might be a problem, as it prevents the forms applet from sending the heartbeat and after the FORMS_TIMEOUT passed while the forms applet is blocked the forms runtime on the server gets closed.
    cheers

  • DMS - Object Links (Material master) is showing "Record Locked"

    When looking at an info record in DMS, I am on the Object links tab for Material Master.  There is now a field called "Record Locked".  Haven't seen this field before.  What does this mean that the record is locked?  Is there something that needs to be done to unlock it?

    Dear experts,
    I also seen this column. But problem is I am able to view this in my development client. But could not view in production.
    Also my observation is if I am changing the document from the Objectlink e.g. Material Master this cloumn appears automatically and allows me to do the changes in the DIR.
    But this happens in Development client same functionality I want to use in Production.
    I could not find any config part regarding this.
    Can any body help me on this to resolve this?
    Thanks in advance
    Regards
    Nitin

  • Record Locking using EJB

    Hi,
    Can anyone please explain me how to achieve Oracle Row level record locking using Enterprise Java Bean ?
    Thanks for the time.
    L G Goundalkar

    It depends upon your container and your container-specific deployment settings. In Weblogic, you can specify database-based pessimistic locking which causes the CMP entity to hold a row-lock on load() until it is comitted or rolled back.

  • Error -2038: Record locked by another transaction / Internal error occured

    Hi, sometimes when I'm trying to update a SO via DI API, I got this error -2038. The error message varies, either: "Internal error occured" or "Record locked by another transaction". Ffor 'record locked' error, the table/field names varies, eg.
    [RDR1.ItemCode][line: 7]
    [RDR12.TaxId8][line: 1]
    [WTR1.ItemCode][line: 1]
    [RDR1.ItemCode][line: 9]
    [RDR1.ItemCode][line: 3]
    [RDR12.TaxId2][line: 1]
    [RDR12.CityS][line: 1]
    Any idea what the problem might be? FYI I'm using PL41, and this DI calls are from a centralized 'handler' VB.NET program. I've also released the instantiated BO objects via System.Runtime.InteropServices.Marshal.ReleaseComObject() (http://support.microsoft.com/kb/317109)
    Thanks.

    David: what do you mean by 'S-User for the Marketplace'? I think I'm not an S-User, so I still can't login... How can I be an S-User?
    Anyway, I'll close this question, even though it's not really solved. I can't find any other user updating the same document, but that -2038 errors still pop up.
    Currently I'm using John's approach to retry whenever I got -2038. As long as it works and everybody's happy I guess...
    Thanks everybody.

  • JavaScript error and CATW record locking problem

    Hello,
    We're having two problems with ESS (CATW and Personal Information (PZM3)) in EP 6. We have an ITS-R/3 landscape.
    The JavaScript problem appears intermittently within Personal Data services (Address, Emergency Contact, ...). The actual error reads "object required" and originates from ITS. A user may be able to click through all the ESS services once fine, but on a second click receive the error. Sometimes they can't use the services at all.
    The record locking problem happens in Time Sheet (CATW). Even though a user Saves and Releases the Time Sheet, it remains locked and cannot be approved. Alternatively, some users are experiencing locked records when they try to complete their own time sheets.
    I'm not sure if these are related.
    Has anyone here seen these problems? Any suggestions are most welcome!
    Cheers,
    Colleen

    The best way to nail down the javascript error would be to use the firefox JavaScript debugger extension plugin and put the breakpoints where the problem occurs.
    This will exactly tell you which object it is looking for which is not found. Moreover you might be able to find that when it is working fine as you said. So give that a try and I am sure you will be able to figure out the problem.
    To me this mostly looks like at time some .js file is not coming through to the browser... but this is just a wild guess based on the symptoms.

  • Record Lock

    Hi all,
       I have requirement like this. For one table i have created table maintainance generator. For data maintainance i have created one Transaction code. while one user is using that TCODE to update data for one record if another try to update another record it is not possible the total table is lock untill first user completes updating.
      But now my requirement is if one user is updating first record then another user also want access to update second record. That means record lock in table maintainance generator tcode.
    Awaiting for reply.
    Thanks & Regards,
    Swetha.

    Hi Swetha,
    Doesn't sound like a good idea from data consistency point of view, but you can give it a try using the event After locking/unlocking in the main function module by creating a form  of your own. But I'm not sure if the current record that is being processed would be visible there or not.
    Check this [link|http://help.sap.com/saphelp_47x200/helpdata/en/a1/e45217a2f511d1a5630000e82deaaa/frameset.htm] for details about events.
    KR,
    Advait

  • 32 bit Record Locking on 64 bit Novell Client 2 SP1 for Wind

    I recently installed several 64 bit Windows 7 Machines running Novell Client 2 SP1 for Windows 7.
    Our application uses 32 bit record locking in order to maintain compatibilty with a wide array of workstations.
    The problem is as follows:
    Machine A is runnning 64 bit Novell Client 2 SP1 for Windows 7
    Machine B is running 32 bit Windows XP (Client doesn't really seem to matter).
    Using Machine A, I open a table, and lock a record.
    Using Machine B, I attempt to open the same table.
    Machine B received and Error 33 - The process cannot access the file because another process has locked a portion of the file.
    When I change my application to use 64 bit record locking, the problem goes away.
    Luis

    I see that there is a better place for my post:
    OES: Client - Windows - NOVELL FORUMS
    I have posted there as well.

  • Details about locking reason

    Hi all,
    is there any way to get the information why a user was locked in ABAP system via the connector? I would like to differentiate in IDM if the user was locked by the administrator or because of too many failed login attempts. I can see only the general information if a user is locked or not. But I need the locking reason code.
    Thanks in advance
    Jörn Kaplan

    Hello Jörn,
    I have something like this in my mind:
    Implement a class extending the ToSAP class, which is in the DSE.jar . For each needed method (initCustom, exitPass, add-, mod- and deleteEntryCustom) use super.xyz to call the method from the ToSAP.
    Then the class needs to write the locking reason to the desired place. I guess it could work somehow like this, but cannot think of an other possibility.
    The other possibility would be to file an OSS. But that could take some time, too.
    EDIT: Or is it possible to store the locking reason in the system? Then you only need to read that out and store it in the IS using a FromCustom pass after the pass that writes to the ABAP.
    Best regards

  • Activation Error in ODS - Record mode 0 unknown (data record REQU_4DPGJKCKN

    I created a generic extractor in R3 with a generic delta.  In BW, my delta init loads with no errors but when I activate the data in the ODS, I get the activation error.
    "Record mode 0 unknown (data record REQU_4DPQ31IK7WM9OTK26S5JMJ6LM/000001/"
    I  searched SDN but didn't found anything, and I searched help but only found general information about 0recordmode.
    Can someone provide a solution and/or some more detailed information about the error message?
    Thanks

    Hello,
    When you have created the InfoSource for the generic datasource, have you added field 0RECORDMODE to the InfoSource? When loading data to a ODS, 0RECORDMODE is essential.
    The InfoObject is usually mapped to ROCANCEL (Indicator: Cancel Data Record) field of the extractor. This field is usually present in Standard extractors. But even if the field is not present in your extractor, add it to InfoSource Communication structure and leave it unmapped in transfer rules.
    I think this might solve the problem.
    Regards,
    Pankaj

  • Who has the @#$% record locked!?

    I know there are hundreds of other posts asking this (I've read every one I think), but none give the whole answer (unless I haven't found that one yet). I hate to have to add another one, but I can't believe this has not been resolved due to the sheer number of people asking for this.
    Instead of the non-user friendly "Could not reserve record..." message which means nothing to the users and just generates calls to me, I want to display "User XYZ has the record locked" so the user that gets this message will call the other user instead! Should be simple, right?
    I know to use the on-lock trigger and select for update to see if the row is locked. I know to use v$lock to look for rows with the type of 'TX'. The trouble is, there will be multiple TX type rows. How do I know which one is MY row? No column in v$lock, v$locked_object or v$session seems to map to the rowid, which is the only way I know to identify MY row.
    Please, how do I relate MY row to one of the TX type rows in v$lock (or a row in v$locked_object which has the userid in it)!? Are there other system views I need to be aware of that have this info maybe?
    Thanks for any info. I'm using forms 10g (9.0.4) against the 10g database.
    Gary

    Well, I have reread your post, and maybe you can use a variant of inolau query :
    SQL> select
      2           (select osuser from v$session where sid=a.sid) blocker,
      3         a.sid,
      4           (select serial# from v$session where sid=a.sid) serial#,
      5        ' blocks ',
      6         (select osuser from v$session where sid=b.sid) blockee,
      7             b.sid, c.username username
      8    from v$lock a, v$lock b, v$session c
      9  where a.block = 1
    10     and b.request > 0
    11     and a.id1 = b.id1
    12     and a.id2 = b.id2
    13*    and b.sid = c.sid
    SQL>                                                                  You know your session id, so you know who is blocking you.

  • Microsoft office access record-locking information

    Hello,
    Maybe is a stupid question but i didn't saw question similar to this and I'm concerned about my privacy. Yesterday when i logged in to my skype account I found out that in Users-App Data-Skype- there were created a small file called 'microsoft office access record-locking information'. I'm not exactly sure what this means, because it is happening for a first time. I'm not using Microsoft account for logging in into Skype, also I did not gave any access to another computers, especially to Skype folder.Also after logging off from Skype, this file is not automatically deleted. Can somebody explain me should I concern about something?

    CMMMC wrote:
    I dont know how to post my own question, but see that there is a response to this question within the last 8 mins.
    what my question is (and it must be ridiculasly simple but i cant find it) is how do i get to the page where i can make calls...where my contacts are and such...from the skype home page?  i am in prague, using skype from here...am logged into my account but it is just all of my account info, history and such.  there is no icon to make a call.  i have clicked on everything to see where the option is to simply make a call and...nothing...
    this happened before with my husband when he was using skype on windows 8 for the first time.  this computer has windows xp so it ought to be straight forward...not so far. 
    thanks,
    CMMMC
    It’s still straight forward but not using your Account page on web. You need to install Skype application on your computer and login to this application with your account details.
    http://www.skype.com/en/download-skype/
    See also this:
    https://support.skype.com/en/faq/FA11098/getting-s​tarted-with-skype-windows-desktop

Maybe you are looking for

  • Printing to shared windows printer over wireless network

    Hi, I just bought my wife a MacBook and recently updated it to Leopard (OS X 10.5). I have a Lexmark X5150 printer connected to a desktop PC running Windows XP. I can share files between the two computers no problem either wirelessly or through an et

  • Can you group emails into conversations by drag and drop?

    Conversations in Mail is working fine.  However, sometimes there are messages that don't link because they are from the same person but a different time or not in the current "related" group? Can you MAKE them group into the conversation somehow?

  • Floating Height of JTextArea (as Renderer/Editor) in a JTable Cell

    Hey Folks, I'm kinda struggling with JTextAreas... There is this JTable, which consists of three colums (practically there are two - the other one's an ID-Field...) and only one of them ist editable für users. Left column is a commentary column which

  • Php form for unix server

    Hellow to everybody i would like to know, witch files or carpets do i need to have on a server unix to run a php form (method post, get). I mean if a need to create a carpet example "cgi-bin", or if a need any archive similar "formail.pl" or what els

  • Using tlb and DLL

    Hi, I was wondering how to use a tlb associated with a DLL in Labview.   I know the tlb has the function and bject prototypes and the DLL has the actual code.  Now question is, how do I create an object according to the tlb and the use this with the