DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Partition count

  1. #1
    Join Date
    Mar 2001
    Location
    Reading, U.K
    Posts
    598

    Partition count

    Hi All,
    how to find the number of rows each partition have?

    can I use this table dba_tab_partitions? if yes then how?

    Cheers!
    Cheers!
    OraKid.

  2. #2
    Join Date
    Apr 2003
    Location
    South Carolina
    Posts
    148
    COLUMN table_name FORMAT a15 HEADING 'Table'
    COLUMN partition_name FORMAT a15 HEADING 'Partition'
    COLUMN num_rows HEADING 'Num|Rows'
    COLUMN blocks HEADING 'Blocks'
    COLUMN avg_space HEADING 'Avg|Space'
    COLUMN chain_cnt HEADING 'Chain|Count'
    COLUMN avg_row_len HEADING 'Avg|Row|Length'
    COLUMN last_analyzed HEADING 'Analyzed'
    ACCEPT owner1 PROMPT 'Which Owner to report on?:'
    SET LINES 130
    Statistics For &owner1'
    BREAK ON table_owner ON table_name ON partition_name
    SELECT
    table_name,
    partition_name,
    num_rows,
    blocks,
    avg_space,
    chain_cnt,
    avg_row_len,
    to_char(last_analyzed,'dd-mon-yyyy hh24:mi') last_analyzed
    FROM sys.dba_tab_partitions
    WHERE table_owner LIKE UPPER('%&&owner1%')
    ORDER BY table_owner,table_name
    /
    CLEAR BREAKS
    CLEAR COLUMNS
    UNDEF owner1

  3. #3
    Join Date
    Mar 2001
    Location
    Reading, U.K
    Posts
    598
    THNX MATE
    Cheers!
    Cheers!
    OraKid.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width