|
本帖最后由 botang 于 2016-3-11 10:14 编辑
select * from v$flashback_Database_log;
--2033347
select bytes/1024/1024, file_name
from dba_data_files where tablespace_name='USERS';
select bytes/1024/1024
from dba_free_space where tablespace_name='USERS';
alter database datafile '+DATA/orcl/datafile/users.259.816169553' resize 97M;
--2056303
select * from v$restore_point;
select count(*) from dba_tables t
where t.table_name like 'WR_$%';
--243
select count(*) from dba_tables t
where t.table_name like 'WRI$%';
--87
select count(*) from dba_tables t
where t.table_name like 'WRH$%';
--125
select count(*) from dba_tables t
where t.table_name like 'WRR$%';
--21
select count(*) from dba_tables t
where t.table_name like 'WRM$%';
--10
-----------------------------------------------
select * from dba_views v where v.view_name='DBA_ALERT_HISTORY';
----
select count(*) from hr.tbig;
select t.num_rows , t.last_analyzed
from dba_tables t where t.owner='HR' and t.table_name='TBIG';
select * from dba_tab_col_statistics t where t.owner='HR' and t.table_name='TBIG';
select * from dba_histograms h where h.owner='HR' and h.table_name='TBIG';
select dbms_stats.get_prefs(pname => 'STALE_PERCENT',ownname => 'HR',
tabname => 'TBIG') from dual;
----
begin
dbms_stats.set_table_prefs('HR','TBIG','STALE_PERCENT','13');
end;
|
|