Home > Database > Mysql Tutorial > body text

Oracle 全文检索

WBOY
Release: 2016-06-07 17:02:38
Original
1187 people have browsed it

使用 like '% %',Oracle会进行全表扫描,相当耗费系统资源,这可以使用oracle的全文检索来提高查询速度。 定期同步优化索引在创建同步与优化存储过程前,要使用sys用户为evan用户赋权:grant execute on ctx_ddl to evan; 不然会报: SQL create or replace

使用 like '%   %',,Oracle会进行全表扫描,相当耗费系统资源,这可以使用oracle的全文检索来提高查询速度。


定期同步优化索引 在创建同步与优化存储过程前,要使用sys用户为evan用户赋权:grant execute on ctx_ddl to evan;
不然会报:
SQL> create or replace procedure hsp_sync_index as
  2   begin
  3      ctx_ddl.sync_index('idx_t_text');
  4   end;
  5   /
警告: 创建的过程带有编译错误。
SQL> show errors
PROCEDURE HSP_SYNC_INDEX 出现错误:
LINE/COL ERROR
-------- -----------------------------------------------------------------
3/5      PL/SQL: Statement ignored
3/5      PLS-00201: 必须声明标识符 'CTX_DDL'
此外还要格外注意一下禁用词。

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!