Monday, April 10, 2023

part_tables.sql

 -- -----------------------------------------------------------------------------------

-- File Name    : part_tables.sql
-- Author       : AMIR DBA
-- Description  : Displays information about all partitioned tables.
-- Requirements : Access to the DBA views.
-- Call Syntax  : @part_tables
-- -----------------------------------------------------------------------------------

SELECT owner, table_name, partitioning_type, partition_count
FROM   dba_part_tables
WHERE  owner NOT IN ('SYS', 'SYSTEM')
ORDER BY owner, table_name;

No comments:

Post a Comment