Skip navigation
7869 Views 4 Replies Latest reply: Aug 20, 2010 12:36 PM by eric.stephani RSS
eric.stephani New Enzee 4 posts since
Aug 19, 2010
Currently Being Moderated

Aug 19, 2010 4:29 PM

Query to report databases and sizes

We just started on the Netezza platform. Does anyone know the internal views/tables that would hold the current size of all the databases? I am looking for just a simple query to generate a report off of.

  • AmbarishDon New Enzee 67 posts since
    May 11, 2010
    Currently Being Moderated
    2. Aug 20, 2010 1:19 AM (in response to eric.stephani)
    Re: Query to report databases and sizes

    nz_db_size is really good utility to get report of database size. There are many supports available along with nz_db_size which will give information required for reporting.

     

    -AmbarishDon

  • James Karioki New Enzee 47 posts since
    Apr 7, 2009
    Currently Being Moderated
    3. Aug 20, 2010 9:32 AM (in response to AmbarishDon)
    Re: Query to report databases and sizes

    In addition to using nz_db_size, you may also find the following useful:

     

    nzstats -type database

    nzstats -type table

     

    Additionally, you can pivot the outputs of the above commands by adding '-orient vertical' to the commands as follows:

     

     

    nzstats -type database -orient vertical

    nzstats -type table -orient vertical



     

    The first command gives you the db stats and the second one provides you with table stats (row size, no. of columns, skew etc).

     

    James.

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points