Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • findobj.sql Oracle
  • Small sample shell program Linux/Unix
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • AWR settings- MMON is not taking snapshot. Oracle
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • ORA-3136 Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • Find All internal Parameters Oracle
  • adding new line after specific pattern using sed Linux/Unix
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • shr1.sql for MTS or Shared server configuration Oracle
  • Good Doc 28-JUN-2006 Oracle
  • Histogram Overview Oracle
  • Generating XML from SQLPLUS Oracle
  • Oracle 10g for solaris 10 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

  • When error comes for temporary tablespace with version <= 9i Oracle
  • Error Handling in Proc Oracle
  • import-export with multiple files Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • sql_doing_fts.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
  • Library cahe Latches and internal explaination Oracle
  • Good Link from metalink 1 Oracle
  • DBMS_STATS Metalinks Notes Oracle
  • send attachment from unix-shell script Linux/Unix
  • create PLAN_TABLE command. Oracle
  • Important Solaris Commands Linux/Unix
  • Oracle Statspack survival Guide Oracle
  • Pending Transaction Neighbors Script Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme