|
|
Archives of the TeradataForum
Message Posted: Fri, 16 Mar 2012 @ 14:03:56 GMT
Subj: | | Re: Missing space in the Database |
|
From: | | Maheswar Kothapalli |
Dear all,
SELECT
DATABASENAME (TITLE 'DATABASENAME')
,SUM(MAXPERM)/(1024*1024*1024) (DECIMAL(15,6)) (TITLE 'MAX PERM (GB)')
,SUM(CURRENTPERM)/(1024*1024*1024) (DECIMAL(15,6)) (TITLE 'CURRENT PERM
(GB)')
,((SUM(CURRENTPERM))/ NULLIFZERO (SUM(MAXPERM)) * 100) (DECIMAL(15,6))
(TITLE 'PERCENT USED')
FROM DBC.DISKSPACE
WHERE MAXPERM >0
GROUP BY 1
ORDER BY 4 DESC
;
Along with Max perm, Current perm You will get percentage of usage
| |