Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Paste command syntax Linux/Unix
  • find_open_cur.sql Find open cursorts per session Oracle
  • Renaming Oracle Instance Name Oracle
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • age_alert.ksh aging out alert.log Linux/Unix
  • Nice notes on wait events Oracle
  • Convert multiple rows to single column Oracle
  • catall.sh Linux/Unix
  • SAN Linux/Unix
  • Restoring a user’s original password 1051962.101 Oracle
  • Checking SQL Server Version SQL Server
  • How to sort list of files on basis of their sizes. Linux/Unix
  • oracle Dba site Oracle

How to find who is using which Rollback segment and how many rows or blocks in that rollback segments,

Posted on 16-Jun-2006 By Admin No Comments on How to find who is using which Rollback segment and how many rows or blocks in that rollback segments,

Using following query, we can estimate # of rows resides in each USN (Rollback Segment) and who fired that transactions.

New modified GCU.sql on 16-JUN-2006

/* Get Curent USN */

column start_dt format a20

set lines 132

select /*+ ALL_ROWS */ a.usn, a1.name, a.extents, a.hwmsize, a.status usn_status,

to_char(b.start_date, ‘DD-MON-RRRR:HH24:MI:SS’) start_dt, b.status tx_status,

c.sid, c.sql_id, b.used_ublk, b.used_urec,

d.sql_text

from v$rollstat a, v$rollname a1, v$transaction b, v$session c, v$sqlarea d

where a.usn = b. xidusn

and a.usn = a1.usn

and b.ses_addr = c.saddr

and c.sql_id = d.sql_id;

Oracle, SQL scripts

Post navigation

Previous Post: Generate SSH without password authentication.
Next Post: My Minimum Tuning Programs

Related Posts

  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • Oracle Material from OTN Oracle
  • alter database backup controlfile to trace Oracle
  • How to analyze statspack or AWR report. Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • Jai Shree Ram 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
  • Pending Distributed Transations Oracle
  • To find explain plan for a statement that occurred in past. Oracle
  • Formatter Explain plan Output 1 Oracle
  • Jai Shree Ram Oracle
  • Histogram information Oracle
  • Rename Tablespace Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • alter database backup controlfile to trace Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme