Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Another Tuning Article for subheap of shared pool Oracle
  • find_open_cur.sql Find open cursorts per session Oracle
  • Index Range Scan Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • Implementing Listener Security Oracle
  • cif crons Linux/Unix
  • logminer and my_lbu Oracle
  • Explain Plan Output 2 Oracle
  • Restoring a user’s original password 1051962.101 Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • restarting network in linux Linux/Unix
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. 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

  • Find_planinfo.sql Oracle
  • configUOCIOTTO.ora Oracle
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • db_status.sql Oracle
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • Distributed Transaction Troubleshooting. 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 (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Oracle Release Explaination Oracle
  • move_arch_files.ksh Linux/Unix
  • Rman Notes -1 Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • dbinv.sql Oracle
  • Find all users who have DML privileges Oracle
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • find_string_in_database.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme