Tablespaces

From dbawiki
Revision as of 22:33, 10 November 2012 by Stuart (talk | contribs) (Created page with "===User quotas on all tablespaces=== col quota format a10 select username , tablespace_name , decode ( max_bytes , -1, 'unlimited' , c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

User quotas on all tablespaces

col quota format a10
select username
,      tablespace_name
,      decode ( max_bytes
              , -1, 'unlimited'
              , ceil(max_bytes / 1024 / 1024)||'M'
              ) quota
from   dba_ts_quotas
where  1=1
and    tablespace_name not in ('TEMP');