Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • Read CSV File using Python Python/PySpark
  • get_vmstat.ksh for Solaris Oracle
  • Jai Shree Ram Oracle
  • eplan9i.sql Oracle
  • Mutating Table Error while using database trigger Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • sid_wise_sql.sql Oracle
  • Implementing Listener Security Oracle
  • purge_trc.sh Linux/Unix
  • get_vmstat.ksh Linux/Unix
  • get_aix_vmstat.ksh Oracle
  • Proc Compilation Oracle
  • Remove DOS CR/LFs (^M) Linux/Unix
  • How to see which patches are applied. 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

  • Another Tuning Article for subheap of shared pool Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • Formatter Explain plan Output 1 Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • oracle Dba site Oracle
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • v$backup.status information Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • Rename Oracle Instance Name Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • ORA-3136 Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme