oracle自管理段,Oracle自动段空间管理(ASSM:autosegmentspacemanagement)

使用ASSM的一个巨大优势是,位图freelist肯定能够减轻缓冲区忙等待(buffer busy wait)的负担,这个问题在Oracle9i以前的版本里

一.官网说明

Logical Storage Structures

Oracle.com/docs/cd/E11882_01/server.112/e16508/logical.htm#CNCPT7668

其中有关ASSM的内容如下:

Logical Space Management

Oracle Database must use logical space management to track and allocate the extents in a tablespace. When a database object requires an extent, the database must have a method of finding and providing it. Similarly, when an object no longer requires an extent, the database must have a method of making the free extent available.

·Locally managed tablespaces (default)

.

·Dictionary-managed tablespaces

shows the alternatives for logical space management in a tablespace.

db829eb06f361acc4603dad072feff81.gif

Description of "Figure 12-3 Logical Space Management"

The following graphic is a conceptual representation of bitmap-managed storage. A1in the header refers to used space, whereas a0refers to free space.

3d9cb18761afa05675bdc2ef5083c44c.gif

A locally managed tablespace has the following advantages:

·Avoids using the data dictionary to manage extents

Recursive operations can occur in dictionary-managed tablespaces if consuming or releasing space in an extent results in another operation that consumes or releases space in a data dictionary table or undo segment.

·Tracks adjacent free space automatically

In this way, the database eliminates the need to coalesce free extents.

·Determines the size of locally managed extents automatically

Alternatively, all extents can have the same size in a locally managed tablespace and override object storage options.

Note:

Oracle strongly recommends the use of locally managed tablespaces with Automatic Segment Space Management.

Segment space managementis an attribute inherited from the tablespace that contains the segment. Within a locally managed tablespace, the database can manage segments automatically or manually. For example, segments in tablespaceuserscan be managed automatically while segments in tablespacetoolsare managed manually.

The ASSM method uses bitmaps to manage space. Bitmaps provide the following advantages:

·Simplified administration

).

·Increased concurrency

·Dynamic affinity of space to instances in an Oracle Real Application Clusters (Oracle RAC) environment

ASSM is more efficient and is the default for permanent, locally managed tablespaces.

Note:

This chapter assumes the use of ASSM in all of its discussions of logical storage space.

(HWM), which is the dividing line between segment space that is used and not yet used. As blocks are used, the database puts blocks on or removes blocks from the free list as needed.

In addition toPCTFREE, MSSM requires you to control space allocation with SQL parameters such asPCTUSED,FREELISTS, andFREELIST GROUPS.PCTUSEDsets the percentage of free space that must exist in a currently used block for the database to put it on the free list. For example, if you setPCTUSEDto40in aCREATE TABLEstatement, then you cannot insert rows into a block in the segment until less than 40% of the block space is used.

As an illustration, suppose you insert a row into a table. The database checks a free list of the table for the first available block. If the row cannot fit in the block, and if the used space in the block is greater than or equal toPCTUSED, then the database takes the block off the list and searches for another block. If you delete rows from the block, then the database checks whether used space in the block is now less thanPCTUSED. If so, then the database places the block at the beginning of the free list.

An object may have multiple free lists. In this way, multiple sessions performing DML on a table can use different lists, which can reduce contention. Each database session uses only one free list for the duration of its session.

, which are collections of free lists. Each group has a master free list that manages the individual process free lists in the group. Space overhead for free lists, especially for free list groups, can be significant.

8cbee6fe5c247d9d6dc0d2b5b6edd9ca.gif

Description of "Figure 12-4 Free List Groups"

PCTUSEDis 40, then the database does not permit inserts into any of these blocks. Because of the difficulty of fine-tuning space allocation parameters, Oracle strongly recommends ASSM.In ASSM,PCTFREEdetermines whether a new row can be inserted into a block, but it does not use free lists and ignoresPCTUSED.

logo.gif, 本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉 本文系统来源:php中文网

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值