I need to determine the MAXSIZE that was set for a tablespace when it was created (Oracle 10g)
I’m sure I’m missing something obvious, but the information isn’t immediately apparent in the information in DBA_TABLESPACES.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In 11g this query would give you the answer, but I notice you’re on 10g and alas the useful column is missing.
In 10g you will have to
Remember that this is the default maximum size. In practice you will be limited by the size of the datafiles assigned to the tablespace, which might be much less than this theoretical maximum.
edit
@Paul ‘s comment is pertinent. I suppose the correct answer would be to say that the maximum size of a tablespace is a meaningless, indeed almost fictional, concept. The size of a tablespace is actually determined by its datafiles, and its potential maximum maximum size is determined by the maximum number of datafiles which can be assigned. The SQL Reference has this to say on the topic:
So perhaps this is a more useful query …
…with the caveat that it only applies to the currently assigned datafiles.
edit 2
MAXSIZE applies to the datafile not the tablespace. That is why the MAXSIZE keyword is discussed in the documentation for the filespec clause rather than under CREATE TABLESPACE.