`
YY_MM_DD
  • 浏览: 16093 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Storage structure & Relationship

阅读更多
1.目标
a.描述数据库的逻辑结构
b.列出segment的类型和使用
c.控制块空间分配的重要配置
d.了解常用的视图
2.
segment的类型
表,分区表,cluster,index,index-organized-table,index partition,undo,temporary,lob,nested table(嵌套表),bootstrap segment as so on;

Hints
1>:如果存储参数改变,只对将来申请的extents有效.
2>:有些参数在只能在segment级改变,不能在tablespace级
3>:如果在表空间级别定义了minimun extent size将会影响到所有的extents的分配
4>:一个segment可以跨多个数据文件,但是不能跨表空间,一个segment是由连续的block组成,一个extent只能位于一个数据文件里
5>:extent被分配的时候,只有当segment被创建(Created),被扩展(Extended),被改变(Altered)
6>:extent被释放的时候,只有当segmeng被删除(droped),被改变(Altered),被截取(truncated)

db_block_size
1>:系统表空间和临时表空间只能使用db_block_size
2>: db_cache_size缓存标准的block.最小为one granule(sga定义的最小的单位,如果sga大于128M,one granule=16M,否则为4M),Default为64M
3>:DB_nk_cache_size不能是标准block size的大小
4>:定义了blocksize,表空间的块大小就不能被改变

Hints:
1>:对于分区表,所有的分区表空间的blocksize大小必须一致
2>:临时表空间和系统表空间必须是标准的块大小
3>:IOT和LOB segment的块大小可以和表的块大小不一样

Data block size contents
1>:consist of Header,free space,data
2>:重要参数
initrans:控制多少个事务可以对这个块进行操作(Transation slots)
maxtrans:控制最大的事务数
pctfree:最少留存多少的空间,百分比.
pctused:最少的使用空间,也是百分比.

Concepts:
freelist:oracle的segment会收集freelist的链表,如果当某些数据库的使用情况小于pctused的时候,该数据块被加入到freelist的链表中,下次oracle插入记录的时候,就会优先查找freelist的内容.freelist可以理解为block的指针

3>:块管理方式
Automatic segment-space management,采用bitmap管理方式
有专门的block来存放bitmap信息(bittmaped blocks BMSs),只对local extent management的表空间有效,for example:
create tablespace tbspacename datafile ''
extent management local uniform size 64k--(uniform 代表每个extent为64k)
segment space management auto;

Manual management
Concepts:
HWM(High Water Mark)
分享到:
评论

相关推荐

    SSD7 选择题。Multiple-Choice

    What information is necessary when specifying the structure of a table? (a) the name of the table and the amount of storage space to be allocated to the table (b) the name of the table, the ...

    bplustree-disk-io.zip_C++_DEMO_relationship5m6

    A minimal but extreme fast B+ tree indexing structure demo for billions of key-value storage

    数据库系统概念Database System Concept(英文第6版)文字版

    Chapter 10 Storage and File Structure 10.1 Overview of Physical Storage Media 429 10.2 Magnetic Disk and Flash Storage 432 10.3 RAID 441 10.4 Tertiary Storage 449 10.5 File Organization 451 10.6 ...

    Large-Scale Software Architecture.pdf

    2.1 Relationship to other key roles in development organization 25 Role: project management 25 Role: development team managers 25 Role: system architect/chief engineer 26 Role: chief software engineer...

    Mechanical Behavior of Materials (1)

    2.8 Pure Shear: Relationship between G and E 95 2.9 Anisotropic Effects 96 2.10 Elastic Properties of Polycrystals 107 2.11 Elastic Properties of Materials 110 2.11.1 Elastic Properties of Metals 111 ...

    Mechanical Behavior of Materials (2)

    2.8 Pure Shear: Relationship between G and E 95 2.9 Anisotropic Effects 96 2.10 Elastic Properties of Polycrystals 107 2.11 Elastic Properties of Materials 110 2.11.1 Elastic Properties of Metals 111 ...

    Google C++ International Standard.pdf

    4.2 Structure of this document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.3 Syntax notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

    C++ 标准 ISO 14882-2011

    1.5 Structure of this International Standard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.6 Syntax notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

    AD630锁相放大资料

    Storage Temperature, Plastic Package . . . . . –55°C to +125°C Lead Temperature Range (Soldering, 10 sec) . . . . . . . . 300°C Maximum Junction Temperature . . . . . . . . . . . . . . . . . 150°...

    微软内部资料-SQL性能优化5

    The only source of any storage location information is the sysindexes table, which keeps track of the address of the root page for every index, and the first IAM page for the index or table....

    微软内部资料-SQL性能优化2

     Windows 2000 Server Operations Guide, Storage, File Systems, and Printing; Chapters: Evaluating Memory and Cache Usage  Advanced Windows, 4th Edition, Jeffrey Richter, Microsoft Press Related ...

    ZendFramework中文文档

    10.8.5. Fetching a Rowset via a Many-to-many Relationship 10.8.6. Cascading Write Operations 10.8.6.1. Notes Regarding Cascading Operations 11. Zend_Debug 11.1. 输出变量的值 (Dumping Variables) 12...

    vxbus_device_driver_developers_guide_6.9

    Storage Drivers ................................................................................................. 14 Network Interface Drivers ............................................................

Global site tag (gtag.js) - Google Analytics