Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating 8i Row Size

Status
Not open for further replies.

timofe

IS-IT--Management
Aug 14, 2001
8
GB
Does anyone know how to calculate the size of a database row consisting of only NUMBER, DATE and VARCHAR2 columns in 8.1.7?

There used to be a formula for 8, does it still apply (and, if so, can anyone remember what it is)?
 
Admin Guide Release 8.0 Appendix A; Space Estimations for Schema Objects

Can't find the same in 8i though :)

Alex
 
Alex,

Thanks, but I've already looked there.

Why do Oracle do you a favour in one release and then take it away in the next release?! Frustrating is not the word...

Cheers,

Tim
 
There is a vsize function you can use i.e. (from the top of my head):
select vsize(col_varchar2), vsize(col_number) ...
from table;

Try searching for vsize in the docs.
 
Sorry. Maybe I didn't make myself clear.

I'm trying to predict the size before any data is loaded.

Will vsize work in this case?

Thanks for your assistance.
 
Well, numbers and dates are fixed lenght and you could take a maxinum possible on the varchar2?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top