|
(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;
复制代码
数据字典视图的底表:
- select text from dba_views where view_name=upper('INT$dba_alert_history');
- select text from dba_views where view_name='INT$DBA_HIST_ACT_SESS_HISTORY';
复制代码- select * from dba_tables where table_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_tables where tablespace_name='SYSAUX' and owner ='SYS' and table_name like 'WR_$%'
- group by substr(table_name, 3,1)
- ;
复制代码 R 24
H 118
P 1
I 82
M 12
|
|