怎麼監控oracle數據庫表和表空間的現狀
declare
unf number;
unfb number;
fs
fs
fs
fs
fs
fs
fs
fs
full number;
fullb number;
begin
dbms_space
unf
unfb
fs
fs
fs
fs
fs
fs
fs
fs
full
fullb);
dbms_output
dbms_output
dbms_output
dbms_output
dbms_output
dbms_output
end;
/
select b
a
a
a
round(
from dba_hist_tbspc_space_usage a
(select t
min(rtime) rtime
min(tablespace_id) tablespace_id
from dba_hist_tbspc_space_usage t
inner join v$tablespace t
where t
group by name
) b
where a
and a
order by a
select * from table(dbms_space
From:http://tw.wingwit.com/Article/program/Oracle/201311/19053.html