您的位置:首页 > 数据库 > Oracle

oracle 点滴

2007-05-28 15:38 204 查看
为了更好的介绍Oracle主要组成部分,首先我给大家一张结构图,有一个整体感觉。
create table tcc_ne_snap
(
ne_id integer not null ,
ne_type integer not null ,
first_result date not null ,
compress_date date not null ,
s_month smallint,
related_ne1 integer not null ,
cat38_sv_id integer,
cat39_sv_id integer,
unique (first_result,ne_type,ne_id,s_month) USING INDEX LOCAL STORAGE( initial 30000 k next 30000 k) ,
primary key (compress_date,ne_type,ne_id,s_month) USING INDEX LOCAL STORAGE( initial 30000 k next 30000 k)
)
partition by range (s_month) (
PARTITION VALUES LESS THAN (2 ) TABLESPACE apmdbs11 ,
PARTITION VALUES LESS THAN (3 ) TABLESPACE apmdbs1 ,
PARTITION VALUES LESS THAN (4 ) TABLESPACE apmdbs2 ,
PARTITION VALUES LESS THAN (5 ) TABLESPACE apmdbs12 ,
PARTITION VALUES LESS THAN (6 ) TABLESPACE apmdbs3 ,
PARTITION VALUES LESS THAN (7 ) TABLESPACE apmdbs4 ,
PARTITION VALUES LESS THAN (8 ) TABLESPACE apmdbs5 ,
PARTITION VALUES LESS THAN (9 ) TABLESPACE apmdbs6 ,
PARTITION VALUES LESS THAN (10 ) TABLESPACE apmdbs7 ,
PARTITION VALUES LESS THAN (11 ) TABLESPACE apmdbs8 ,
PARTITION VALUES LESS THAN (12 ) TABLESPACE apmdbs9 ,
PARTITION VALUES LESS THAN (13 ) TABLESPACE apmdbs10
)
storage(initial 600000 k next 20480k freelists 4 ) pctfree 0 ;
这时你按月查询数据的时候,是不是会很快呢?呵呵!

table space 的组成单位: table space -> partition -> segment -> block

不同的用户登录后所能看到的也不同,oracle 有很完备的roles 和 users 管理,是基于RBAC 的表现形式,权限分配给roles ,而不同的user会分配到一个或多个roles。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: