Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • refre.sql Oracle
  • Rman Notes -1 Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Explain Plan Output 2 Oracle
  • sql_plan9i.sql Oracle
  • sesswait.sql Oracle
  • sid_wise_sql.sql Oracle
  • block_ident.sql Oracle
  • Session_info.ksh Linux/Unix
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • database trigger failing Oracle
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • Rownum with Order by Oracle
  • CPU speed on Linux Linux/Unix
  • Oracle Material from OTN 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

  • create trigger syntax Oracle
  • Histogram information Oracle
  • tab.sql Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • plan10g.sql good1 Oracle
  • Locktree.sql 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
  • Linux CPU info. Linux/Unix
  • grep multuple patterns Linux/Unix
  • replace alphabets using sed Linux/Unix
  • oracle_env_10g_CADEV Linux/Unix
  • reset Sequence Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • Directory wise folder wise space usage Linux/Unix
  • replacing ^M character when passing files from Windows to Unix Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme