Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • SQLPLUS COPY command Precautions. Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • scripts to take listener.log backup Linux/Unix
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • How to set Processes Parameter Oracle
  • How to know current SID Oracle
  • Find_planinfo.sql Oracle
  • JSON/XML Types in Oracle Oracle
  • Processes Parameter decision Oracle
  • How to remove blank lines using vi editor command Linux/Unix
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Good Link from metalink 1 Oracle
  • Paste command syntax Linux/Unix

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

  • Backup and Recovery Scenarios Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Handling LOB data in Oracle Oracle
  • Transfer SQL Profiles from One database to other database. Oracle
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • find_string_in_database.sql Oracle
  • fkwoind.sql fkwoindex.sql Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • move_arch_files.ksh Linux/Unix
  • online_bkup.sql Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • findobj.sql Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme