Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • note id 373303.1 Linux/Unix
  • Building Our Own Namespaces with “Create Context” Oracle
  • Set Role explaination. Oracle
  • dbinv.sql Oracle
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • db_status.sql Oracle
  • Consolidated Reference List Of Notes For Migration / Upgrade Service Requests -ID 762540.1 Oracle
  • USE_NL and INDEX hints example Oracle
  • CTAS with LONG Column for 9i and higher Oracle
  • export import with parameter file. Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • copying/removing directory with all its subdirectory Linux/Unix
  • CPU speed on solaris Linux/Unix
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix

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

  • Oracle 10g Installation/Applying Patches Tips Oracle
  • My Test Case On 21-OCT-2005 Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • Changing unix system clock when Oracle database is running. Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • switchover for primary database 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • sid_wise_sql.sql Further explaination Oracle
  • OEM-Commnds Oracle
  • Good Link from metalink 1 Oracle
  • SYSOPER Mystery Oracle
  • GSQ.sql Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • Default User Profile Oracle
  • how to find VIP from ifconfig Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme