Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Mutating Table Error while using database trigger Oracle
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle
  • Sort with ASCII order and Numeric Order Linux/Unix
  • perf_today.sql Oracle
  • Committing distributed transaction using commit force Oracle
  • cif crons Linux/Unix
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • Jai Shree Ram Linux/Unix
  • Create type and Grant on it. Oracle
  • myfile Oracle
  • scripts to take listener.log backup Linux/Unix
  • Updated LCK.SQL file. Oracle
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle

ext#.sql

Posted on 02-Aug-2005 By Admin No Comments on ext#.sql

/*

USER_EXTENTS describes the extents comprising the segments owned by the current user’s objects. This view does not display the OWNER, FILE_ID,

BLOCK_ID, or RELATIVE_FNO columns.

Column Datatype NULL Description

—————————————————————————————————————

OWNER VARCHAR2(30) Owner of the segment associated with the extent

SEGMENT_NAME VARCHAR2(81) Name of the segment associated with the extent

PARTITION_NAME VARCHAR2(30) Object Partition Name (Set to NULL for non-partitioned objects)

SEGMENT_TYPE VARCHAR2(18) Type of the segment: INDEX PARTITION, TABLE PARTITION

TABLESPACE_NAME VARCHAR2(30) Name of the tablespace containing the extent

EXTENT_ID NUMBER Extent number in the segment

FILE_ID NUMBER File identifier number of the file containing the extent

BLOCK_ID NUMBER Starting block number of the extent

BYTES NUMBER Size of the extent in bytes

BLOCKS NUMBER Size of the extent in Oracle blocks

RELATIVE_FNO NUMBER Relative file number of the first extent block

*/

set linesize 149

accept onrnm prompt ‘Enter Owner Name : ‘

accept segnm prompt ‘Enter Segment Name : ‘

column owner format a4

column segment_name format a25

column extent_id format 9999

column file_name format a40

column tablespace_name format a10

column block_id format 999999 heading ‘start|blkid’

column size_in_kb format 999999

column size_in_blocks format 999999

select a.owner, a.segment_name, a.extent_id, b.file_name, a.tablespace_name, a.block_id , a.bytes/(1024 * 1024) size_in_MB, a.blocks size_blks

from dba_extents a, dba_data_files b

where a.file_id = b.file_id

and owner = upper(‘&onrnm’)

and segment_name = upper(‘&segnm’)

order by extent_id;

set lines 80

Oracle, SQL scripts

Post navigation

Previous Post: sesswait.sql
Next Post: refre.sql

Related Posts

  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • cur_sql.sql Oracle
  • How to stop OCSSD Daemon Oracle
  • Library cahe Latches and internal explaination Oracle
  • Resolving RMAN Hung Jobs Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • 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

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Jai Shree Ram Linux/Unix
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • Library cahe Latches and internal explaination Oracle
  • Processes Parameter decision Oracle
  • Korn Shell Arithmatic Linux/Unix
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • temp_use.sql diplays usage of temp ts Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme