Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • upload.html PHP/MYSQL/Wordpress
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • Monitor and Trace Unix processes using truss Linux/Unix
  • Find long Running Transaction Linux/Unix
  • TNSNAMES entries details Oracle
  • lck.sql Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • Proc code Oracle
  • oracle Dba site Oracle
  • Linux CPU info. Linux/Unix
  • how to find OS block size Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • Python class import from different folders Python/PySpark
  • Consolidated Reference List Of Notes For Migration / Upgrade Service Requests -ID 762540.1 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

  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • Find Stale DR Physical Standby Oracle
  • v$backup.status information Oracle
  • ORA-3136 Oracle
  • Oracle Data Direct to TAPE 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
  • Running select from V$ views from remote server Linux/Unix
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • Find all users who have DML privileges Oracle
  • create database link syntax Oracle
  • Explain Plan Output 2 Oracle
  • How to find password change date for user Oracle
  • Privilege to describe the table. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme