Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • New OFA for 11g Oracle
  • DBMS_SQL for alter session. Oracle
  • How can I tell if ASO is installed ? Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • Configure ssh authentications for RAC Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • Getting started with notebook Python/PySpark
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • plan10g.sql good Oracle
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • For Search and replace unix command. Linux/Unix
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • Remove DOS CR/LFs (^M) Linux/Unix

Updated LCK.SQL file.

Posted on 13-Oct-2005 By Admin No Comments on Updated LCK.SQL file.

select c.sid, c.serial#, f.spid as osprocess, 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, v$process f

where a.object_id=b.data_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

and c.paddr = f.addr;

Oracle, SQL scripts

Post navigation

Previous Post: Building Our Own Namespaces with “Create Context”
Next Post: FGA Part-I

Related Posts

  • New Latest Param.sql for finding all hidden parameters also Oracle
  • Find Plan Hash value fphv.sql Oracle
  • sql_doing_fts.sql Oracle
  • UTL_FILE test program Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Pending Distributed Transations 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
  • Debugging Shell FIles Linux/Unix
  • chk_space_SID.ksh Linux/Unix
  • Sending email with file attachment. Linux/Unix
  • oradebug ipcrm ipcs Oracle
  • Search and replace editor command in vi Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • JSON/XML Types in Oracle Oracle
  • ORACLE_SID in sqlplus Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme