Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • AWR license Oracle
  • move_arch_files.ksh Linux/Unix
  • get_vmstat_linux Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • Mutating Table Error while using database trigger Oracle
  • Find Command Linux/Unix
  • Goldengate document from Porus Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • Gathering statistics with DBMS_STATS Oracle
  • DBMS_JOB all example Oracle
  • SQL_PROFILE – I explaination Oracle
  • find_open_cur.sql Find open cursorts per session Oracle
  • First Entry in RAC 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

  • find_cons.sql Oracle
  • DBMS_Shared_pool pinning triggers Oracle
  • Handling LOB data in Oracle Oracle
  • How to analyze statspack or AWR report. Oracle
  • V$ROLLSTAT status is Full Oracle
  • Finding locked objects 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Search and Replace vi editor command. Linux/Unix
  • Oracle Identifiers Oracle
  • When to rebuld B-tree index Oracle
  • Good Link from metalink 1 Oracle
  • Remove duplicate rows from table Oracle
  • find_log_switch.sql Find log switches in graphical manner Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme