2026-05-01 07:25:46
This commit is contained in:
+5
-5
@@ -1,5 +1,5 @@
|
||||
/* Statistics details for table partitions/subpartitios
|
||||
|
||||
|
||||
Usage: @tabstat <owner> <table>
|
||||
|
||||
vplesnila 2024-01-29: creation
|
||||
@@ -10,8 +10,8 @@ col table_name for a25 head "Table name"
|
||||
col last_DML for a20 head "Last DML"
|
||||
col last_analyzed for a20 head "Last Analyzed"
|
||||
col STALE_STATS for a7 head "Stale"
|
||||
col NUM_ROWS head "#Rows"
|
||||
col INSERTS head "Table|INS"
|
||||
col NUM_ROWS head "#Rows"
|
||||
col INSERTS head "Table|INS"
|
||||
col UPDATES head "Table|UPD"
|
||||
col DELETES head "Table|DEL"
|
||||
col TRUNCATED head "Table|TRUN"
|
||||
@@ -21,7 +21,7 @@ compute sum of INSERTS on report
|
||||
compute sum of UPDATES on report
|
||||
compute sum of DELETES on report
|
||||
|
||||
select
|
||||
select
|
||||
tabstat.OWNER
|
||||
,tabstat.TABLE_NAME
|
||||
,tabstat.NUM_ROWS
|
||||
@@ -32,7 +32,7 @@ select
|
||||
,tabmod.DELETES
|
||||
,tabmod.TRUNCATED
|
||||
,tabmod.TIMESTAMP last_DML
|
||||
from
|
||||
from
|
||||
dba_tab_statistics tabstat
|
||||
,dba_tab_modifications tabmod
|
||||
WHERE
|
||||
|
||||
Reference in New Issue
Block a user