Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • logminer and my_lbu Oracle
  • Guide to Linux System Command Mastery Linux/Unix
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • Free conference number from http://www.freeconference.com Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • newupload.html PHP/MYSQL/Wordpress
  • initUOCIOTTO.ora Oracle
  • Privilege to describe the table. Oracle
  • runsql_once.ksh Linux/Unix
  • Convert multiple rows to single column Oracle
  • Running select from V$ views from remote server Linux/Unix
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • standard Monitoring – 1 Oracle
  • UTL_FILE test program 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

  • Mutating Table Error while using database trigger Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Goldengate document from Porus Oracle
  • Backup and Recovery Scenarios Oracle
  • AWR settings- MMON is not taking snapshot. Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Remove DOS CR/LFs (^M) Linux/Unix
  • Facts about SCN and Rollback Segment Oracle
  • Getting started with notebook Python/PySpark
  • Rman Notes -1 Oracle
  • Transfer SQL Profiles from One database to other database. Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • dbms_job.submit example Oracle
  • SAN Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme