1、创建表空间,有必要将物理文件设置大一些
2、创建基于这个表空间的用户
3、创建需要建立全文索引的表
4、用管理员帐户为使用这用户开发ctx_ddl权限
grant execute on ctx_ddl to useer;
5、创建适合的lexer(解析器)
exec ctx_ddl.create_references('my_lexer','basic_lexer');
这里创建的basic_lexer解析器,将不支持utf-8的解析
6、为需要添加全文索引的列创建索引
create index myindex on tablename(column_name) indextype is ctxsys.context parameters('lexer my_lexer');
这里选择context类型的索引,将不会自动同步,需要手动设置同步
7、设置同步
打开pl sql developer
右击jobs,选择新建
What值:
BEGIN
ctx_ddl.sync_index('myindex');
commit;
END;
间隔中写:
SYSDATE + (1/24/24)
这表示间隔15分钟同步一次