The column named "module" will tell you the name of the Form Function or the Concurrent Program Short name which has aquired a lock onto that table.
SELECT c.owner
,c.object_name
,c.object_type
,fu.user_name locking_fnd_user_name
,fl.start_time locking_fnd_user_login_time
,vs.module
,vs.machine
,vs.osuser
,vlocked.oracle_username
,vs.sid
,vp.pid
,vp.spid AS os_process
,vs.serial#
,vs.status
,vs.saddr
,vs.audsid
,vs.process
FROM fnd_logins fl
,fnd_user fu
,v$locked_object vlocked
,v$process vp
,v$session vs
,dba_objects c
WHERE vs.sid = vlocked.session_id
AND vlocked.object_id = c.object_id
AND vs.paddr = vp.addr
AND vp.spid = fl.process_spid(+)
AND vp.pid = fl.pid(+)
AND fl.user_id = fu.user_id(+)
AND c.object_name LIKE '%' || upper('&tab_name_leaveblank4all') || '%'
AND nvl(vs.status
,'XX') != 'KILLED';
Comments
(4)
...
written by srinivasM , September 15, 2007
written by srinivasM , September 15, 2007
hi,
Happy Ganesh Chethurdasi
I am very much interested on ur articles. Can you please write article on data migration
prcess steps.
Votes: +0
Happy Ganesh Chethurdasi
I am very much interested on ur articles. Can you please write article on data migration
prcess steps.
report abuse
vote down
vote up
Database Security
written by Rajini Veluvali , August 26, 2010
written by Rajini Veluvali , August 26, 2010
Hi Anil,
Your articles are intresting. Can you please write article on database security and cloning database.
I Am in need of it.
Thanks in advance,
Votes: +0
Your articles are intresting. Can you please write article on database security and cloning database.
I Am in need of it.
Thanks in advance,
report abuse
vote down
vote up
Oracle Apps DBA
written by Ajay Jain , March 18, 2011
written by Ajay Jain , March 18, 2011
Very well written script. Great Job
Votes: +0
report abuse
vote down
vote up
| < Prev | Next > |
|---|





Anil,
Can you please write article on XSL-FO