Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: how to find bytes used when inserting a row

Re: how to find bytes used when inserting a row

From: Stephane Faroult <sfaroult_at_oriolecorp.com>
Date: Mon, 12 Apr 1999 19:24:54 -0700
Message-ID: <3712AAF6.5954@oriolecorp.com>


butun wrote:
>
> Hi
> i need to know the space occupied in bytes when i insert a new
> row in a table. Can anybody give be the SQL query which will
> be able to return the actual size in bytes occupied by the table.
>
> This way i could insert a 1000 rows and measure the size before and
> after to determine the space occupied by each inserted row.
>
> thanks
>
> Butun

Don't look for a complicated, give-or-take-a-byte formula. Since you have a test set, use the ANALYZE TABLE ... COMPUTE STATISTICS command instead before and after your insert, and look for results in USER_TABLES or DBA_TABLES. What counts with Oracle is chiefly the number of Oracle blocks, so the meaningful value is how many rows you will store on average in a block, which you can easily derive from columns used_blocks and row_count.
--
Regards,

  Stéphane Faroult
  Oriole Corporation



http://www.oriolecorp.com, designed by Oracle DBAs for Oracle DBAs
Received on Mon Apr 12 1999 - 21:24:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US