DRG-50901  Error

Hi All
I am using interMedia in Oracle 9i (9.2). with oracle FORM 6i
I have a PL/SQL procedure with a ref cursor, which perform a fairly simple select for searching text. I got perfect result when I run it as stand alone query outside of the procedure. But when I call it from the form it wok for some search words, but give me error (DRG-50901 :text query parser syntax error on line 1, column 1) when I use certain words (tax, personal, property, tif) what I am doing wrong? Thanks in advance for your help.
PROCEDURE cs_refcur(cs_data IN OUT cs_cursor, cs_criteria IN dpt.CS_CONTACT.subject%TYPE)
IS
BEGIN
OPEN cs_data FOR SELECT cs_contact_id, subject, SCORE(1)+SCORE(2)
SCORE(3)SCORE(4)+SCORE(5)+SCORE(6) AS score
FROM dpt.CS_CONTACT
WHERE CONTAINS(subject, 'ABOUT({'||cs_criteria||'})', 1) > 0
OR CONTAINS(contact_org, 'ABOUT({'||cs_criteria||'})', 2) > 0
OR CONTAINS(question, 'ABOUT({'||cs_criteria||'})', 3) > 0
OR CONTAINS(answer, 'ABOUT({'||cs_criteria||'})', 4) > 0
OR CONTAINS(reference, 'ABOUT({'||cs_criteria||'})', 5) > 0
OR CONTAINS(citation, 'ABOUT({'||cs_criteria||'})', 6) > 0
ORDER BY (SCORE(1)+SCORE(2)+SCORE(3)+SCORE(4)+SCORE(5)
+SCORE(6)) DESC, 2;
END cs_refcur;
Thanks
Ali

This forum is for interMedia, image audio and video. Please post your question in the Oracle Text forum.
Thank you.

Similar Messages

  • DRG-50901 error cannot be reproduced to our test enviroments. Any ideas?

    We get the following error
    10:59:10,538#org.hibernate.util.JDBCExceptionReporter#ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 1
    From the logs we can see that the error was produced two times when the following keywords were searched:
    1) key
    2) doctoral
    In our test enviroments when we search those keywords we cannot reproduce the error.
    Also, we parse the search keywords doing what is described below:
    1) escape reserved characters with "/", e.g test { becomes test/{
    2) replace double quoted phrases with curly braces for exact match "test something" becomes {test something}
    3) escape reserved words and add commas between words in order to search all the words of a phrase e.g looking something becomes /looking,/something
    The exact query that runs and fails to the client is:
    SELECT rownum as id,
    x.* from (
    SELECT SCORE(1) score,
    ctx_doc.snippet('eqf_trans_ot_idx', et.EQF_TRANS_ID, '/key') as snippet
    FROM eqf_trans et
    WHERE 1 = 1
    AND contains(et.ORACLE_TEXT_COLUMN, '/key', 1) > 0)x
    WHERE ROWNUM<= 100;
    and
    SELECT rownum as id,
    x.* from (
    SELECT SCORE(1) score,
    ctx_doc.snippet('eqf_trans_ot_idx', et.EQF_TRANS_ID, '/doctoral') as snippet
    FROM eqf_trans et
    WHERE 1 = 1
    AND contains(et.ORACLE_TEXT_COLUMN, '/doctoral', 1) > 0)x
    WHERE ROWNUM<= 100;
    Any ideas why this may occur or how I can reproduce it???

    You get the following stack:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 1
    when there is just about any syntax error caused by your search string, such as searching for a reserved word or stop word or null value. From what you have supplied, that does not appear to be the case. However, there are some unusual things about your query. You say that you are using / to escape, but the escape character is \ not /. You have where 1=1 which suggests that you may be constructing and executing the query dynamically. You use rownum in an outer query, but have not ordered in the inner sub-query.
    I suspect that what you are running may be different from what you are posting and think you are running. You need to provide an actual copy and paste. It also helps if you include things like create table statement and insert statement for sample data, and create index statement. The various preferences in an index can make a big difference. You can use ctx_report.create_index_script to obtain and provide that.
    There is a chance that you have hit some sort of bug. You should provide your Oracle version and try to narrow the problem down by eliminating one thing at a time. For example if you can show that the query does not produce an error with "where contains ..." but produces an error with "where 1=1 and contains ..." then that is significant.

  • DRG-50901: text query parser syntax error

    The query
    SELECT * FROM ij
    where
    CONTAINS (ij.summary, 'ATTENZIONE!') > 0 returns an error:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 13
    Why?
    There is a TEXT index on the summary column:
    CREATE INDEX IJL_SUMMARY_IX ON IJ
    (SUMMARY)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('
        lexer           MITO_LEXER
        wordlist        DEFAULT_WORDLIST
        stoplist        IJL_STOPLIST
        storage         IJL_TEXT_STORAGE
        SYNC (EVERY "SYSDATE + 10/1440")')
    PARALLEL ( DEGREE 4 INSTANCES 1 );where the MITO_LEXER is
    BEGIN
    CTX_DDL.create_preference ('mito_lexer', 'BASIC_LEXER');
    CTX_DDL.set_attribute ('mito_lexer', 'INDEX_STEMS', 'ITALIAN');
    -- MITO-318: search on Text Index for Asterisks
    CTX_DDL.set_attribute ('mito_lexer', 'printjoins', '*');
    END;
    /

    Because the exclamation mark ("!") is a reserved operator, meaning soundex, and must appear before the word it applies to.

  • Context search if char [ or ( is typed by mistake - error DRG-50901

    If the search string has [ or (, why doesn't context treat it as
    a part of the string? Do I have to do anything special to avoid
    the run time error -
    ORA-20000: interMedia Text error: DRG-50901: text query parser
    syntax error on line 1, column 13
    Thanks in advance
    Vidhya

    I found this
    http://technet.oracle.com/products/text/x/Tech_Overviews/imt_817.
    html
    But it does not work as I expect
    The CTXCAT Query Language
    Once the ctxcat index is created, you query using the operator
    catsearch
    instead of contains:
    select item_desc from auction
    where catsearch(item_desc, 'oracle', null)>0;
    This finds all rows in auction which have "oracle" in the
    item_desc text.
    Like contains, the first argument is the text column, and the
    second is the
    query string. The third argument we'll talk about below -- just
    ignore it
    for now. There is no score label argument, because catsearch
    does not
    provide scoring -- it is a simple boolean search.
    The catsearch operator uses a much simpler query language than
    contains,
    with the intent that web-style queries can be passed through to
    catsearch
    without extra parsing. The query language rules are:
    * Multiple words are treated as an AND.
    * Vertical bar is used for OR.
    * A leading plus sign on words is ignored and discarded
    * A leading minus sign excludes words (must have included
    words)
    * Double quotes delimit phrases.
    * Parentheses group operations.
    Or, in comparison:
    catearch Query Equivalent contains query
    A B A & B
    A | B A | B
    +A -B           A ~ B
    "A B" A B
    "A B" C (A B) & C
    (A B) | C (A & B) | C
    AND, OR, AND-NOT, and PHRASE are the only functions currently
    available in the
    catsearch query language. catsearch does not support any of the
    other
    features found in the context query language such as accum,
    within, fuzzy,
    stem, wildcard, thesaurus, near, etc.

  • Pb score function - DRG-50901

    Hi all,
    I get an error DRG-50901 :text query parser syntax error on line 1, column 1
    when i use the score function
    table DOCUMENT :
    -FILE_ID
    -FILE_NAME
    -BLOB_CONTENT BLOB
    -FILE_TYPE
    -FILE_SIZE
    the index code :
    CREATE INDEX DOCUMENT_IDX ON DOCUMENT
    (BLOB_CONTENT)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('FILTER ctxsys.auto_filter SYNC (ON COMMIT)');
    So the first query works well but the second does not !
    1)
    SELECT d.file_name
    FROM document d
    WHERE (contains (d.blob_content, '%' || TEXT_VALUE || '%', 1) > 0)
    2)
    SELECT d.file_name, score(1) as relevance
    FROM document d
    WHERE (contains (d.blob_content, '%' || TEXT_VALUE || '%', 1) > 0)
    Can anybody help me to solve it?
    Regards,
    Gregory

    I have not seen this problem before. Can you post a complete example and also include your release number?
    Faisal

  • Technical note:  Troubleshooting DRG-11207 errors / INSO filters.

    All,
    The following is Metalink's Note 210319.1about troubleshooting DRG-11207 errors.
    If the content is of no help, I suggest contacting Oracle support.
    -Omar
    Subject: Troubleshooting DRG-11207 errors
    INTRODUCTION
    =============
    Most of the errors encountered during creation of Oracle Text indexes are likely
    to be caused when dealing with formatted documents. These errors are logged in the
    view CTX_USER_INDEX_ERRORS and can be queried from the schema where the create index
    statement was executed, or table CTX_INDEX_ERRORS queried from the CTXSYS user.
    One of the errors commonly reported in these views is the DRG-11207 error.
    Unfortunately, this error is often not useful in diagnosing indexing issues.
    The INSO_FILTER issues are difficult to diagnose because Oracle uses a third-party
    application for filtering. As a result, it is often difficult to identify the real
    source of the problem.
    This document will troubleshoot the INSO_FILTER errors associated with
    the
    DRG-11207 "exited with status X"
    message. In regards to the INSO_FILTER, the error code implies that it is unable to
    index a formatted document. It is important to mention that these errors can be operating
    system specific and therefore this note is intended to provide some hints as a starting
    point for analysis. Its possible that other cases may be reported and if this is the
    case be sure to log the error with Oracle Support. Examples of the most common document
    types are provided in this article (Adobe PDF, Micrsoft Word and Microsoft Excel).
    For Oracle 10i, meaningful error messages have been added for drg-11207.
    This has been documented in [BUG:2473885]
    COMMON ERRORS
    ==============
    DRG-11207: user filter command exited with status 1
    Status 1 means "Could not filter the document". It is a generic error and indicates that
    INSO_FILTER failed on a given document. This can happen due to many documented reasons: an
    invalid environmental setting; document is corrupted, encrypted, password protected;
    document version not supported(incompatibility) or due to a bug in INSO_FILTER.
    DRG-11207: user filter command exited with status 2
    Status 2 means "The INSO_FILTER has timed-out". The default value of the timeout value
    for the INSO_FILTER is 120 (seconds). The default value for the timeout_type is
    heuristic, which implies that if the timeout value is reached and the INSO_FILTER
    has not started to write output, the indexing operation terminates for the document
    row and Oracle moves to the next document row to be indexed. Beginning in 9.2.0.1
    it is possible to change the timeout_type variable to fixed, which allows a
    user to terminate filtering processing after the TIMEOUT seconds regardless of
    whether filtering is progressing normally or hanging. The default timeout value
    is generally enough for filtering most of the documents. If the timeout value is
    not large enough then it may timeout even before filtering completes. PDF and
    Microsoft Excel files are usually more prone to this timeout as the INSO_FILTER
    generally takes more time to process these types of files. If this is the
    case then you can create a preference with a larger timeout value in versions
    8.1.7.1b and above. It should be noted, however, that the timeout attribute cannot be
    changed dynamically. In order for the new timeout value to take effect, it
    would be necessary to re-create the index with the new timeout attribute
    setting.
    For example, in 9.2.x to alter the timeout to 600 seconds(10 minutes) and use
    the fixed timeout_type:
    begin
    ctx_ddl.create_preference('my_inso', 'INSO_FILTER');
    ctx_ddl.set_attribute('my_inso', 'timeout', '600');
    ctx_ddl.set_attribute('my_inso', 'timeout_type', 'FIXED');
    end;
    Documented reasons for timing out are:
    1. the document is too large to be indexed in the alloted time set via TIMEOUT
    attribute.
    2. INSO_FILTER is hanging during the filtering.
    DRG-11207: user filter command exited with status 127
    Status 127 points to that likely an environmental issue with the shared library
    environmental variable.
    DRG-11207: user filter command exited with status 137
    Status 137 meand that the ctxhx executable was killed as the inso filter is not
    set-up properly. Confirm that the correct environmental variables are
    setup(LD_LIBRARY_PATH AND PATH) and the format of the document is
    supported by INSO_FILTER.
    ENVIRONMENTAL SETTINGS
    ======================
    Please note that any DRG-11207 error may be caused by the setting of the
    environmental variables. Be sure that the PATH and shared library path
    which is LD_LIBRARY_PATH (SHLIB_PATH for HP-UX and LIBPATH for AIX) are
    correct, since it is this setting which actually invokes the INSO_FILTER.
    Note : it is also possible to define the environment variable
    LD_LIBRARY_PATH in the listener.ora entry for extproc. This would be
    included in the ENVS section of the origin database LISTENER.ORA:
    ENVS = 'LD_LIBRARY_PATH=<full_pathname_of_oracle_home>/ctx/lib:$ORACLE_HOME/lib'
    LD_LIBRARY_PATH should include
    <full_pathname_of_oracle_home>/ctx/lib:<full_pathname_of_oracle_home>/lib
    For example:
    export LD_LIBRARY_PATH=<full_pathname_of_oracle_home>/ctx/lib:$LD_LIBRARY_PATH
    PATH should include
    <full_pathname_of_oracle_home>/ctx/bin:<full_pathname_of_oracle_home>/bin
    [NOTE:133691.1] and [NOTE:135333.1] provides possible steps to get around this error.
    SUPPORTED DOCUMENT ATTRIBUTE CHECKLIST
    ======================================
    1. Determine if the filtered document is supported
    A list of supported formats is provided in the InterMedia Text documentation
    pages. Please check whether the format falls in the list of supported formats.
    It is important to note that each Oracle version may support different
    versions of documents.
    For PDF Acrobat (full version), click on File->Document_Info->General and
    you should see the PDF version.
    For Microsoft Word and Excel, click on File->Save As and review the
    "Save as type" to determine the version.
    2. Determine if the document is corrupted
    To verify if a document is corrupted, open the document and view it line
    by line checking for corrupted output. Please note, just holding down the
    "Page Down" button to view all the pages, it's possible that potential
    corruption on a particular page will go unnoticed.
    3. Determine if the document is a secure or copy protected document
    Password protected documents and documents with password protected contents
    are not supported by the INSO_FILTER.
    For PDF Acrobat (full version), click under file->document_info->security.
    If the open password or security password is set to true then it's password
    protected.
    For Microsoft Word, click under Tools->Options->Save. If the
    "Password to open" or "Password to modify" appears as asterisks (*****),
    then the document is secured.
    For Microsoft Excel, click under File->Save As->Tools->General options.
    If the "Password to open" or "Password to modify" appears as
    asterisks (*****), then the document is secured.
    4. Determine if the document is a encrypted
    INSO_FILTER does not currently support encrypted documents.
    For PDF Acrobat (full version), click under file->document_info->security.
    If security method is none, the document is not encrypted. In other cases,
    it is encrypted.
    For Microsoft Word, it is not possible to encrypt this type of document
    directly.
    For Microsoft Excel, if the document is workbook protected then this
    implies that the document is encrypted. To determine this click under
    tools->protection and if the Unprotect Workbook or Unprotect
    Sheet is shown, this implies that the workbook/worksheet is encrypted.
    5. Determine if the document has custom embedded fonts
    Stellent filters will succeed on the majority of PDF documents containing
    custom fonts. Until now, there have only been a few documented cases of
    custom embedded fonts causing filtering problems with PDF documents. If
    there is a filtering problem with custom fonts, it will only result in
    garbage tokens being produced as a result of the custom font, whereas the
    remainder of the PDF document using the standard/built-in font will be
    filtered properly.
    To determine if custom embedded fonts are used for PDF Acrobat (full version),
    click under file->document_info->fonts and review the encoding type.
    The best way to identify whether a particular custom font will filter successfully
    is to highlight the character, copy and paste into Notepad. If the output
    contains garbage text then it is not likely to be filtered properly.
    For Microsoft Word and Excel, regardless of what font is being used, the
    INSO_FILTER should be able to extract the characters.
    References
    Oracle Text Reference Releases 9.1 and 9.2
    [BUG:2473885] BETTER ERROR MESSAGES FOR WHEN CREATING INTERMEDIA INDEX
    USING INSO FILTER
    [NOTE:133691.1] Create context index fails with DRG-11207 or fatal:libsc_fa.so
    [NOTE:135333.1] CTX_DDL.SYNC_INDEX With DBMS_JOB Fails (DRG-11207) Using
    INSO Filter in V817
    [BUG:1795642] INTERMEDIA TEXT INDEX OF A CERTAIN EXCEL97 FILE IS NOT
    CREATED IN WEBDB SITE

    Gary,
    This is two questions:
    1. The INSO filter on 8.1.7 when converting MS Word or WordPrefect Docs to HTML would give you <I> and <B> used in
    the word processor. The 9.2.0.1 version is not converting <I> or <B> in the HTML. Is there any documentation
    from the Company on using the ctxhx and template files? If <I> and <B> tags are missing in 9.2.0.1 then it is a bug in the INSO code.
    2. I have received an error in the CTX_USER_INDEX_ERRORS from one of the docs store in a BLOB here is the error.
    DRG-11207: user filter command exited with status 1.
    Is there a way to debug the ctxhx or INSO load libraries? I know what a 137 error is (NO LD_LIBRARY_PATH for ctx/lib)
    but what a 1. Where is the FL_CMD_EXIT_ERR info? Status 1 is a generic error and you can't debug it. Could you please post your email address? I would like to contact you for a test case.
    Thanks.

  • DRG-10582 error during index creation

    Hi!
    I am getting the error below when I try to create a context index. I am using an Oracle 9.2.0.1.0 database on a win2000 professional platform. Oracle returns a column which does not really exist. Can anyone help me? Thanks in advanced.
    Erick
    SQL> CREATE INDEX "SECDB"."TB_ENTITY_INDEX"
    2 ON "SECDB"."TB_ENTITY" ('NAM_ENTY_LONG')
    3 INDEXTYPE IS CTXSYS.CONTEXT;
    CREATE INDEX "SECDB"."TB_ENTITY_INDEX"
    ?1????????????:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10582: column SYS_NC00011$ does not exist in table TB_ENTITY
    ORA-06512: at "CTXSYS.DRUE", line 157
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 186

    Hi,
    Just to highlight one of the message what you get
    ORA-01658: unable to create INITIAL extent for segment in tablespace YM4Try to increase the space allocated to this tablespace.
    Nicolas.

  • Error in executing ODCIIndexStart()

    I a Search Application,I need to find the documents, where a StringAttribute (Author) contains any of the values in a specified array.
    For this purpose, I use an AnyOf-query (combined with some other queries).
    Alas I keep getting the following error-message.
    oracle.ultrasearch.query.tagext.SearchJspTagException: WKG17019: JDBC-exception: ORA-20000: Oracle Ultra Search error
    User-Defined Exception
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 49
    ORA-06512: at "WKSYS.WK_ERR", line 179
    ORA-06512: at line 1
         at oracle.ultrasearch.query.tagext.GetResultTag.doEndTag(GetResultTag.java:228)
    If I use an AllOf query instead, I get the samme error, but if I use a simple Equals-query, everything is fine.
    Has anybody experienced the same problem? Does anyone have a clue of what I might be doing wrong?

    Hi,
    A couple of thoughts:
    1. Have you asked in the Oracle Text forum?
    Text
    2. On which text index does this command fail? Have you checked to make sure this text index really does exist?
    Cheers,
    Colin
    PS The singular of 'Indices' is 'Index'.

  • Conditional Display on Report error

    hey,
    can anyone suggest a way/workaround to catch a report error. when error occures, i'd like to display another report, just below, without errorneus columns ( Oracle Text score(1) this time )
    report error:
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 1
    how could i make this error conditional?
    br,
    Simon

    Hi Simon - I have the same issue. Did you find a solution?
    thanks,
    Matt

  • Progressive Relaxation with error

    Hi,
    I tried to use progress relaxation to calculate matching scores(between t1.album and t2.title) and store them into a table. However, after executing the following script, I got these errors:
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 34
    ORA-06512: at line 26
    And the outer cursor stopped at some point. I've been working on it for many days already, but I still can't figure it out...
    Oh, one more question: what is 'c' in the statement 'for c in (......)'? I got this from http://www.oracle.com/technology/products/text/htdocs/prog_relax.html, but I don't understand what it does...
    Thanks a lot!!!!!!
    Here is the script:
    DECLARE
    max_rows integer := 300000;
    counter integer := 0;
    current_album t1.album%TYPE;
    CURSOR album_cursor IS
         SELECT distinct album FROM t1;
    BEGIN
    OPEN album_cursor;
    LOOP
    FETCH album_cursor INTO current_album;
    EXIT WHEN album_cursor%NOTFOUND;
    for c in (select score(1) scr, aritst, Title from t2 where contains (Title, '
    <query>
    <textquery>'||'{'||current_album||'}'||'
    <progression>
    <seq><rewrite>transform((TOKENS, "{", "}", " "))</rewrite></seq>
    <seq><rewrite>transform((TOKENS, "?{", "}", " "))</rewrite>/seq>
    <seq><rewrite>transform((TOKENS, "{", "}", "OR"))</rewrite></seq>
    <seq><rewrite>transform((TOKENS, "?{", "}", "OR"))</rewrite></seq>
    </progression>
    </textquery>
    </query>
    ', 1) > 0)
    LOOP
    counter := counter + 1;
    INSERT INTO ALBUM_MATCHED(SEQNUM, SCORE, ARTIST, t2_TITLE, t1_ALBUM)
    VALUES(counter, c.scr, c.artist, c.Title, current_album);
    commit;
    EXIT when counter >= max_rows;
    END LOOP;
    END LOOP;
    CLOSE album_cursor;
    END;
    **************************************************************************************************************************************************

    Hi raford,
    I also suspect that it's a problem caused by special characters. That's why I defined the following skipjoins for the matching column indexes:
    exec CTX_DDL.CREATE_PREFERENCE ('spe_cha_lexer', 'BASIC_LEXER');
    exec CTX_DDL.SET_ATTRIBUTE('spe_cha_lexer', 'SKIPJOINS' , '\,\&\=\{\}\\\(\)\[\]\-\;\~\|\$\!\>\*\%\_''\<\:\?\.\+\/\"@#');
    create index t1_album_idx on t1 (album)
    indextype is ctxsys.context
    parameters ('lexer spe_cha_lexer wordlist wildcard_pref sync (on commit)');
    create index t2_title_idx on amazonData (title)
    indextype is ctxsys.context
    parameters ('lexer spe_cha_lexer wordlist wildcard_pref sync (on commit)');
    Here is the table structures of t1 and t2, and resultset table album_matched:
    create table t1(album varchar2(500));
    create table t2(artist varchar2(500), title varchar2(4000));
    create table album_matched(SEQNUM number, SCORE number, ARTIST varchar2(500), t2_TITLE varchar2(4000), t1_ALBUM varchar2(500));
    Here is some sample data:
    for t1:
    Madeline Porter
    Harry Porter
    ???? R & H ?????
    mandy's candy
    for t2.artist, you can put whatever. and for t2.title:
    Harry Porter
    Basically, you can put everything in t1.album and t2.artist and t2.title, since we downloaded these data from a website. Therefore, there might be a lot of special characters in it, some of which might be miscoded into english from French or some other languages.
    And I found the scoring is not right too...both table contain 'Harry Porter', but the matching score has only 68...don't know why...
    Thanks a lot!

  • ORA-29902 Error when executing context query

    We sometimes get the following error when executing a search based on keywords entered by a user:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Error generating context stmt ORA-29902: error in executing ODCIIndexStart() routine ORA-20000: interMedia Text error: DRG-50901: text query <HR></BLOCKQUOTE>
    A demonstration of the error can be seen by going to the main
    http://technet.oracle.com technet page and then performing a site search. Type in any of the following search phrases:
    Oracle and not Microsoft
    not Microsoft
    and database
    In my brief experimentation, the presence of any of
    not, and, or
    at the beginning of the keywords, or next to each other 'and not' within the keywords set causes the above oracle error.
    OK, I could train the users not to do this, but with the potential for every net user on the planet using my site, it might take me some time to speak to all of them.
    So how do I stop Intermedia from throwing up the error? I have written a quick parser to try to strip out offending entries, but that is not, imho, a good solution, as I do not know all the rules that will break it.
    tia

    You need to write a text query parser. Check the Query Translator code samples from http://technet.oracle.com/sample_code/products/text/content.html

  • Oracle Text/PL SQL errors

    Is anyone familiar with this error. I have removed all the problem characters and words that may cause problems so it is not that.
    [1]: (Error): ORA-20000: Oracle Text error: DRG-50901: text query parser syntax error on line 1, column 1 ORA-06512: at line 3
    BEGIN
    for rec in (select COMMENTS,FAILURE_REASON from COMMENTS7105) loop
    update COMMENTS7105
    set "CATEGORY" = CASE
    when rec.FAILURE_REASON not in (select distinct tmocategory from categories)
    then (select "CATEGORY" from (select "CATEGORY",SCORE(1) SCORE from CATEGORIES where contains(SUBCATEGORY, '
    <query>
    <textquery lang = "ENGLISH" grammar = "CONTEXT">'||rec.comments||'
    <progression>
    <seq><rewrite>transform((TOKENS, "{", "}", " "))</rewrite></seq>
    <seq><rewrite>transform((TOKENS, "{", "}", "AND"))</rewrite></seq>
    <seq><rewrite>transform((TOKENS, "{", "}", "NEAR"))</rewrite></seq>
    <seq><rewrite>transform((TOKENS, "{", "}", "ACCUM"))</rewrite></seq>
    </progression>
    </textquery>
    <score datatype = "INTEGER" algorithm = "COUNT" />
    </query>', 1) <> 0
    and SCORE(1) > 1
    order by SCORE(1) desc)
    where rownum = 1)
    when rec.FAILURE_REASON in (select distinct tmocategory from categories)
    then (select "CATEGORY" from (select "CATEGORY",SCORE(1) SCORE from CATEGORIES where contains(SUBCATEGORY, '
    <query>
    <textquery lang = "ENGLISH" grammar = "CONTEXT">'||rec.comments||'
    <progression>
    <seq><rewrite>transform((TOKENS, "{", "}", " "))</rewrite></seq>
    <seq><rewrite>transform((TOKENS, "{", "}", "AND"))</rewrite></seq>
    <seq><rewrite>transform((TOKENS, "{", "}", "NEAR"))</rewrite></seq>
    <seq><rewrite>transform((TOKENS, "{", "}", "ACCUM"))</rewrite></seq>
    </progression>
    </textquery>
    <score datatype = "INTEGER" algorithm = "COUNT" />
    </query>', 1) <> 0
    and SCORE(1) > 1
    and TMOCATEGORY = rec.FAILURE_REASON
    order by SCORE(1) desc)
    where rownum = 1)
    else 'Unknown' end
    where COMMENTS LIKE '%'||rec.COMMENTS||'%';
    end loop;
    END;
    Can someone please help me. Any help is greatly appreciated.

    Duplicate post answered on Text forum:
    Categorizing Data with Oracle Text

  • Getting error while importing schema with ORACLE TEXT

    IMP-00003: ORACLE error 20000 encountered
    ORA-20000: Oracle Text error:
    DRG-52204: error while registering index
    DRG-10507: duplicate index name: WORKORDER_Q, owner: SYS
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.DRIIMP", line 115
    ORA-06512: at line 2
    IMP-00088: Problem importing metadata for index WORKORDER_Q. Index creation will be skipped
    Database version - Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Os version - Linux nlxs1012.slb.atosorigin-asp.com 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
    We have take export of schema from production db now importing data to qa environment..
    In import facing above error..

    I am importing objects from P20_MAXIMO to Q25_MAXIMO to another database..
    Below is import par file..
    USERID='/ as sysdba'
    FILE=exp_P20_MAXIMO_C2364781.dmp
    LOG=imp_P20_MAXIMO__Q25_MAXIMO_C2364781_1.log
    FROMUSER=P20_MAXIMO
    TOUSER=Q25_MAXIMO
    buffer=1000000
    feedback=100000
    Export parfile
    userid='/ as sysdba'
    owner=P20_MAXIMO
    FILE=exp_P20_MAXIMO_C2364781.dmp
    LOG=exp_P20_MAXIMO_C2364781.log
    buffer=10000000
    feedback=100000
    statistics=none

  • Errors using themes and tomahawk within portlets

    I've been developing a portlet using Creator2 Update 1 that uses the myfaces tomahawk library of components. Besides the difficulty of not being able to use the visual designer, I've managed to get my portlet functioning the way I want.
    My next step was to apply styles to my portlet. The difficulty here is that since portlets are aggregated within a portal, the portlet does not have access to the <head> tag of the container page (meaning I couldn't just add my own stylesheets and link them in.) I'm not sure how Creator works around this problem - I just know that it manages to using <ui:themeLinks> somehow.
    Changing the theme for a regular Creator-components-only (read: no tomahawk) is a no-brainer. I simply pick a different theme in the Project view and set it as the Current Theme. I can even set my own user-defined theme. Running the portlet either through Creator or Liferay shows the applied theme.
    However, once I start using tomahawk components, the theme system breaks down, throwing exceptions, such as the following:
    com.sun.rave.web.ui.theme.ThemeConfigurationException: WARNING: the Sun Web Components could not load any themes.
    at com.sun.rave.web.ui.theme.ThemeFactory.createThemeManager(ThemeFactory.java:274)
    Curiously, it only breaks if I use one of my user-defined themes. The Creator-provided themes will work with the tomahawk components portlet.
    In short, I am baffled. Creator-provided themes work regardless of tomahawk components present. My own themes work so long as there aren't tomahawk components present.

    Sorry, I don't think that's going to work. Themes are not used in the standard SES index, and therefore the Oracle Text knowledgebase is not installed - hence the DRG-11446 error you're seeing.
    If you figured out a way to install the knowledgebase from another system (and I'm NOT recommending that), you would still need to recreate the text index with INDEX_THEMES turned on.
    You should be able to connect to the SES instance from a remote machine by commenting out both "tcp.invited_nodes" and "tcp.validnode_checking" from the sqlnet.ora file. Not sure why just adding an entry to tcp.invited_nodes didn't work for you.

  • Drg-11222: Third-party filter was able to recognize the format of this

    Hello,
    we have a database 10.2.0.2 on unbreakable linux as5 64bit. We have an application that uses the Oracle Text. When inserting pdf-files, they are not indexed. Although we have every 15 minutes jobs running for synchronising them. When we query the ctx_user_index errors, I get lot of drg-11222 errors. When doing ctxhx on a pdf (for example from oracle help files), it gets ORA_DRG-11222.
    On other oracle 10.2.0.2 on Redhat Linux AS4 32bit, got no problem.
    Has this something to do with the 64-bit? I'm a missing a compat or something?
    thx

    I don't see AS 5 on the list of auto_filter supported platforms for 10g:
    http://download.oracle.com/docs/cd/B19306_01/text.102/b14218/afilsupt.htm#sthref2447
    or even 11g:
    http://download.oracle.com/docs/cd/B28359_01/text.111/b28304/afilsupt.htm#CCREF2241

Maybe you are looking for

  • Top Of Page not triggering in ALV

    Hi I am using ALV List Disaply. I have a itab that has 2000 Rows. When i scoll down, the header appears at the top always. Now i added the following code to trigger a Top of Page Event. FORM xevents.   CLEAR xs_event.   xs_event-name = slis_ev_top_of

  • Returning XML to client from web service

    Hi, I am new to developing web services using JAX_RPC. I am trying to return a xml document to the client from the web service. My Server implementation is as follows: Interface: public interface OntoIF extends Remote public DataHandler ontoCompare (

  • Exporting pdf shows all the .ai layers when flipping through pages

    I'm building complicated illustrator files with vector and placed images and saving them as .ai files. Then I place then into my indesign file and export into a multiple page PDF. Unfortunately when I view the PDF, instead of just showing one flat im

  • Project 2010 Trial - Enterprise Global File permissions problem

    Hi, I recently installed Project 2010 Server Trial version. The web fronted work but when i try with Project 2010 Profesionnal client, i got this error message : "No permissions to read Project Server Enterprise Global File. The Project Server Enterp

  • RSS plugin non-functional on Firefox Beta

    I use iWeb to create my home page at work: http://www.cise.ufl.edu/~fishwick Safari and Chrome (even the Beta) have no issues when displaying this page; however, the latest Firefox Betas (7,8, and now 9) do not correctly display the iWeb RSS feed fra