Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Changing default shell Linux/Unix
  • Find Command Linux/Unix
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • Good RAC & Standby Notes Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • get_vmstat_solaris Oracle
  • Search and replace editor command in vi Linux/Unix
  • Session_info.ksh Linux/Unix
  • Handling LOB data in Oracle Oracle
  • Implementation of key based authentications Linux/Unix
  • Facts about SCN and Rollback Segment Oracle
  • alter database backup controlfile to trace Oracle
  • TOP-N Sql to find Nth max or Top N rows Oracle
  • Validating ORACLE_SID againt oratab file. Linux/Unix

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

  • ORA-3136 Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • To see how much time or progress of long transaction Oracle
  • Export Oracle data and Compress at same time Oracle
  • RAC 11g with vmware Oracle
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • Find total file sizes Linux/Unix
  • Explain Plan Output 2 Oracle
  • My Minimum Tuning Programs Oracle
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • AWR settings- MMON is not taking snapshot. Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • SYSOPER Mystery Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme