Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7576073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:50:07+00:00 2026-05-30T16:50:07+00:00

I am having an issue executing this query. SELECT * FROM gob_attachment WHERE CONTAINS

  • 0

I am having an issue executing this query.

SELECT * FROM gob_attachment 
WHERE CONTAINS (gob_a_document, 'java') > 0

It’s giving me

ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error: 
ORA-00942: table or view does not exist

29902. 00000 -  "error in executing ODCIIndexStart() routine"
*Cause:    The execution of ODCIIndexStart routine caused an error.
*Action:   Examine the error messages produced by the indextype code and
       take appropriate action.

After some googling I’ve disovered that problem could be in index, but when I looked at the table and index they seemed ok to me.

Create script for index is looking like this

CREATE INDEX FTSI_GOB_A_DOCUMENT 
 ON GOB_ATTACHMENT (GOB_A_DOCUMENT) 
 INDEXTYPE IS CTXSYS.CONTEXT;

Only thing which is strange to me is that when I look to Edit Table in Table properties in SQL Developer I can see that Operational Status of index is FAILED. Does anyone know what does it mean?Maybe DB rights?

Also it’s working when I use

dbms_lob.instr(gob_a_document, utl_raw.cast_to_raw('java')) > 0

instead of contains

Thanks for any advice

P.S. It’s related to my previous question Oracle DBMS_LOB.INSTR and CONTAINS performance

UPDATE

After recreating the index and some playing around, I’ve disovered that I can execute the query above, but it won’t return me anything.

If I try it with CONTAINS(gob_a_document, '%'), the result is 26 rows and don’t know by which key the query selected them(at least I didn’t find anything obvious, I’ll investigate it more). Problem could be in that we are using Oracle 10g and storing DOCX files which are supported from version 11.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:50:08+00:00Added an answer on May 30, 2026 at 4:50 pm

    “Operational Status of index is FAILED”

    Okay, this means your CREATE INDEX statement failed. Did you get an error message? I guess the answer is yes but you missed it. So what you need to do is:

    • drop the index
    • re-run the CREATE INDEX statement
    • if it throws an error, make a note of the reason and fix it

    In case it’s not obvious, the other statement runs because it’s not attempting to use your CONTEXT index. It’s doing the search the hard way.


    “The thing was that the index was already created in DB,”

    No the real thing was the index failed to create properly, hence its status. You could just have rebuilt the index, but it is usually better to fix the underlying cause of failure first. That’s why I advised you to drop and recreate. Obviously the original failure was due to some ambient condition which no longer applies.


    “Now the query is executed, but it’s not giving me any results(0 rows
    returned). (and I am sure that it should return like 100 rows) “

    So that sounds like you are storing documents in a binary format. What sort of documents? Are they in a supported format? That will depend upon which version of Oracle you’re using. For instance, Oracle Text 10g supports up t Word 2003 (i.e. DOC only) whereas Oracle Text 11g supports Word 2007 (i.e. DOCX as well).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having an issue related to executing a .Net dll from a classic
I'm having a performance issue with a select statement I'm executing. Here it is:
I'm having an issue executing jruby from the mingw git bash shell in windows.
I am having difficulty executing a MS SQL Server stored procedure from Java/jsp. I
I am having an issue with executing a perl script from php using the
I'm having some issues with the entity framework. I'm executing a simple select from
I'm having an issue executing a Python script from a PHP script. My client
I'm having an issue with a query that currently uses LEFT JOIN weblog_data AS
I am having issues executing a SQL statement from a stored proc having single
Running KODO 4.2 and having an issue inefficient queries being generated by KODO. This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.