oracle里面cat,Oracle文本catsearch多个在一个谓词中

我有一个包含2列varchar2类型的表.

我创造了2个空格

CREATE INDEX DOC_IDX_1

ON DOCUMENTO

( column1

)

INDEX TYPE IS CTXSYS.CTXCAT

;

CREATE INDEX DOC_IDX_2

ON DOCUMENTO

( column2

)

INDEX TYPE IS CTXSYS.CTXCAT

;

当我执行查询

select *

from table1

where CATSEARCH(column1, 'AAA', NULL) > 0

AND CATSEARCH(column2 , 'BBBb', NULL) > 0

我收到以下错误

ORA-20000: Oracle Text error:

DRG-10849: catsearch non supporta il richiamo funzionale

DRG-10599: la colonna non è indicizzata

20000. 00000 - "%s"

*Cause: The stored procedure 'raise_application_error'

was called which causes this error to be generated.

*Action: Correct the problem as described in the error message or contact

the application administrator or DBA for more information.

英文翻译是:

$oerr drg 10849

10849,0, "catsearch does not support functional invocation"

// *Cause: the query plan for your query is invoking a catsearch operator

// functionally rather than as an index rowsource. The catsearch

// operator does not support functional invocation

// *Action: add optimizer hints so that all catsearch operators are

// performed through index scans

// *Mnemonic: QE_CATSEARCH_FUNCINV

//

10599,0, "column is not indexed"

// *Cause: The column specified is not indexed.

// *Action: Create index on the column before performing this operation

// *Mnemonic: DL_COLUMN_NOT_INDEXED

我该如何解决这个问题?

谢谢

塞尔吉奥

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值