Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Wait.sql Oracle
  • Alter procedure auditing Oracle
  • set_env_dba Linux/Unix
  • cache buffer chain latch Oracle
  • Getting started with notebook Python/PySpark
  • crontab syntax Linux/Unix
  • ext#.sql Oracle
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • Export With Query Another Example. Oracle
  • Distributed Transaction Troubleshooting. Oracle
  • track_autoupgrade_copy_progress.sql Oracle
  • sqlnet.ora paramters Oracle
  • Index Range Scan Oracle
  • Default User Profile Oracle
  • Locktree.sql 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

  • Display the top 5 salaries for each department using single SQL Oracle
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • Restoring a user’s original password 1051962.101 Oracle
  • Import and export statements Oracle
  • How to calculate PROCESSES parameter Oracle
  • proc.sql 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 (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Find Plan Hash value fphv.sql Oracle
  • AWR settings- MMON is not taking snapshot. Oracle
  • Oracle Statspack survival Guide Oracle
  • Debugging Shell FIles Linux/Unix
  • oracle 10g on linux Linux/Unix
  • temp_use.sql diplays usage of temp ts Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • tblwopk.sql tablewopk.sql Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme