设为首页 加入收藏

TOP

Oracle全文检索方面的研究(全5)
2014-11-24 08:12:02 来源: 作者: 【 】 浏览:2
Tags:Oracle 全文检索 面的 研究

3.5 Storage 属性

Oracle 全文检索通常会生成一系列的辅助表,生成规则是dr$+索引名+$+表用途标识,

由于这些表是oracle 自动生成的,通常没有办法为这些表指定存储空间。为构造text 索引所

生成的辅助表指定表空间、存储参数(use the storage preference to specify tablespace and

creation parameters for tables associated with a text index),oracle 提供了单一的存储类型

basic_storage。

在mytable1 表中建立了全文索检索myindex,系统中会自动产生如下5 个表:

DR$MYINDEX$I,DR$MYINDEX$K,DR$MYINDEX$R,DR$MYINDEX$X,MYTABLE1

参考脚本

--建立basic storage

Begin

Ctx_ddl.create_preference(mystore, basic_storage); --建立storage

Ctx_ddl.set_attribute(mystore, --设置参数

i_table_clause,

tablespace foo storage (initial 1k));

Ctx_ddl.set_attribute(mystore,

k_table_clause,

tablespace foo storage (initial 1k));

Ctx_ddl.set_attribute(mystore,

r_table_clause,

tablespace users storage (initial 1k) lob

(data) store as (disable storage in row cache));

Ctx_ddl.set_attribute(mystore,

n_table_clause,

tablespace foo storage (initial 1k));

Ctx_ddl.set_attribute(mystore,

i_index_clause,

tablespace foo storage (initial 1k) compress 2);

Ctx_ddl.set_attribute(mystore,

p_table_clause,

tablespace foo storage (initial 1k));

End;

--建立索引

Create index indx_m_word on my_word(docs) indextype is ctxsys.context

parameters(storage mystore);

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Oracle全文检索方面的研究(全8) 下一篇Oracle全文检索方面的研究(全3)

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·如何理解c语言指针和 (2025-12-27 01:19:11)
·为什么C标准库没有链 (2025-12-27 01:19:08)
·玩转C语言和数据结构 (2025-12-27 01:19:05)
·MySQL 基础入门视频 (2025-12-26 23:20:22)
·小白入门:MySQL超详 (2025-12-26 23:20:19)