Sorry for the newbie question...

Requirement:
return all documents that does not contain the word "mango".

Typed code:

where contains (ts_files.doc_blob, 'not mango', 1) & gt; 0)

-& gt; ts_files is the table that contains the files.
-& gt; doc_blob is the blob field where the files are located.

Returned the error ?  :| :

ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle text error:
DRG-50901: query analysis on line 1, column 2 text syntax error

Can YOU help me, please?

Mathew

If you have other criteria to highlight "not mango", that might work. With a small number of lines, "% not mango" works. However, with a large number of lines with the various data, since most of these paintings, "% not mango" is likely to lead to an expansion of generic request error. Alternatives are to use "contains (...)" = 0 "or"not (contains...). > 0". It will be always use the domain index, but avoid the problem with the wildcard character to extend to too many terms. Please see the demo below.

SCOTT@orcl_11g> CREATE TABLE ts_files (doc_blob VARCHAR2(60))
  2  /

Table created.

SCOTT@orcl_11g> INSERT INTO ts_files VALUES ('apple')
  2  /

1 row created.

SCOTT@orcl_11g> INSERT INTO ts_files
  2  SELECT 'mango ' || object_name FROM all_objects
  3  /

68584 rows created.

SCOTT@orcl_11g> CREATE INDEX your_index ON ts_files (doc_blob)
  2  INDEXTYPE IS CTXSYS.CONTEXT
  3  /

Index created.

SCOTT@orcl_11g> EXEC DBMS_STATS.GATHER_TABLE_STATS (USER, 'TS_FILES')

PL/SQL procedure successfully completed.

SCOTT@orcl_11g> SET AUTOTRACE ON EXPLAIN
SCOTT@orcl_11g> SELECT * FROM ts_files
  2  WHERE  CONTAINS (ts_files.doc_blob, '% not mango', 1) > 0
  3  /
SELECT * FROM ts_files
*
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-51030: wildcard query expansion resulted in too many terms

SCOTT@orcl_11g> SELECT * FROM ts_files
  2  WHERE  CONTAINS (ts_files.doc_blob, 'mango', 1) = 0
  3  /

DOC_BLOB
------------------------------------------------------------
apple

Execution Plan
----------------------------------------------------------
Plan hash value: 1960511866

------------------------------------------------------------------------------------------
| Id  | Operation                   | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT            |            | 64644 |  1893K| 11343   (1)| 00:02:17 |
|   1 |  TABLE ACCESS BY INDEX ROWID| TS_FILES   | 64644 |  1893K| 11343   (1)| 00:02:17 |
|*  2 |   DOMAIN INDEX              | YOUR_INDEX |       |       | 10781   (0)| 00:02:10 |
------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   2 - access("CTXSYS"."CONTAINS"("TS_FILES"."DOC_BLOB",'mango',1)=0)

SCOTT@orcl_11g> SELECT * FROM ts_files
  2  WHERE  NOT CONTAINS (ts_files.doc_blob, 'mango', 1) > 0
  3  /

DOC_BLOB
------------------------------------------------------------
apple

Execution Plan
----------------------------------------------------------
Plan hash value: 1960511866

------------------------------------------------------------------------------------------
| Id  | Operation                   | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT            |            | 64644 |  1893K| 11343   (1)| 00:02:17 |
|   1 |  TABLE ACCESS BY INDEX ROWID| TS_FILES   | 64644 |  1893K| 11343   (1)| 00:02:17 |
|*  2 |   DOMAIN INDEX              | YOUR_INDEX |       |       | 10781   (0)| 00:02:10 |
------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   2 - access("CTXSYS"."CONTAINS"("TS_FILES"."DOC_BLOB",'mango',1)<=0)

SCOTT@orcl_11g> 

Tags: Database

