Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • Good Link from metalink 1 Oracle
  • CPU speed on solaris Linux/Unix
  • Find_table_size.sql Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix
  • chk_space_SID.ksh Linux/Unix
  • DBMS_STATS Metalinks Notes Oracle
  • cif crons Linux/Unix
  • tab.sql Oracle
  • Read CSV File using Python Python/PySpark
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • Rownum with Order by Oracle
  • How to stop OCSSD Daemon 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

  • Rman Notes -1 Oracle
  • Giving Grant on v$DATABASE Oracle
  • eplan.sql Oracle
  • find_cons.sql Oracle
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • USE_NL and INDEX hints example 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Checking SQL Server Version SQL Server
  • oracle 10g on linux Linux/Unix
  • Optimizer SORT Operations Oracle
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • switchover for primary database Oracle
  • initUOCIOTTO.ora Oracle
  • Unix split command to split files Linux/Unix
  • scripts to take listener.log backup Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme