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.

Similar Messages

  • For the second time this week the sound on my iPad 2 doesn't work. Who has the solution for this problemen?

    For the second time this week i don't get any sound from my iPad 2. Who has the solution for this problem?

    Check your settings. The iPads have a small switch on the right edge. It can be used as a rotation lock to keep the screen from automatically reorienting itself as you move around, but you need to have the tablet’s settings configured properly. That same switch, right above the volume buttons, can also be set to function instead as a mute button to silence certain types of audio.
    If the switch is set to work as a mute button, you can change its purpose to “screen-rotation lock” by tapping the Settings icon on the home screen. On the Settings screen, tap General on the left side, and on the right side of the screen flick down to “Use Side Switch to.” Tap to select Lock Rotation or Mute to set the button’s function. Even if you set the side switch for your preferred use, you can still mute the Mini or lock the screen. Just double-click the Home button, and when the panel of apps appears along the bottom edge of the screen, flick the row from left to right with your finger. Tap the icon on the far left side of the row to either lock the iPad’s screen or mute the iPad’s alerts, notifications and sound effects. Music, podcasts and video are not muted unless you turn the volume all the way down.
    http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/
     Cheers, Tom

  • Who deleted the records

    Hi,
    How can i find the user who deleted the record when auditing is not enabled in the database?

    Perhaps something like this should work ->
    select a.sid,
           a.serial#,
           a.username,
           a.ownerid,
           b.sql_text,
           a.status,
           a.schemaname,
           a.osuser,
           a.process,
           a.machine,
           a.terminal,
           a.program,
           a.type,
           a.module,
           a.logon_time,
           a.event,
           a.service_name
    from (
            select sid,
                   serial#,
                   username,
                   ownerid,
                   status,
                   schemaname,
                   osuser,
                   process,
                   machine,
                   terminal,
                   program,
                   type,
                   module,
                   logon_time,
                   event,
                   service_name,
                   sql_id
           from v$session as of timestamp(sysdate - 1/1440)   -- 60/1440 indicates 1 hour before
         ) a,
            select sql_text,
                   sql_id
            from (select * from v$sqltext as of timestamp(sysdate - 1/1440))
            where sql_text like '%delete from emp_n%'
         ) b
    where a.sql_id = b.sql_id
    and   a.schemaname = upper('scott');I personally felt that - if you are DBA then you should blame it on yourself and not to any other developer. After all, this is your mistake - no matter the developer has done it intentionally or not. It's up to you people to maintain a proper security and not by them. And, you should take responsibility. Anyway, it's your matter. And, this is my opinion.
    Regards.
    Satyaki De.

  • How do I delete photo ALBUMS from my iPHONE 4? I sync via icloud and I can not see any folders selected in itunes. I searched the internet and basically there is no one who has the answer to how you delete the iphone photo library and misc albums

    how do I delete photo ALBUMS from my iPHONE 4?
    I sync via icloud and I can not see any folders selected in itunes.
    I searched the internet and basically there is no one who has the answer (so far)
    to how you delete the iphone photo library and misc albums
    I have also had every iphone and I am not stupid.
    charles altman

    Replying to my own post - heh. I downloaded iExplorer (http://www.macroplant.com/iexplorer/) which allowed me access to the files on the phone and there was the phantom movie in the DCIM folder. Deleted it, and all is well - although I still have 0.65gb of Other in iTunes.....

  • I can't get my ipod touch 2nd generation to sync with itunes, at the end of the sync the message ''the ipod cannot be synced, an unknown error occurred (13019)'' my sister who has the same ipod also has the same problem.

    my sister who has the same ipod also has the same problem, i ve tried re downloading itunes and restoring factory settings on my ipod but nothing works!

    Did you try all the suggestions mentioned here? iTunes Error 13019 during sync

  • How can I find out the list of users who has the access to IT 0008

    All,
    How can I find out the list of users who has the W R permission for IT 008
    for others?
    SUIM doe not look like giving me the correct results.
    Please advise.
    Thanks,
    From
    PT.

    combine tables AGR_1251 and table AGR_Users on keyfield AGR_USERS
    in tabel AGR_1251 select on Field LOW values IT0008.OR W OR R,
    noiw you get also other values
    So better solution run the query twice over AGR1251 first on IT0008 and secondly on values W OR R and then the result over table AGR_USERS
    Youu also might put an additional selection on object P* (only selecting HR objects)
    output wll be UID in table AGR_USERS

  • Currently running Adobe XI Standard, i have a PDF that i Save As excel however on my computer it converts it differently than my coworkers computer who has the same Adobe version and same version of Excel 2010. Is something different selected on mine than

    Currently running Adobe XI Standard, i have a PDF that i Save As excel however on my computer it converts it differently than my coworkers computer who has the same Adobe version and same version of Excel 2010. Is something different selected on mine than his? How can i troubleshoot?
    Can provide more information if needed...

    Hello nmohamm,
    To examine the conversion settings in Acrobat, do the following:
    1. Select Edit > Preferences
    2. In the preferences dialog, select the "Convert From PDF" category.
    3. In the "Converting From PDF" list, select "Excel workbook".
    4. Click the "Edit Settings" button to view your conversion settings.
    Regards,
    Charlene

  • Anyone who has the src of JavaTM Look and Feel Design (second edition)?

    Anyone who has the src of JavaTM Look and Feel Design (second edition)? It would be really appreciated to let me know.
    Thanks -

    My bad, my post was unclear.
    I wasn't sure what you meant by src. You clarified that point.
    By (re)reading parts of the online text book, I realized that it's quite outdated. They really should issue a more up-to-date version.

  • HT201272 wait just to be sure i am not the only one who has the "term and conditions" problem

    wait just to be sure i am not the only one who has the "term and conditions" problem

    Go to Crucial.com and use one of their two methods to determine what upgrades are available for your Mac:
    I would purchase the modules from Crucial as they are very reliable and wiill work with you if you have problems.
    OT

  • Who has the labSQL can use in labview7.1?

    hi, who has the labSQL data package can use in labview 7.1? Thank you
    Solved!
    Go to Solution.

    Have you tried searching online? Here is the download, LabSQL.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • HT201272 Where has "who has the biggest brain" app gone?

    Does anyone know where the app "who has the biggest brain" has gone. I'm sure it was made from play fish?

    Ask the app maker.

  • Who has the following error message..please look it up...

    Hello !
    Who has the following error-message when connecting a ipod to the Cinema Display:
    Aug 6 12:29:01 G5 kernel[0]: /SourceCache/AppleFWOHCI/AppleFWOHCI-244.4.0/AppleFWOHCI.cpp 3435: ERROR: FireWire (OHCI) Apple ID 42 built-in: handleUnrecoverableErrorInt
    Please look in the console Application in the file system.log
    What does it mean ?
    Thanx

    It means that the firewire port in your Cinema Display has problems. Read more here: Thomas Berglund, "Problem with 20" Firewire..Who has the following entry ?" #2, 04:45am Aug 20, 2005 CDT

  • When calling someone in handsets mode,couldn't hear anything until I turn it into speaker mode. Who has the same fault?

    When calling someone in handsets mode,couldn't hear anything until I turn it into speaker mode. Who has the same fault?

    I searched the iPod Touch forum for "iphone in recovery mode" and it appears there are two possible solutions:
    - Place the iPod in DFU mode and then restore it> 
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - Use this program to get it out of recovery mode:
    RecBoot: Easy Way to Put iPhone into Recovery Mode | Jaxov

  • I need feedback from anybody who has the 2011 baseline 15" MacBook Pro

    I need anyone who has the new baseline 15" MacBook Pro to give me feedback. Like, is it fast enough, is the resolution ok, is the hard drive fast enough at 5400 rpm or is it slow in transferring data, especially this point, does it require any upgrade, and all that other stuff.

    Perform a SMC Reset, it could be causing your battery problems.
    https://support.apple.com/kb/HT3964

  • On my iPad, in iCal, whenever I attempt to go to March 2013 the application closes. I know of at least one other user who has the same problem. Has anyone else had the same experience

    I am using an iPad.
    In iCal, whenever I try to turn to the month of March, the app closes.
    I know of at least one other person who has had the same problem.
    Has anyone had a similar experience and know of any solution?

    Chiave2,
    Why does the month March 2013 not show...: Apple Support Communities, and Why can I NOT select March 2013 Month...: Apple Support Communities may provide you with a solution for your problem.

Maybe you are looking for

  • Sql Script containing INSERT INTO TABLE_NAME taking very long time

    Version:11g I have a .sql file which contains insert statements for the table ZIP_CODES like. INSERT INTO ZIP_CODES (ZIP_CODE, CITY, PROV, COUNTRY_CODE, LONGITUDE, LATITUDE) VALUES (..........);This sql file contains above 800,000 INSERT statements l

  • Email not going to particular user id

    hi, when i send a email form SO01 transaction to a particular user with name say abc @ <xyz.org the user is not receiving the mail. But when i send mail from SO01 to any other user say efg @ xyz.org or yahoo e mail id, g mail id, the users are receiv

  • File usage after subscription expired or canceled

    Hello! I keep reading that if the subscription is expired or canceled, the files created using the suite are no longer available for use. How is that? I was under the impression that I can locally store all my files. If I transfer my files to someone

  • Can't backup- getting error 109

    The first time time capsule was backing up my machine it got interrupted and now will not backup. It stalls out after making the backup disk available and gives this error: The backup disk image "/Volumes/Data/computerdrivename.sparsebundle" could no

  • Proxy problem, empty folders

    Hi Forum, we set up up proxy access for two account's (User A and User B) to another (User C). They have different rights, but both have all "read" checkboxes checked. The difference is, that User A sees only folders and no mails, appointments etc. F