日期:2014-05-17  浏览次数:20987 次

建表时的一些参数pctfree initrans maxtrans storage的含义
-- Create table
create table X_SMALL_AREA
(
  SMALL_AREA_ID NUMBER(10) not null
 )
tablespace TBSL_SDDQ
  pctfree 10
  initrans 1
  maxtrans 255
  storage
  (
  initial 64
  minextents 1
  maxextents unlimited
  );

请教各位指点一下,其中pctfree initrans maxtrans storage的属性的含义解释一下,谢谢

------解决方案--------------------
-- Create table 
create table X_SMALL_AREA 

SMALL_AREA_ID NUMBER(10) not null 

tablespace TBSL_SDDQ --表段X_SMALL_AREA放在表空间TBSL_SDDQ中
pctfree 10 --块保留10%的空间留给更新该块数据使用
initrans 1 --初始化事务槽的个数
maxtrans 255 --最大事务槽的个数
storage --存储参数

initial 64k --区段(extent)一次扩展64k
minextents 1 --最小区段数
maxextents unlimited --最大区段无限制 
);
------解决方案--------------------
表空间包含段
段里包含区段
区段包含数据块

块上的事务槽是对影响该块的事务进行登记使用的

这儿有一些概念http://blog.csdn.net/CYHJRX/archive/2009/02/11/3877369.aspx
------解决方案--------------------
楼主参考下:
http://www.chinaunix.net/jh/19/517843.html
------解决方案--------------------
探讨
-- Create table
create table X_SMALL_AREA
(
  SMALL_AREA_ID  NUMBER(10) not null
)
tablespace TBSL_SDDQ
  pctfree 10
  initrans 1
  maxtrans 255
  storage
  (
    initial 64
    minextents 1
    maxextents unlimited
  );

请教各位指点一下,其中pctfree initrans  maxtrans storage的属性的含义解释一下,谢谢