Thanks for your help.
I would like to use this SQL statement in a VB program I'm writing:
select sum(dba_free_space.bytes), sum(dba_data_files.bytes), sum(dba_extents.bytes)
from dba_free_space, dba_data_files, dba_extents
where dba_free_space.tablespace_name=' ' AND
dba_free_space.tablespace_name=' ' AND
dba_extents.tablespace_name=' ';
This should return the total size, used and free space of a tablespace. It works fine except when there is a new tablespace that has not been written to yet. It will not be in the dba_extents table, which will cause the whole statement to fail. Anyone know a way around this?
Thanks
I would like to use this SQL statement in a VB program I'm writing:
select sum(dba_free_space.bytes), sum(dba_data_files.bytes), sum(dba_extents.bytes)
from dba_free_space, dba_data_files, dba_extents
where dba_free_space.tablespace_name=' ' AND
dba_free_space.tablespace_name=' ' AND
dba_extents.tablespace_name=' ';
This should return the total size, used and free space of a tablespace. It works fine except when there is a new tablespace that has not been written to yet. It will not be in the dba_extents table, which will cause the whole statement to fail. Anyone know a way around this?
Thanks