Q  题目  


Which is true about the SYSTEM and SYSAUX tablespace?

A. Only the SYSTEM tablespace contains data dictionary tables.

B. Both tablespaces must be online for a database to be accessible.

C. Both tablespaces can be used for temporary storage if no temporary tablespace is defined.

D. The SYSAUX tablespace can be made read-only but the SYSTEM tablespace cannot.



       
A  答案  



Answer:A

对于B选项,SYSAUX可以OFFLINE

对于C选项,SYSAUX和SYSTEM都是永久表空间,所以,不能用于临时表空间。

对于D选项,SYSAUX和SYSTEM都不能设置为READ ONLY。

在一般情况下,企业产生的业务数据应该存放在单独的数据表空间,而不应该使用系统已存在的表空间,尤其不能将业务数据保存到SYSTEM和SYSAUX表空间中,所以,DBA需要着重关注SYSTEM和SYSAUX表空间的占用情况。

Oracle服务器使用SYSTEM表空间管理整个数据库。这个表空间包含系统的数据字典和关于数据库的管理信息,这些信息均包含在SYS方案中,只有SYS用户或者拥有所需权限的其它管理用户才可访问这些信息。SYSTEM表空间用于核心功能(例如数据字典表)。

SYSAUX是SYSTEM表空间的辅助表空间。Oracle DB早期版本中某些使用SYSTEM表空间或其本身表空间的组件和产品现在改为使用SYSAUX表空间。每个Oracle Database 10g(或更高版本)数据库都必须拥有SYSAUX表空间。辅助表空间SYSAUX用于附加的数据库组件,例如,OEM库(Oracle Enterprise Manager Repository)、AWR快照信息库、统计信息、审计信息等。

SYSTEM和SYSAUX表空间是在创建数据库时创建的必需存在的表空间。这些表空间必须联机。在OPEN状态下,SYSAUX表空间可以脱机以执行表空间恢复,而SYSTEM表空间则不能,这两种表空间都不能设置为只读状态。在MOUNT状态下,任何表空间都可以脱机。

 

SYS@OCPLHR1> alter tablespace SYSTEM offline;

alter tablespace SYSTEM offline

*

ERROR at line 1:

ORA-01541: system tablespace cannot be brought offline; shut down if necessary

 

 

SYS@OCPLHR1> alter tablespace SYSaux offline;

 

 

Tablespace altered.

 

SYS@OCPLHR1> alter tablespace SYSaux read only;

alter tablespace SYSaux read only

*

ERROR at line 1:

ORA-13505: SYSAUX tablespace can not be made read only

 

 

SYS@OCPLHR1>  alter tablespace SYSaux online;

 

Tablespace altered.

 

SYS@OCPLHR1>  alter tablespace SYSaux read only;

 alter tablespace SYSaux read only

*

ERROR at line 1:

ORA-13505: SYSAUX tablespace can not be made read only

 

 

SYS@OCPLHR1> alter tablespace SYStem read only;

alter tablespace SYStem read only

*

ERROR at line 1:

ORA-01643: system tablespace can not be made read-only