Want to post your scripts here in this blog ? Email it to snojha@gmail.com. You will be rewarded for your scripts if selected by our experts.

Showing posts with label Check for Tablespace Quotas. Show all posts
Showing posts with label Check for Tablespace Quotas. Show all posts

Wednesday, January 13, 2010

Check for Tablespace Quotas

Select username,tablespace_name
from dba_ts_quotas
where username not in (select distinct owner from dba_objects)
and username not in (select grantee from dba_role_privs where granted_role='DBA');