Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • Jai Shree Ram Oracle
  • fkwoind.sql fkwoindex.sql Oracle
  • Oracle Identifiers Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • Good RAC & Standby Notes Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • Renaming Global Name GLOBAL_NAME Oracle
  • Paste command syntax Linux/Unix
  • find_err.sql for finding errors from dba_errors. Oracle
  • oracle_env_10g_CADEV Linux/Unix
  • Very Good Oralce Internal Tuning Book Oracle

temp_use.sql diplays usage of temp ts

Posted on 10-May-2008 By Admin No Comments on temp_use.sql diplays usage of temp ts

SELECT b.TABLESPACE,

b.segfile#,

b.segblk#,

b.blocks,

a.SID,

a.serial#,

a.username,

a.osuser,

a.status,

c.sql_text

FROM v$session a,

v$sort_usage b,

v$sqlarea c

WHERE a.saddr = b.session_addr

AND a.SQL_HASH_VALUE = c.HASH_VALUE

ORDER BY b.TABLESPACE, b.segfile#, b.segblk#, b.blocks

/

set pagesize 10000

set linesize 133

column tablespace format a15 heading ‘Tablespace Name’

column segfile# format 9,999 heading ‘File|ID’

column segblk# format 999,999,999 heading ‘Block|ID’

column blocks format 999,999,999 heading ‘Blocks’

column username format a15

select

b.tablespace, b.segfile#, b.segblk#, b.blocks,

a.sid, a.serial#, a.username, a.osuser, a.status

from v$session a, v$sort_usage b

where a.saddr = b.session_addr

order by b.tablespace,b.segfile#,b.segblk#,b.blocks;

Oracle, SQL scripts

Post navigation

Previous Post: get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause
Next Post: send attachment from unix-shell script

Related Posts

  • dbms_job.submit example Oracle
  • Updated LCK.SQL file. Oracle
  • Find all users who have DML privileges Oracle
  • initUOCIOTTO.ora Oracle
  • how to find OS block size Oracle
  • Locktree.sql 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
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • Check Oracle installed products using one command Oracle
  • executing Function from SQLPLUS prompt Oracle
  • setting prompt display with .profile Linux/Unix
  • refre.sql Oracle
  • Rollback force for distributed transactions Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme