Bo's Oracle Station

查看: 2359|回复: 0

(52-32)第52次:上完1Z0-053第12章,2016-03-08星期二

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2016-3-9 11:10:58 | 显示全部楼层 |阅读模式
本帖最后由 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;


  
  




回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-20 13:18 , Processed in 0.034322 second(s), 24 queries .

快速回复 返回顶部 返回列表