Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • find_err.sql for finding errors from dba_errors. Oracle
  • Important Script Method for tuning Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • v$event_name Oracle
  • create a folder in multiple places Linux/Unix
  • find_arc.sql Oracle
  • Exadata Basics Oracle
  • Set Role explaination. Oracle
  • executing Function from SQLPLUS prompt Oracle
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • EXTPROC Oracle
  • tblwopk.sql tablewopk.sql Oracle
  • OEM-troubleshooting on 20-MAY-08 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

  • Good Site for Oracle Internals Oracle
  • Find Plan Hash value fphv.sql Oracle
  • USE_NL and INDEX hints example Oracle
  • Jai Shree Ram Oracle
  • DBMS_UTILITY PACKAGE Oracle
  • plan10g.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
  • exp syntax in oracle 10g Oracle
  • Pending Distributed Transations Oracle
  • good linux notes Linux/Unix
  • get_vmstat.ksh Linux/Unix
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • Identical Dblink Issue… Oracle
  • Read CSV file using PySpark Python/PySpark
  • find_arc.sql Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme