关于表空间

来源:互联网 发布:php高级编程 pdf下载 编辑:程序博客网 时间:2024/06/05 00:55
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

关于表空间
从8i开始,Oracle支持两种类型的表空间:
字典管理方式表空间:表空间的所有存储空间的管理信息都保存在数据字典中。
本地管理方式表空间:表空间上所有存储空间的管理信息都保存在数据文件头部的“位图”中。

1、字典管理表空间
createtablespace...
datafile'...'size...unuse
extentmanagementdictionary

2、本地管理表空间
createtablespace...
datafile'...'size...unuse
extentmanagementlocalautoallocate/unformsize...
segmentspacemanagementmanual/auto
.autoallocate
由Oracle负责对区的分配进行自动管理。在Autoallocate方式中,表空间中最小的的区为64KB
.uniformsize...
其带来的最大优点是在表空间中不会产生任何存储碎片,可以避免存储空间的浪费。

.segmentspacemanagementmanual(默认方式)
Oracle将使用可用列表(FreeList)来管理段中的空闲数据块。
.segmentspacemanagementauto
Oracle将使用位图(Bitmap)来管理段中的已用数据块和闲数据块。

<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>