Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • Renaming Global Name GLOBAL_NAME Oracle
  • proc.sql Oracle
  • Check Oracle installed products using one command Oracle
  • exp syntax in oracle 10g Oracle
  • DB Console Mainenance. Oracle
  • oracle_env_10g_CADEV Linux/Unix
  • RAC with RHEL4 and 11g Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • age_alert.ksh aging out alert.log Linux/Unix
  • Gathering statistics with DBMS_STATS Oracle
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • database trigger failing Oracle
  • find checksum of a file. Linux/Unix
  • To see how much time or progress of long transaction Oracle

lck.sql

Posted on 19-Aug-2005 By Admin No Comments on lck.sql

select c.sid, c.serial#, 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

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

Oracle, SQL scripts

Post navigation

Previous Post: The most important Tuning Notes
Next Post: Important Script Method for tuning

Related Posts

  • TNSNAMES entries details Oracle
  • Pending Transaction Neighbors Script Oracle
  • Rollback force for distributed transactions Oracle
  • cur_sql.sql Oracle
  • Updated LCK.SQL file. Oracle
  • ORA-3136 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
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • switchlogfile.sh Linux/Unix
  • AWR settings- MMON is not taking snapshot. Oracle
  • Privilege to describe the table. Oracle
  • SYSOPER Mystery Oracle
  • Search and Replace vi editor command. Linux/Unix
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • Reading parameter file and printing Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme