Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Session_info.ksh Linux/Unix
  • executing Function from SQLPLUS prompt Oracle
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • Find Stale DR Physical Standby Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • To Find Orphan OS processes. Linux/Unix
  • Wait Based Tuning Step by step with SQL statement Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • This is im telling Kishore Oracle
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • Find sort details from Db find_sort.sql Oracle
  • Vivek Tuning for Row Locks. Oracle
  • AWR license Oracle

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

  • Oracle Statspack survival Guide Oracle
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • Distributed Transaction Troubleshooting. Oracle
  • Giving Grant on v$DATABASE Oracle
  • How to see which patches are applied. Oracle
  • Import and export statements Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Another export with Query Oracle
  • ORA-01220 Oracle
  • Composite Index creation tip from Vivek Oracle
  • Reading parameter file and printing Linux/Unix
  • Optimizer_Index init.ora parameter explaination. Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • Histogram information Oracle
  • How to start CRS manually Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme