Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Kernel Parameters for Solaris Linux/Unix
  • myfile Oracle
  • pvm_pre_change.sql Oracle
  • Nice notes on wait events Oracle
  • Remove duplicate rows from table Oracle
  • Building Our Own Namespaces with “Create Context” Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • sid_wise_sql.sql Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • Parallel DML Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • backspace in SQL Plus not working then..? Linux/Unix
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Pending Distributed Transations Oracle
  • Python class import from different folders Python/PySpark

usnsql.sql Displays information about UNDO segments with sql statements

Posted on 27-Mar-2006 By Admin No Comments on usnsql.sql Displays information about UNDO segments with sql statements

select /*+ ALL_ROWS */ a.usn, a1.name, a.extents, a.hwmsize, a.status usn_status,

b.start_date, b.status tx_status,

c.sid, c.sql_id,

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: Drop tempfiles from database
Next Post: fkwoind.sql fkwoindex.sql

Related Posts

  • find_pk.sql /* Find Primary Key */ Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • To see how much time or progress of long transaction Oracle
  • block_ident.sql Oracle
  • Pending Distributed Transations 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
  • dbinv.sql Oracle
  • FGA Part-I Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • myfile Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • load SPM baseline from cursor cache Oracle
  • Backup and Recovery Scenarios Oracle
  • Resolving RMAN Hung Jobs Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme