Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • ORACLE_SID in sqlplus Oracle
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • DBMS_SQL for alter session. Oracle
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • find_string_in_database.sql Oracle
  • Jai Shree Ram Oracle
  • Alter procedure auditing Oracle
  • Drop all SPM baselines for SQL handle Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Remove duplicate rows from table Oracle
  • How can I tell if ASO is installed ? Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. 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

  • logminer and my_lbu Oracle
  • Roles and Stored Procs II Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • configUOCIOTTO.ora Oracle
  • How to stop OCSSD Daemon Oracle
  • 10g oem configuration Oracle

Leave a Reply Cancel reply

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

Categories

  • AMC10 (0)
  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (150)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (151)
  • SQL scripts (349)
  • SQL Server (6)
  • Uncategorized (6)
  • Videos (0)

Recent Posts

  • AMC1020-Sep-2026
  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Day to day MYSQL DBA operations (Compared with Oracle DBA) MYSQL
  • Create type and Grant on it. Oracle
  • TRUNCATE Privs Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • restarting network in linux Linux/Unix
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • Finding Oracle Patches with opatch Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme