Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • DBA_HIST_SQLSTAT contents Oracle
  • restarting network in linux Linux/Unix
  • How to sort list of files on basis of their sizes. Linux/Unix
  • SQL_PROFILE – I explaination Oracle
  • how to find VIP from ifconfig Linux/Unix
  • setting prompt display with .profile Linux/Unix
  • DBMS_STATS Metalinks Notes Oracle
  • GSQ.sql Oracle
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • Oracle Standby Database Library Index from Metalink Oracle
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • Load SPM baseline from AWR Oracle
  • Temporary tablespace explaination Oracle
  • Paste command syntax Linux/Unix
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle

lck.sql

Posted on 19-Aug-2005 By Admin No Comments on lck.sql

select c.sid, c.serial#, 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

where a.object_id=b.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;

Oracle, SQL scripts

Post navigation

Previous Post: The most important Tuning Notes
Next Post: Important Script Method for tuning

Related Posts

  • normal maintenance for exp-imp and renaming table Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • oradebug ipcrm ipcs Oracle
  • Distributed Transaction Troubleshooting. Oracle
  • AWR settings- MMON is not taking snapshot. Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • findobj.sql Oracle
  • find_idle_cpu.sql Oracle
  • move_arch_files.ksh Linux/Unix
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • shr1.sql for MTS or Shared server configuration Oracle
  • Guide to Linux System Command Mastery Linux/Unix
  • SQL_PROFILE – I explaination Oracle
  • Important Solaris Commands Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme