Skip to Content
author's profile photo Former Member
Former Member

Calculating a record length of a table

Hi All,

In SAP 4.6C Oracle 9g I need to find a record length of a table.For that I am using :

Table name is ABC.

Tablespace in KBytes of ABC X

Total no records in ABC Y

Single record length in Kbytes (Z) = Tablespace (X) / Total no of records(Y)

I would like to know weather is this the correct way to calculate in approximation.I would also like to know any other methods of knowing it.

Any inputs are appreciated.

Thanks,

Priya.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jan 28, 2008 at 04:11 PM

    Hello Priya,

    why calculating?

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_2105.htm#i1592091

    => AVG_ROW_LEN* NUMBER Average length of a row in the table (in bytes)

    But this is only an average (estimated and including row overhead).

    The real length of a row depends on the character set... the character itself and the storage of the data (row chaining and so on...).

    Regards

    Stefan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.