Oracle OCP认证考试题库解析052-3

QUESTION 3


You executed the following command to create a tablespace called SALES_DATA:

SQL> CREATE TABLESPACE sales_data

     DATAFILE SIZE 100M

     SEGMENT SPACE MANAGEMENT AUTO;

 

Which two statements are true about the SALES_DATA tablespace? (Choose two)

 

A. The database automatically determines the extent-sizing policy for the tablespace.

B. The segments are automatically shrunk when the contents are removed from them.

C. The allocation of extents within the tablespace is managed through the dictionary tables.

D. The space utilization description of the data blocks in segments is recorded in bitmap blocks.

E. The space utilization description of the data blocks in segments is managed through free lists.

 

Correct Answer: AD

 

Explanation/Reference:

 

段空间管理本地管理的表空间中的段空间管理方式可指定为:

 

自动:Oracle DB 使用位图管理段中的空闲空间.位图描述了段中每个数据块的状态,该状态与可插入行的块中的空间量有关.当数据块中可用空间增多或减少时,位图中会反映数据块的新状态.通过使用位图,Oracle DB 可以提高管理空闲空间的自动化程度.因此,这种空间管理方式称为"自动段空间管理(ASSM)".

 

手动:此方法指定要使用空闲列表来管理段中的空闲空间.空闲列表是由一些数据块组成的列表,这些数据块中有可插入行的空间.由于这种管理段空间的方式需要为在表空间中创建的方案对象指定并优化PCTUSEDFREELISTSFREELIST GROUPS存储参数,因此这种方式称为"手动段空间管理".支持使用此方法是为了向后兼容,建议使用ASSM.

 

可通过dba_tablespaces查看分区和段空间管理方式:

 

SYS@ENMOEDU> select tablespace_name,extent_management,segment_space_management      from dba_tablespaces;

 

TABLESPACE_NAME               EXTENT_MAN       SEGMEN

----------------             ----------        ------

SYSTEM                         LOCAL              MANUAL

SYSAUX                         LOCAL              AUTO

TEMP                           LOCAL              MANUAL

USERS                          LOCAL              AUTO

EXAMPLE                        LOCAL              AUTO

UNDOTBS1                       LOCAL              MANUAL

 

 


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值