select a.file_id "FileNo",a.tablespace_name "Tablespace_name",a.bytes "Bytes",a.bytes-sum(nvl(b.bytes,0)) "Used",sum(nvl(b.bytes,0)) "Free",sum(nvl(b.bytes,0))/a.bytes*100 "%free" from dba_data_files a,dba_free_space b where a.file_id=b.file_id(+) group by a.tablespace_name,a.file_id,a.bytes order by a.tablespace_name;
存储过程都是存放在system表空间的数据字典中,可以使用视图dba_source来查看你感兴趣的存储过程(未加密的)。而你想察看某个表空间有什么表/索引,去视图dba_tables/dba_indexes中察看把,限制一下tablespace_name,就会得到你想要得。
select * from dba_tables where tablespace_name='SYSAUX'
select * from dba_indexes where tablespace_name='SYSAUX'