Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Reading parameter file and printing Linux/Unix
  • RAC 11g with vmware Oracle
  • How to stop OCSSD Daemon Oracle
  • good note for shared pool tunnig Oracle
  • Jai Shree Ram Oracle
  • TOP-N Sql to find Nth max or Top N rows Oracle
  • How to set Processes Parameter Oracle
  • Some useful Unix Commands Linux/Unix
  • UTL_FILE test program Oracle
  • DBMS_Shared_pool pinning triggers Oracle
  • Session_info.ksh Linux/Unix
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • Generate SSH without password authentication. Linux/Unix
  • First Entry in RAC Oracle
  • How to find password change date for user Oracle

Updated LCK.SQL file.

Posted on 13-Oct-2005 By Admin No Comments on Updated LCK.SQL file.

select c.sid, c.serial#, f.spid as osprocess, c.username, a.object_id, b.object_name, c.program, c.status, d.name, c.osuser,

e.sql_text, DBMS_ROWID.ROWID_CREATE(1, c.ROW_WAIT_OBJ#, c.ROW_WAIT_FILE#, c.ROW_WAIT_BLOCK#, c.ROW_WAIT_ROW# ) locked_rowid

from v$Locked_object a, All_objects b, v$session c, audit_actions d, v$sqlarea e, v$process f

where a.object_id=b.data_object_id

and a.session_id =c.sid(+)

and c.command=d.action

and c.row_wait_obj# != -1

and c.sql_id=e.sql_id

and c.paddr = f.addr;

Oracle, SQL scripts

Post navigation

Previous Post: Building Our Own Namespaces with “Create Context”
Next Post: FGA Part-I

Related Posts

  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • All About Trace Fils Oracle
  • V$ROLLSTAT status is Full Oracle
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle
  • Locktree.sql Oracle
  • Composite Index creation tip from Vivek Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • find_log_switch.sql Find log switches in graphical manner Oracle
  • Good notes for shared pool Oracle
  • Formatter Explain plan Output 1 Oracle
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • Implementing Listener Security Oracle
  • currwait.sql Oracle
  • Renaming Global Name GLOBAL_NAME Oracle
  • restarting network in linux Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme