Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • kill all processes from specific user in solaris. Linux/Unix
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Creating never expiring DB user accounts in Oracle Oracle
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • move_arch_files.ksh Linux/Unix
  • Oracle Metalink useful notes Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • find_err.sql for finding errors from dba_errors. Oracle
  • shutdown linux Linux/Unix
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • oracle 10g on linux 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

  • UNderstand and eliminate Latch contention. Oracle
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • CTAS with LONG Column for 9i and higher Oracle
  • db_status.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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • 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

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • secure crt settings Linux/Unix
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • Good notes on Oracle Events Oracle
  • create database link syntax Oracle
  • Guide to Linux System Command Mastery Linux/Unix
  • dbinv.sql Oracle
  • T-SQL Vs PL/SQL Syntax SQL Server
  • How to remove blank lines using vi editor command Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme