Bo's Oracle Station

查看: 2114|回复: 0

数据字典存放在两个表空间里:system和sysaux表空间

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2020-12-29 20:56:24 | 显示全部楼层 |阅读模式
(v$视图存放在:1.pfile/spfile 2.controlfile 3.ADR)  
v$视图的总目录是v$fixed_table(dict)

数据字典视图有两个重要特征:1. 底表sys所有 2. 具有dba/all/user_复数

  1. select  * from dba_alert_history;

  2. select  * from dba_hist_active_sess_history;
复制代码

数据字典视图的底表:

  1. select  text from dba_views  where view_name=upper('INT$dba_alert_history');

  2. select  text from dba_views where view_name='INT$DBA_HIST_ACT_SESS_HISTORY';
复制代码
  1. select   * from dba_tables  where  table_name='WRI$_ALERT_HISTORY';

  2. select  * from dba_tables where table_name='WRH$_ACTIVE_SESSION_HISTORY';
复制代码

发现上面两个底表都来自SYSAUX表空间。(SYSAUX表空上有数据字典,但是还有一些APEX。。。。)

SYSAUX表空间上面存放的就是AWR,而AWR就是过去时刻的一群V$视图拍照拍下来整体。

2020-12-29 20-57-54屏幕截图.png

AWR的成分分析:
  1. select substr(table_name, 3,1) , count(*)    from dba_tables  where tablespace_name='SYSAUX'  and owner ='SYS' and table_name  like 'WR_$%'  
  2. group by  substr(table_name, 3,1)
  3. ;
复制代码
R    24
H    118
P    1
I    82
M    12

2020-12-29 21-15-28屏幕截图.png

回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-27 16:10 , Processed in 0.049377 second(s), 27 queries .

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