Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

finding tablespace size in oracle if datafiles are autoextensibleor limited

knowledgespringSep 30 2008 — edited Oct 2 2008
Hi Guys,
it is may be simple but not getting through.. i am using below query to find in db that bytes used and bytes assigned at tablespace leve but not getting correct results.
i have tablesspaces whos size is intially 100mb for example and autoextensible on or limited or unlimited disk space but when i run below query it gives many 32768 values as maxbytes.. anything wrong with below query?? please correct me...
select tablespace_name, round( sum(bytes/(1023*1024) ))used_mb, round(sum( maxbytes/(1024*1024))) assigned_mb , autoextensible from dba_data_files group by tablespace_name,autoextensible

how to display correct values in all the sizes assigned in different scenarios??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 30 2008
Added on Sep 30 2008
11 comments
1,164 views