第二章 体系结构

第二章 体系结构[align=center][/align]
2.2 The files[align=center][/align]
1.The files associated with an instance are simply:
Parameter files--These files tell the Oracle instance where to find the control files.
2.The files that make up the database are:
1)Data files--For the database(these hold your tables, indexes and all other segments)
2)Redo log files--Our transaction logs
3)Control files--Which tell us where these data files are, and other relevant information about their state
4)Temp files--Used for disk-based sorts and temporary storage
5)Password files--Used to authernticate uses
2.2.1Parameter Files
1.There are many different parameter files associated with an Oracle database, from a TNSNAMES.ORA file on a client workstation, to a LISTENER.ORA file on the server, to the SQLNET.ORA, PROTOCOL.ORA,NAMES.ORA,CMAN.ORA and LDAP.ORA files.
2.The parameter file is used at the very least to get the name of the database, and the location of the control files. The control files tell Oracle the location every other file
2.2.2Data Files
1.Data files, along with redo log files, are the most important set of files in the database. This is where all of your data will ultimately be stored.
2.表空间(tablespace)、段(segment)、盘区(extent)、块(block)
3.段是数据库对象,它消耗存储空间——对象,如表、索引、回滚段等等。段本身是由一个或多个盘区组成。盘区是在文件中一个连续的分配空间。每个段至少开始于一个盘区,一些对象可能至少需要两个盘区。
4.盘区由块组成。一个块是在Oracle中空间分配的最小单元。块是存储数据行、索引项、临时排序结果的地方。块是Oracle读写磁盘的对象。Oracle中的块通常有3个常见的大小-2KB\4KB\8KB
5.一个段由一个或多个盘区组成,一个盘区是一些连续分配的块
6.块头包含着块类型信息、关于块上活动和过时事务的信息、磁盘上块的地址信息。表目录包含着此块中存储各行的表的信息。行目录包含着在块中发现的描述行的信息。
头、表目录、行目录、空闲空间、数据
7.表空间是一个容器——它保存段。每一个段恰好属于一个表空间,一个表空间可以有多个段。给定段的所有盘区将在与该段相关的表空间中,段从不跨越表空间边界。
8.Oracle中存储的层次结构如下:
1)数据库由一个或多个表空间组成
2)表空间由一个或多个数据文件组成。一个表空间包含段
3)段(表、索引等)由一个或多个盘区组成。段存在于表空间中,但在表空间中可以有许多数据文件中的数据
4)盘区是在磁盘上连续的块的组。一个盘区在一个表空间中,而且,总是在表空间中单一的文件中
5)块是在数据库中最小的分配单元,块是数据库使用的最小的I/O单元
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值