数据字典存放在两个表空间里:system和sysaux表空间
(v$视图存放在:1.pfile/spfile 2.controlfile 3.ADR)v$视图的总目录是v$fixed_table(dict)
数据字典视图有两个重要特征:1. 底表sys所有 2. 具有dba/all/user_复数
select* from dba_alert_history;
select* from dba_hist_active_sess_history;
数据字典视图的底表:
selecttext from dba_viewswhere view_name=upper('INT$dba_alert_history');
selecttext from dba_views where view_name='INT$DBA_HIST_ACT_SESS_HISTORY';
select * from dba_tableswheretable_name='WRI$_ALERT_HISTORY';
select* from dba_tables where table_name='WRH$_ACTIVE_SESSION_HISTORY';
发现上面两个底表都来自SYSAUX表空间。(SYSAUX表空上有数据字典,但是还有一些APEX。。。。)
SYSAUX表空间上面存放的就是AWR,而AWR就是过去时刻的一群V$视图拍照拍下来整体。
AWR的成分分析:
select substr(table_name, 3,1) , count(*) from dba_tableswhere tablespace_name='SYSAUX'and owner ='SYS' and table_namelike 'WR_$%'
group bysubstr(table_name, 3,1)
;R 24
H 118
P 1
I 82
M 12
页:
[1]