SYSAUX表空间的重建试验
(2012-03-13 09:34:40)
标签:
杂谈 |
分类: oracle |
SYSAUX表空间重建测试 (http://www.itpub.net/forum.php?mod=viewthread&tid=1477610&highlight=sysaux)
一位网友问我,SYSAUX表空间坏了,文件无法读取,而且没有备份,怎么办?我冒出了一个想法:重建。于是有了这个试验
看看官方文档中对sysaux表空间的描述:
The SYSAUX tablespace is always created at database creation. The
SYSAUX tablespace
serves as an auxiliary tablespace to the SYSTEM tablespace. Because
it is the default
tablespace for many Oracle Database features and products that
previously required
their own tablespaces, it reduces the number of tablespaces
required by the database.
It also reduces the load on the SYSTEM tablespace.
可以看到,SYSAUX表空间是SYSTEM的辅助表空间,从名称上就能看出来--SYStem AUXililary。它在oracle10g中引入,用以分担SYSTEM表空间的负载以及对一些组件的集中管理。它不是必需的,但如果没有SYSAUX,很多功能将无法使用。以下是我的测试库中SYSAUX中存放的组件:
SQL> col occupant_name format a30
SQL> col schema_name format a30
SQL> select occupant_name,schema_name from
v$sysaux_occupants;
OCCUPANT_NAME
------------------------------ ------------------------------
LOGMNR
LOGSTDBY
STREAMS
XDB
AO
XSOQHIST
XSAMD
SM/AWR
SM/ADVISOR
SM/OPTSTAT