Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • All Hints for Oracle Databases Oracle
  • Some useful Unix Commands Linux/Unix
  • To find all disk io ( EMC as well as local) Linux/Unix
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • login.sql Oracle
  • How to find password change date for user Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • Single character replacement in Unix Linux/Unix
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • Jai Shree Ram Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • SAN Linux/Unix
  • switchover for primary database Oracle
  • Transfer SQL Profiles from One database to other database. Oracle
  • Very clear article about oracle dataguard 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

  • database trigger failing Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • Jai Shree Ram Oracle
  • First Entry in RAC Oracle
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • How to see which patches are applied. 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • eplan9i.sql Oracle
  • Pending Distributed Transations Oracle
  • xargs use Linux/Unix
  • Search and replace editor command in vi Linux/Unix
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • How to analyze statspack or AWR report. Oracle
  • Difference between SYNC and AFFIRM Oracle
  • Physical Standby switchover with session active Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme