Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • ext#.sql Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • Library cahe Latches and internal explaination Oracle
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • Some useful Unix Commands Linux/Unix
  • Restoring a user’s original password 1051962.101 Oracle
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • Rman Notes -1 Oracle
  • Check SQL Server edition SQL Server
  • Korn Shell Arithmatic Linux/Unix
  • Deleting first line and lastline of a file using sed Linux/Unix
  • Rman Notes -1 Oracle
  • Good notes for shared pool Oracle
  • alter database backup controlfile to trace 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

  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • All Hints for Oracle Databases Oracle
  • 10g oem configuration Oracle
  • Jai Shree Ram Oracle
  • Specify the Rollback segment to use in Transaction 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 (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • ORA-01220 Oracle
  • Roles and Stored Object behaviour Oracle
  • USER_TABLES.Freelists Oracle
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • database trigger failing Oracle
  • tblwopk.sql tablewopk.sql Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme