Oracle10g中context类型的全文索引也可以自动同步了。10g中新引入了2种同步的方式,现在有3种
- ctx_ddl.sync_index
- sync(on commit)
- 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);