title: DBMS_LOCK how to find LOCKID by NAME
body: <p>My task is to show for oracle forms user session id of some locked  object in oracle database. It is possible get from select  (l1.name is known value):</p>
  
  <pre><code>SELECT l2.SID
  FROM   SYS.DBMS_LOCK_ALLOCATED l1,
         gv$lock                 l2
  WHERE  l1.lockid = l2.ID1
  AND    l1.name = 'OBJECT_NAME'
  </code></pre>
  
  <p>The problem is that  our oracle forms users have not access to the table SYS.DBMS_LOCK_ALLOCATED.  Package DBMS_LOCK has no function to find SYS.DBMS_LOCK_ALLOCATED.LOCKID by SYS.DBMS_LOCK_ALLOCATED.NAME.</p>
  
  <p>Someone have ideas on how to solve this problem?</p>