oracle10g全文索引自动同步语句使用方法
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 fromDBA_SCHEDULER_JOBS where job_name='DR$MY_INDEX$J';
JOB_ACTION
ctxsys.drvdml.auto_sync_index('MY_INDEX', 12582912, NULL,NULL, NULL, 0);
https://www.uoften.com/dbs/oracle/20180415/73108.html
页:
[1]