Q
Problem solve Get help with specific problems with your technologies, process and projects.

What is the space occupied by a specific record?

I would like to know how I will come to know what the exact space occupied by a specific record in an Oracle 9i release 2 database is.

I would like to know how I will come to know what the exact space occupied by a specific record in an Oracle 9i release 2 database is. Please help me if possible.
The easiest thing to do is to use the VSIZE function on the table's columns to determine how much space is being used. Summing the results of the VSIZE functions will give you the total number of bytes for that row of data. For instance, if the EMP table contains the EMPID, ENAME and DEPTNO columns, the following query will show you the total number of bytes for the data in each row:
SELECT empid, VSIZE(empid)+VSIZE(ename)+
 VSIZE(deptno) AS total_bytes FROM emp;
If you need further information, I have a white paper titled "Dumping Oracle Blocks" on my Web site which will show you how to see the rows in a block.

Dig Deeper on Oracle database design and architecture

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close