Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • shr1.sql for MTS or Shared server configuration Oracle
  • Rman Notes -1 Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Paste command syntax Linux/Unix
  • Monitor Long Running Job Oracle
  • Physical Standby switchover with session active Oracle
  • db_status.sql Oracle
  • Pending Distributed Transations Oracle
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • Default User Profile Oracle
  • Absolute file number and relative file number Oracle
  • set_env_dba Linux/Unix
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • Find long Running Transaction Linux/Unix
  • switchover for primary database 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

  • Sequence Resetting Oracle
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • How to check current redo log progress redo_progress.sql Oracle
  • Find sort details from Db find_sort.sql Oracle
  • Trace a SQL session from another session using ORADEBUG Oracle
  • Configure ssh authentications for RAC Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • 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

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Find long Running Transaction Linux/Unix
  • Check SQL Server edition SQL Server
  • Changing default shell Linux/Unix
  • Search and replace pattern Linux/Unix
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • Jai Shree Ram Linux/Unix
  • cp_filesystem.sql Oracle
  • oracle_env_10g_CADEV Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme