I am trying to get the size of all tablespaces on an Oracle database. I have tried 2 ways of getting the info.
Option 1 gives me good values, but it doesn't give return any values when the tablespace doesn't have a database file. Specifically, it isn't returning any values for the "TEMP" and "TESTTODELETE" tablespaces.
The only differences I've noticed between these 2 tablespaces and the others are that these 2 don't have .dbf files.
Option 2 gives me the correct values for some tablespaces, but is totally off other times. Option 2 does return something for the "TEMP" tablespace, but it doesn't return anything for the "TESTTODELETE" tablespace.
Both options don't return any information for the tablespace "TESTTODELETE".
What is the best way to get the tablespace total size in MB for all tablespaces so that it reflects what is displayed in the Enterprise Manager?


