Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • currwait.sql Oracle
  • Rman Notes -1 Oracle
  • checking redhat linux version Linux/Unix
  • Difference between SYNC and AFFIRM Oracle
  • find_idle_cpu.sql Oracle
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • Drop all SPM baselines for SQL handle Oracle
  • online_bkup.sql Oracle
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • note id 373303.1 Linux/Unix
  • When to rebuld B-tree index Oracle
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • cold backup scripts to copy locally Linux/Unix
  • Another Tuning Article for subheap of shared pool 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

  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • standard Monitoring – 1 Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • ORA-3136 Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Database logon trigger issue 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
  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • How to remove blank lines using vi editor command Linux/Unix
  • TNSNAMES entries details Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • Optimizer_Index init.ora parameter explaination. Oracle
  • JSON/XML Types in Oracle Oracle
  • to see when crontab is changed. Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme