Professional Documents
Culture Documents
https://docs.oracle.com/cd/E18283_01/server.112/e16541/part_admin005.htm
https://docs.oracle.com/cd/E11882_01/server.112/e25523/part_admin005.htm
http://www.orafaq.com/wiki/Partitioning_FAQ
ALL_TAB_PARTITIONS
1.
A simple query against the data dictionary will show if a given table or index is
partitioned or not:
2.
SELECT * FROM dba_tab_partitions WHERE table_name = '<table_name>';
One can show the partitions of an given index with:
=========================================================================
3. check rows
SELECT
TABLE_NAME, PARTITION_NAME, PARTITION_POSITION, HIGH_VALUE
FROM
Remote DBA_TAB_PARTITIONS
WHERE
TABLE_NAME='POS_DATA'
ORDER BY
PARTITION_NAME;
====================================================================
4.
How to count records per ranged partition within a single select in oracle 12c?
SELECT table_name, partition_name, subpartition_name, num_rows
FROM dba_tab_partitions;
========================================================================
5.
Below script is for finding the row counts of all partitions of a table in Oracle.
DBACLASS
Search.....
HOME / DATABASE SCRIPTS / FIND ROW COUNT OF ALL PARTITIONS OF A TABLE
Find Row Count Of All Partitions Of A Table
768 views Less than a minute 0