Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • chk_space_SID.ksh Linux/Unix
  • find_string_in_database.sql Oracle
  • Library cahe Latches and internal explaination Oracle
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • create PLAN_TABLE command. Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • To find all disk io ( EMC as well as local) Linux/Unix
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • set_env_dba Linux/Unix
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • Convert multiple rows to single column Oracle
  • ORACLE_SID in sqlplus Oracle
  • Session_info.ksh Linux/Unix

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

  • database trigger failing Oracle
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Find_table_size.sql Oracle
  • find_open_cur.sql Find open cursorts per session Oracle
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause 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
  • Important Script Method for tuning Oracle
  • tblwopk.sql tablewopk.sql Oracle
  • catting.sh Linux/Unix
  • good linux notes Linux/Unix
  • DBMS_UTILITY PACKAGE Oracle
  • CPU speed on Linux Linux/Unix
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • compile_inv.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme