当前位置: 移动技术网 > IT编程>数据库>Oracle > oracle10g全文索引自动同步语句使用方法

oracle10g全文索引自动同步语句使用方法

2017年12月12日  | 移动技术网IT编程  | 我要评论

曲珊珊个人资料,妃子校,南亚兵团香港滋事

oracle10g中context类型的全文索引也可以自动同步了。10g中新引入了2种同步的方式,现在有3种

1、ctx_ddl.sync_index
2、sync(on commit)
3、sync( every …) in parameter setting while creating index

sync(on commit) 是采用的子事务autonomous transaction ; sync(every ..) 是利用的scheduler

复制代码 代码如下:

sql>  create index my_index on t(object_name) indextype is ctxsys.context parameters('sync (every "sysdate+(1/96)")');
index created.

sql> select job_action from  dba_scheduler_jobs where job_name='dr$my_index$j';
job_action

ctxsys.drvdml.auto_sync_index('my_index', 12582912, null,  null, null, 0);

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网