2026-05-01 07:25:46
This commit is contained in:
+12
-9
@@ -1,10 +1,14 @@
|
||||
/*
|
||||
2024-01-27 vplesnila: script creation
|
||||
*/
|
||||
|
||||
col TABLE_OWNER for a25 heading "Owner"
|
||||
col TABLE_NAME for a30 heading "Table"
|
||||
col OWNER for a25 heading "Owner"
|
||||
col INDEX_NAME for a30 heading "Index"
|
||||
col INDEX_TYPE for a10 heading "Type"
|
||||
col PARTITIONED for a3 heading "Par"
|
||||
col PARTITION_POSITION for 999 heading "P#"
|
||||
col PARTITION_POSITION for 999 heading "P#"
|
||||
col PARTITION_NAME for a30 heading "Partition"
|
||||
col SUBPARTITION_NAME for a30 heading "Subpartition"
|
||||
col PART_HIGHVAL for a32 trunc heading "Partition|high value"
|
||||
@@ -16,10 +20,10 @@ col NUM_ROWS heading "Rows"
|
||||
define v_table_owner=&&1
|
||||
define v_table_name=&&2
|
||||
|
||||
select
|
||||
select
|
||||
par.TABLE_OWNER
|
||||
,par.TABLE_NAME
|
||||
,par.PARTITION_POSITION
|
||||
,par.PARTITION_POSITION
|
||||
,par.PARTITION_NAME
|
||||
,par.NUM_ROWS
|
||||
,par.HIGH_VALUE PART_HIGHVAL
|
||||
@@ -28,15 +32,14 @@ select
|
||||
,sub.NUM_ROWS
|
||||
,sub.HIGH_VALUE SUBPART_HIGHVAL
|
||||
,sub.INTERVAL SUBPART_INTERVAL
|
||||
from
|
||||
dba_tab_partitions par
|
||||
left outer join dba_tab_subpartitions sub
|
||||
from
|
||||
dba_tab_partitions par
|
||||
left outer join dba_tab_subpartitions sub
|
||||
on (par.TABLE_OWNER=sub.TABLE_OWNER) and (par.TABLE_NAME=sub.TABLE_NAME) and(par.PARTITION_NAME=sub.PARTITION_NAME)
|
||||
where
|
||||
where
|
||||
par.table_owner='&&v_table_owner'
|
||||
and par.table_name='&&v_table_name'
|
||||
and par.table_name='&&v_table_name'
|
||||
order by
|
||||
par.PARTITION_POSITION asc
|
||||
,sub.SUBPARTITION_POSITION asc
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user