Similar Questions

  • Reader Extensions that solve? (Sorry for the stupid question)

    I tried to understand what RE done, but my little brain is not up to it. Here's my situation:

    I have no server. I have a form created using LS which is distributed to 50 users using Acrobat Reader. These users will be complete the form, save it, possibly print and email the filled-inform.

    The form requires some sort of database containing the names and multiple addresses. The names are used to populate a drop-down list contained in a subform repeatable. Whenever a new instance of the subform is created, the drop-down list is populated with the list of names for the selection. Selecting a name causes the address information be completed automatically in the subform.

    My solution so far is to have an another repeatable subform (1 to n instances) that contains the name/address information. The administrator enters the name/address information (1 per instance of subform), and then save the form, and then automatically sends it to the end user. Whenever info name/address changes, a new version of the form is distributed: end user does never update this information.

    It would be useful to maintain the name/address info in a spreadsheet instead. This would facilitate the maintenance of data (copy, sort, etc.). My understanding is that I can not use a data connection in the excel worksheet because of rights on strictly local forms management. This interpretation is correct?

    I want to distribute the form and an excel worksheet in order to update the form and the data independently.

    It seems that RE can address this problem? Is this correct?

    Thanks to everyone for all the advice and information!

    Reader Extensions allows you to turn on player features based on form by form. By default the player would not have the feature in question. There are two versions of Reader Extensions. You use inside Acrobat will allow you to add the right to save a PDF file locally, add a digital signature, and add his comments. The Acrobat version also has a license that allows you to distribute the Reader Extended form will allow only a maximum of 500 users.

    The other version is a server based product and a module inside the LiveCycle server. It has all the features mentioned above as well as the ability to connect to sources external to the form (such as a database or a web service). It supports other extensions, but you did not mention those so I focused on those that you need.

    Note that you need only drive to extend the form once (before distributing it).

    So, to accomplish what you want, you will need the version of the server.

    Hope that helps

    Paul

  • TCP/UDP endpoint Viewer has encountered a problem and needs to close. We are sorry for the inconvenience

    TCP/UDP endpoint Viewer has encountered a problem and needs to close. We are sorry for the inconvenience.  It appears each time I try to open the tcp view to monitor connections to my computer.  Why is it that happens when I open other downloads very well - including tcpvcon.

    Hello

    I suggest you post this question in the Windows XP IT Pro forums: http://social.technet.microsoft.com/Forums/en-US/category/windowsxpitpro

    Thank you.

  • scnotification has encountered a problem and the need to fill. We are sorry for the inconvenience.

    Hi team,

    I get this error window again and again. It keeps popping up.
    "scnotification has encountered a problem and need to close. We are sorry for the inconvenience. "
    When I tried in the sites I don't get the solution for this.
    Please help me to disable.
    Thank you
    Sandesh

    Hey Anshul,

    Yes, it's in the domain network.
    No hardware / software changes have been made.
    normally when I opened all the windows / browsers, this will start to come.
    I am running windows XP.
    Please tell me why it is causing the problem.
    Thank you
    Sandesh

    This forum is designed for Windows 7. Furthermore, the guys here, will not be able to answer your questions about a domain network.

    You can find someone who knows more about the Microsoft Technet forums - (the link is on the Aussie forum). These are the nuts and bolts of good Windows forums.

    See you soon!

  • Cannot install 2 black & white or command conquer games. Error:Setup.exe has encountered a problem and needs to close. We are sorry for the inconvenience.

    The error occurs when I insert the game black & white 2 or command and conquer the first decade and click install on a automotive screens popping up, I am sure that these two errors are almost identical and sure if one is fixed so will the other be.

    The error that says "Setup.exe has encountered a problem and needs to close. We are sorry for the inconvenience. »

    To try to fix it already I found a page here which tells me how to install drivers different installshield, and I installed everything that have been listed. My operating system is Windows Xp home edition

    Hello

    Were you able to install these games without any problem before?
    Step 1: Install all updates of windows on your computer and check the number.
    Reference: http://support.microsoft.com/kb/306525 

    Step 2: Copy the game on your computer, then check the issue.

    Step 3: Perform the clean boot your computer.


    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".
    Follow the steps provide in the article below to perform the clean boot. http://support.Microsoft.com/kb/929135
    Note: To restore your computer to a Normal startup mode, follow these steps:

    1. click on start in the box start the search.
    2. type msconfig and press ENTER.
    If you are prompted for an administrator password or a confirmation, type the password, or provide confirmation.
    3. on the general tab, click Normal Startup - load all device drivers and services and then click OK.
    4. When prompted, click on restart.

    Thanks and greetings
    Umesh P - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • How can I fix error Pure Networks Platform Service has encountered a problem and needs to close. We are sorry for the inconvenience.

    Whenever my computer load I get this darn error. Pure Networks Platform Service has encountered a problem and needs to close.  We are sorry for the inconvenience. I also get a pop up nmsrvc.exe Application error. The statement as "0x66f23ff0" referenced memory at "0x00000000". The memory could not be 'read' PLEASE HELP!

    Hi heat110,
     
    -What is the brand and model of the router you are using?
     
    -You "Network Magic" software installed on your computer?
     
    Method 1: As a first step, try to restart the service of Pure platform of networks on your computer.
     
    Follow these steps to do the same thing:
     
    a. Click Start. Click run. Type Services.msc and press ENTER.
     
    (b) in the Services window, search for Pure Networks Platform service.
     
    c. right-click on the service and click on restart.
     
    d. restart the computer and check if you have got rid of the error message.
     
    Method 2: Uninstall Network Magic software and then re - install the software by downloading from the website of the manufacturer if necessary.
  • "update.exe has encountered a problem and needs to close. We are sorry for the inconvinience.

    Hello

    Uses a deployment tool to deploy the patches in the environment, and this time after doing so I am getting an error below

    "update.exe has encountered a problem and needs to close. We are sorry for the inconvinience.

    Please help its critics.

    Concerning

    Vikram

    It is a forum for specific consumers.

    You will find appropriate support (such as it is) in this forum-online http://social.technet.microsoft.com/Forums/en-US/itproxpsp

  • Explorer Windows has encountered a problem and needs to close, sorry for the inconvenience into account only one user. Other user accounts properly.

    This problem deals with only one of my user accounts, where the user accounts function correctly.  When my wife logs in to his user account, it receives the error "windows Explorer has encountered a problem and needs to close, sorry for the inconvenience."  No ICONS or deskbar charge upward; However, my daughter and my user account functions properly.

    I did a system successfully restore to a previous point, but the problem remains.

    If you are still having problems with Windows Explorer crashing, I suggest to consider the suggestion offered by ShadowKat:

    "Hello people, it seems that some guys out there are still having trouble with this random crashes. I have the same problem, except that it happens every time that I go to my media files on my NAS. It seems that there is a bug or something with windows that causes this problem when you access a folder to storage media like mine, especially when the size of the file is very large (archive all my discs of film there for convenience and continuous =), about 1 TB of data). Windows capable of generating thumbnail images for your files and blocks the Explorer as well.

    I solved this by going to my computer > click the "Organize" (upper-left) > folder and search options > view tab check "Show icons, never thumbnails" option and uncheck the "display file on the photos." This prevents windows to generate images and solved the problem for me. Less visually flashy Yes, but at least not need a cloth and restart is).
    I hope this helps and good luck!
    ShadowKat. »
     
    If you're still having problems after this, I suggest that to start a new thread in the following location:
     
     
    I hope this helps.
  • Spooler SubSystem App has encountered a problem and needs to close. We are sorry for the inconvenience.

    Spooler SubSystem App has encountered a problem and needs to close.  We are sorry for the inconvenience.

    Hello

    1. When you get this error message?

    2. that you get this error message when printing?

    3. What is the brand and model of the printer?

    4. don't you make changes to the computer before the show?

    Please provide us with more information on this issue to help you best.

    If you get this error when printing, follow the steps from the link below.

    Important: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    http://support.Microsoft.com/kb/322756

    How to back up and restore the registry in Windows

    http://support.Microsoft.com/kb/810894

  • Need help for - LifeCam.exe has encountered a problem and needs to close. We are sorry for the inconvenience.

    Trying to get my Microsoft Life Cam HD5000 video work.  He worked until a week on Windows XP there and all of a sudden stopped sending this message

    LifeCam.exe has encountered a problem and needs to close. We are sorry for the inconvenience.

    I uninstalled the program and reinstalled and this notice appears again with this 'mistake' being

    AppName: lifecam.exe AppVer: 3.60.253.0 ModName: kernel32.dll

    Any ideas on how to fix as all drivers are up-to-date and update of the software.   As mentioned he wasn't working a week so there is no idea why the video suddenly stopped.

    Concerned

    Hi Concerned25,

    This problem may occur if you have one of the programs listed below, installed in conjunction with the lifecam.

    Earthlink total access.

    Venturi VClient

    Nero

    Studio9 Pinnacle systems software

    F-Secure internet security

    Dell Web cyber coach

    AOL or Yahoo toolbar

    FixIt utility.

    To solve this problem and find workarounds, see the link below.

    http://support.Microsoft.com/kb/953692

  • When I start the software Black Berry via the Office to receive the error message "the Black Berry Desktop software has encountered a problem and needs to close. We are sorry for the inconvenience. »

    Original Titus: cannot install software blackberry "BOLD"

    When I start the software Black Berry through the icon to the desktop, the windows error reporting or display below:

    Quote: Black Berry Desktop has encountered a problem and needs to close. We are sorry for the inconvenience.

    If you were in the middle of something, the information you were working on might be lost.

    Please tell this problem to Microsoft.

    We have created an error report that you can send improve us Black Berry Desktop Software. We will treat this report as confidential and anonyomous.

    End of quote

    What data means this error report contain?

    Why should I report to Microsoft?

    I received error below during the repair software blackberry

    Quote: The path:

    ' C:\DOCUME "1\HLZUTS" 2\LOCALS "1\TEMP\WZSE1. Berry TEMP\BLACK Office software.msi' is not found. Make sure you have access to this location and try again, or try to find the installation package "Black Berry Desktop Software.msi" as a folder that you can install the Black Berry Desktop Software 6.1 product

    End of quote

    No path

    Hi ZiaHL,

    Try the steps listed in the article mentioned below and check if it helps you to fix the problem:

    "BlackBerry Desktop Manager has encountered a problem and needs to close. We are sorry for the inconvenience. "during the synchronization process

    http://BTSC.webapps.BlackBerry.com/BTSC/dynamickc.do?externalId=KB10340&sliceId=&command=show&forward=nonthreadedKC&kcId=KB10340

    You can also view the article mentioned below for more information:

     

    BlackBerry Desktop Software issues fixed in this release

    http://docs.BlackBerry.com/en/Admin/deliverables/20936/BlackBerry_Desktop_Software_Fixed_904527_11.jsp

    Let us know if that helps.

  • "Any new name for the program" has encountered a problem and needs to close. Sorry for the inconvience

    Whenever we try to install something new, that settles it, but when we get the same error message

    "the new name of the program" has encountered a problem and needs to close.  Sorry for the inconvience

    We can't get anything to run now

    Hello

    1 is this problem limited only when installing an application?
    2. what application are you trying to install?

    Method 1.
    I recommend you to reregister the Installer engine.
    Here's how:
    a. Click Start, click Accessories and then click command prompt.
    b. at the command prompt, type the following and press ENTER after each line:

    MSIExec /Unregister
     
    MSIExec/regserver

    Method 2.
    For other methods, see the article below.
    How to troubleshoot issues that may occur when you install, uninstall, or upgrade one program on a Windows computer
    http://support.Microsoft.com/kb/2438651/en-us

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • SELF-PROTECTION MONITOR HAS ENCOUNTERED A PROBLEM AND NEEDS TO CLOSE. WE ARE SORRY FOR THE INCONVENIENCE

    Original title: Tamper monitor

    I KEEP AN ERROR MESSAGE "TAMPER MONITOR HAS ENCOUNTERED A PROBLEM AND NEEDS TO CLOSE.  WE ARE SORRY FOR THE INCONVENIENCE ".  HE COME EVERY 3 TO 4 MINUTES, IF YOU CLICK SEND ERROR REPORT OR DON'T SEND IT DISAPPEARS, BUT RETURNS.  IF YOU DO NOT CLICK ON FOR A FEW MINUTES, IT FREEZES AND WILL NOT GO OFF THE SCREEN NO MATTER WHAT YOU DO.  HOW CAN I SOLVE THIS PROBLEM...

    Hello

    1. have you installed Norton Security software on your computer?

    Sabotage monitor (tapmon.exe) is associated with a component of Norton called Norton safety Minder. I would ask you to uninstall and reinstall the Norton Security software and check. You can also contact Norton support on this issue.

    Check out the articles below to uninstall and reinstall the programs in Windows XP.
    How to change or remove a program in Windows XP
    http://support.Microsoft.com/kb/307895

    Installation of programs
    http://www.Microsoft.com/windowsxp/using/Setup/hwandprograms/installprog.mspx

    Support Norton:
    http://www.Symantec.com/support/index.jsp

    Note:
    It is recommended to install the software of security immediately after the issue is resolved.

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Error "Generic Host process for Win 32 services has encountered a problem and needs to close." Sorry for the inconvenience. "Please tell MIcrosoft this problem."

    Original title: programs appearing and disappearing

    Generic Host process for Win 32 services has encountered a problem and needs to close.
    Sorry for the inconvenience.
    Please tell this problem to MIcrosoft. We have created an error report that you can send to help us improve the generic
    Host Process for Win 32 Services. We will treat this report as confidential and anonymous. To see the data click on send
    Error report or not send.
    I clicked on the error report, and that's what he said... szAppname:svchost.exe szAppver: 5.1.2600.5512
    szModver: 5.1.2600.5755 szModname: ntdll.dll compensate 00023845 etc, etc.

    Hi 1jimbo1,

    1. when exactly you receive this error message?
    2. did you of recent changes to the computer?

    Method 1:

    Step 1:

    You can try to start in safe mode and check if the problem occurs.

    Check out the link for more information on starting your computer in SafeMode below:

    http://support.Microsoft.com/kb/315222

    Step 2:

    If the problem does not happen in safe mode and then, try to perform a clean boot.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    http://support.Microsoft.com/kb/310353

    If your problem is resolved after the clean boot, and then follow the steps mentioned in the article above to refine the exact source.

    After you have used the boot is a way to solve your problem, you can follow the steps to configure Windows XP to start normally.

    Method 2:

    You can also check the following link and complete the scan line on your computer to check whether your computer is infected with a virus or not.

    http://OneCare.live.com/site/en-us/default.html

    Thank you, and in what concerns:
    I. Suuresh Kumar - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I can't see my products. This is the messege: "for reasons of scheduled maintenance plans cannot be displayed. Sorry for the inconvenience. »

    I can't see my products. This is the messege: "for reasons of scheduled maintenance plans cannot be displayed. Sorry for the inconvenience. »

    Was it a problem persistent or is - this time you see a message that the interview is happening?

    Make sure you have enabled cookies, clear your cookie cache.  If he continues to not try to use a different browser.

Maybe you are looking for