table size without indexes
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


table size without indexes Expand / Collapse
Author
Message
Posted 1/2/2006 10:03:11 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 1/23/2006 8:36:00 AM
Posts: 16, Visits: 1
Hi folks and hapy new year,


Could you tell me how can i get the exact table size, but without indexes size ?

select sum(currentperm) from dbc.allspace where databasename = 'XXXX' and tablename = 'MATABLE' => gives me all space.

Do you know the table name for what i need ?

Thanks.
Post #3275
Posted 1/2/2006 3:33:05 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 6/16/2007 11:57:00 AM
Posts: 293, Visits: 1

From screen 6 of the DBW program.

start ferret

this will start the Ferret application in one of the DBW application windows.

at the ferret prompt type

scope table "mydatabase.mytable" 0
showblocks
quit

The display is very wide. On the right hand side you will find Number of datablocks and Average Datablock size.

Multiply the 2 numbers together and you have the size of the table in Sectors ( Divide the answer by 2 to get Kilobytes )

showblocks /m

will also display lines for each index which you can multiply the same way.

----

Post #3277
Posted 1/3/2006 1:09:48 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 3/27/2007 5:35:00 AM
Posts: 58, Visits: 1
Hi

I generally use the following query to determine table sizes.

select databasename, tablename, sum(currentperm)
from dbc.tablesize
where databasename = 'DBA'
and tablename = 'testing'
group by databasename , tablename;

This will give you the space size of all your part of your table across all AMPS. If you change the query to the follwing below:

select databasename, tablename, currentperm
from dbc.tablesize
where databasename = 'DBA'
and tablename = 'testing'

You can see the space used on each AMP.

Divvy


That's All Folks

Divvy

Certified TeraData Master

Post #3280
Posted 1/3/2006 3:27:20 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 1/23/2006 8:36:00 AM
Posts: 16, Visits: 1
Ok thanks.

I need just an sql query, only dba have the tools gives in the first answer.

For the second, are you sure this doesn't include indexes size ?
Post #3284
Posted 1/3/2006 11:53:41 AM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 6/16/2007 11:57:00 AM
Posts: 293, Visits: 1



You can run ferret from Teradata Manager.
Post #3289
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 2 ( 2 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 11:29pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.203. 9 queries. Compression Disabled.