|
|
Archives of the TeradataForum
Message Posted: Mon, 16 Nov 2015 @ 10:04:03 GMT
Subj: | | Re: Find space allocation of a database |
|
From: | | Dave Wellman |
Hi,
Yup, this is fairly straignt forward, use the DBC.DISKSPACEV view for database-level info and DBC.TABLESIZEV view for table-level
information.
SELECT SUM(maxperm/1e9) AS PermLimit_GB
,SUM(currentperm/1e9) AS PermUsed_GB
,SUM(maxtemp/1e9) AS TempLimit_GB
,SUM(currenttemp/1e9) AS TempUsed_GB
FROM dbc.diskspacev
WHERE databasename = 'dbc';
Cheers,
Dave
Ward Analytics Ltd - Information in motion (www.ward-analytics.com)
| |