【问题标题】:Oracle 11g preference does not exist: CTXSYS.AUTO_FILTEROracle 11g 首选项不存在:CTXSYS.AUTO_FILTER
【发布时间】:2014-11-19 19:54:05
【问题描述】:

在创建使用 CTXSYS.AUTO_FILTER 的索引时出现以下错误。

ORA-20000: Oracle Text error:
DRG-10700: preference does not exist: CTXSYS.AUTO_FILTER
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

我想需要运行一些可以重新创建 CTXSYS.AUTO_FILTER 首选项的脚本。 运行哪个脚本?使用 oracle 11g

【问题讨论】:

    标签: database oracle oracle11g


    【解决方案1】:

    或更自动化:

    declare
      filter_count number;
    begin
    select count(*) into filter_count FROM CTXSYS.CTX_PREFERENCES WHERE PRE_NAME = 'AUTO_FILTER';
    IF  filter_count = 0 THEN
       ctx_ddl.create_preference('AUTO_FILTER', 'AUTO_FILTER');
    END IF;
    end;
    /
    

    【讨论】:

      【解决方案2】:

      先检查

      SELECT *
      FROM CTXSYS.CTX_PREFERENCES
      

      然后如果需要:

      ctx_ddl.create_preference('AUTO_FILTER', 'AUTO_FILTER');
      

      【讨论】:

        猜你喜欢
        • 2014-12-16
        • 2012-02-23
        • 1970-01-01
        • 2020-06-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-12-01
        相关资源
        最近更新 更多