Oracle Text Error - 50935

Hi
I randomly get following error while searching my database using context index:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-00100: internal error, arguments : [50935],[drpn.c],[992],[],[]
DRG-00100: internal error, arguments : [50935],[drpnw.c],[600],[],[]
DRG-00100: internal error, arguments : [51002],[drwa.c],[573],[],[]
DRG-00100: internal error, arguments : [51028],[drwaf.c],[795],[204],[AUTOMOBILE]
DRG-00100: internal error, arguments : [50401],[dreb.c],[1037],[],[]
ORA-03113: end-of-file on communication channelIf I search again using the same keywords, it does not return the error.
The frequency of this error is low - around 50 out of around 50,000 searches in a day.
Please advise what should I do?
Regards
Madhup

Hi,
Version= Oracle 10g Release 10.2.0.1.0
OS= Linux (Redhat 4.0)
Language= English (100% documents that are indexed are in English Language)
similarly the search is in English Language
The contains clause looks like shown below:
               (automobile frames in china)*10,
               ($automobile $frames $in $china)*7,
               (NEAR((automobile,frames,in,china)))*4,
               (NEAR(($automobile,$frames,$in,$china)))*3,
               (automobile% frames% in% china%)*3
          ) within sec_a
     )*1,
               (automobile frames in china)*10,
               ($automobile $frames $in $china)*7,
               (NEAR((automobile,frames,in,china)))*4,
               (NEAR(($automobile,$frames,$in,$china)))*3,
               (automobile% frames% in% china%)*3,
               (FUZZY(automobile,,,WEIGHT) FUZZY(frames,,,WEIGHT) FUZZY(in,,,WEIGHT) FUZZY(china,,,WEIGHT))*2
          ) within sec_b
     )*1,
               (automobile frames in china)*10,
               ($automobile $frames $in $china)*7,
               (NEAR((automobile,frames,in,china)))*4
          ) within sec_c
     )*1,
               (automobile frames in china)*10,
               ($automobile $frames $in $china)*7,
               (NEAR((automobile,frames,in,china)))*4
          ) within sec_d
     )*.1
)I am using a Multi Column Datastore that has 6 columns
each of these 6 columns has been setup as a field section so that I can search within it separately.
My index preferences are as mentioned below:
BEGIN
     CTX_DDL.DROP_PREFERENCE('CTXSYS.IIL_LEXER');
     CTX_DDL.CREATE_PREFERENCE('CTXSYS.IIL_LEXER','BASIC_LEXER');
                CTX_DDL.SET_ATTRIBUTE('CTXSYS.IIL_LEXER', 'INDEX_STEMS', 'ENGLISH');
     CTX_DDL.DROP_PREFERENCE('CTXSYS.IIL_FUZZY_PREF');
     CTX_DDL.CREATE_PREFERENCE('CTXSYS.IIL_FUZZY_PREF', 'BASIC_WORDLIST'); 
     CTX_DDL.SET_ATTRIBUTE('CTXSYS.IIL_FUZZY_PREF','FUZZY_MATCH','ENGLISH'); 
     CTX_DDL.SET_ATTRIBUTE('CTXSYS.IIL_FUZZY_PREF','FUZZY_SCORE','60'); 
     CTX_DDL.SET_ATTRIBUTE('CTXSYS.IIL_FUZZY_PREF','FUZZY_NUMRESULTS','100'); 
     CTX_DDL.SET_ATTRIBUTE('CTXSYS.IIL_FUZZY_PREF','SUBSTRING_INDEX','TRUE');
     CTX_DDL.SET_ATTRIBUTE('CTXSYS.IIL_FUZZY_PREF','PREFIX_INDEX','TRUE');
     CTX_DDL.SET_ATTRIBUTE('CTXSYS.IIL_FUZZY_PREF','PREFIX_MIN_LENGTH','1');
     CTX_DDL.SET_ATTRIBUTE('CTXSYS.IIL_FUZZY_PREF','PREFIX_MAX_LENGTH','3');
     CTX_DDL.SET_ATTRIBUTE('CTXSYS.IIL_FUZZY_PREF','WILDCARD_MAXTERMS','15000');
     CTX_DDL.SET_ATTRIBUTE('CTXSYS.IIL_FUZZY_PREF','STEMMER','ENGLISH'); 
END;Regards
Madhup

Similar Messages

  • ERROR at line 1: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: Oracle Text error: DRG-10700: preference does not exist: global_lexer ORA-06512: at "CTXSYS.DRUE", line 160 ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    database version 11.2.0.4
    rac two node
    CREATE INDEX MAXIMO.ACTCI_NDX3 ON MAXIMO.ACTCI
    (DESCRIPTION)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('lexer global_lexer language column LANGCODE')
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    Like the error message says, you don't have a global_lexer.  So, you need to create a global_lexer and that lexer must have at least a default sub_lexer, then you can use that global_lexer in your index parameters.  Please see the demonstration below, including reproduction of the error and solution.
    SCOTT@orcl12c> -- reproduction of problem:
    SCOTT@orcl12c> CREATE TABLE actci
      2    (description  VARCHAR2(60),
      3      langcode     VARCHAR2(30))
      4  /
    Table created.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366
    SCOTT@orcl12c> -- solution:
    SCOTT@orcl12c> DROP INDEX actci_ndx3
      2  /
    Index dropped.
    SCOTT@orcl12c> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('global_lexer', 'multi_lexer');
      3    CTX_DDL.CREATE_PREFERENCE ('english_lexer', 'basic_lexer');
      4    CTX_DDL.ADD_SUB_LEXER ('global_lexer', 'default', 'english_lexer');
      5  END;
      6  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    Index created.

  • Oracle text error when generating random rows

    Hello
    firing
    SELECT *
    FROM
    SELECT NAME,EMAIL,ADDRESS1,ADDRESS2,CONTACT_NAME,MOBILE,TELEPHONE FROM MV_CAT_SEG_REG_PROD
    WHERE CATSEARCH(CAT_TYPES,'security services*' ,NULL)>0 AND
    PLAN_ID=1 AND ACT_STATUS='N'
    ORDER BY DBMS_RANDOM.VALUE
    where rownum < 4;
    returns
    ORA-20000: Oracle Text error:
    DRG-10849: catsearch does not support functional invocation
    DRG-10599: column is not indexed
    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.
    using oracle 10gr2 on windows server 2003
    i have tried 1)dropping the index and creating it again, the index type is "CTXSYS"."CTXCAT"
    2) deleting the stats -checking
    3)recreating the stats- checking
    the table here is a materialized view
    i need to tell you people that
    there are two indexes cat_types_ind and cat_ids_idx on cat_types and cat_ids columns respectively
    the inner query uses cat_types_idx index when executed and seen in sqladvisor
    1)removing the order by clause will make the query work but i really want that order by clause
    2)the inner-query-only works fine
    3) i have seen the forums and they have helped regarding the things i tried above but it does not work
    please tell me if i need to further elaborate on anything
    thanks in advance

    I have same problem, my query is:
    SELECT *
    FROM
    (SELECT
    /*+ FIRST_ROWS(50) */
    NTQ.*,
    ROWNUM RNUM1
    FROM
    (SELECT
    /*+ INDEX(DL_TSD_DEFTR_CI) */
    FROM ima_ol.DL_TSD_SITUATION s
    WHERE (CATSEARCH(DEF_TRANS,'milano ',NULL)>0)
    AND (s.FORECAST = 0)
    AND (s.STATE IN (1,0,4))
    AND (s.ARCH_STATE = 0)
    ORDER BY s.VET_TS DESC
    ) NTQ
    WHERE ROWNUM <=50
    WHERE RNUM1 >=1
    my oracle and system version:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    "CORE     11.1.0.7.0     Production"
    TNS for Solaris: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    I have suggested that to solve the problem I should alter the statistics of the offending table to force to use this index .. how do I do? thanks in advance

  • Oracle text Error

    hi all,
    i have the Query like this
    select NAME from ORG_NAME
    where contains(NAME, 'ward&') > 0;
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    While try to execute the Query i got Error ....
    if i'm using any spl char inside the Contains function it Throw the Error
    IS any way for using spl char in Contains function?

    Thanks a lot Herald ten Dam!! I was really panicking and was straight away asking our production dbas to raise an SR with oracle. Your answer gave me first clue on what could be happening.  I could not find what that transaction was and now when I query the database I dont see any distributed transaction. I mean the following query returns 0 rows:
    SELECT  * FROM DBA_2PC_PENDING;
    Also we are not getting any further report/intimation that the Oracle Text errors are happening. So I am guessing it was some distributed transaction that had happened that caused this issue. I wish I could find what that transaction was - is there any way that can be done?
    Thanks a lot!
    OrauserN

  • Urgent: Oracle Text error: DRG-10001: can not access result table

    Hi,
    I am getting the "DRG-10001:can not access result table" error when trying to run the oracle text procedure ctx_cls.train within HTMLDB. The schema i used for parsing is granted with the necessary privileges, and i can run the procedure manually using the same schema in sqlplus. Following is the script I am trying to run:
    1. begin
    2. ctx_cls.train(
    3. index_name => 'MyDocindex',
    4. docid => 'MyDoc_id',
    5. cattab => 'MyDocTab_categories',
    6. catdocid => 'cat_MyDoc_id',
    7. catid => 'cat_id',
    8. restab => 'rules',
    9. rescatid => 'rule_cat_id',
    10. resquery => 'rule_text',
    11. resconfid => 'rule_confidence'
    12. );
    13. end;
    Please help urgently!
    Thanks
    RG

    I seem to have hit a similar problem.
    Did you eventually resolve this problem?
    Rgds
    Z

  • English preferences for oracle text error

    Hi,
    i did run the script drdefus.sql script as sysdba
    and when i try to install the "Presidential Inaugural Addresses" demonstration application in HTMLDB and i got the following error.
    error:------------------------------------------
    ORA-20001: This demonstration can only be installed into an Oracle database which has the English preferences loaded for Oracle Text. Please contact your administrator
    Can someone help me to fix this error.
    Thanks,
    Philip.

    I have 10.0.1.3.0 in place and used the companion cd of 10.0.1.2.0 to install the necessary tools on a clone. It seems to work and I was able to install the application now. Do I have to apply the patch again for some reason? Looking at the Metalink they say I should? Any experience out there.
    Denes Kubicek

  • Error while running the Oracle Text optimize index procedure (even as a dba user too)

    Hi Experts,
    I am on Oracle on 11.2.0.2  on Linux. I have implemented Oracle Text. My Oracle Text indexes are fragmented but I am getting an error while running the optimize_index error. Following is the error:
    begin
      ctx_ddl.optimize_index(idx_name=>'ACCESS_T1',optlevel=>'FULL');
    end;
    ERROR at line 1:
    ORA-20000: Oracle Text error:
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.CTX_DDL", line 941
    ORA-06512: at line 1
    Now I tried then to run this as DBA user too and it failed the same way!
    begin
      ctx_ddl.optimize_index(idx_name=>'BVSCH1.ACCESS_T1',optlevel=>'FULL');
    end;
    ERROR at line 1:
    ORA-20000: Oracle Text error:
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.CTX_DDL", line 941
    ORA-06512: at line 1
    Now CTXAPP role is granted to my schema and still I am getting this error. I will be thankful for the suggestions.
    Also one other important observation: We have this issue ONLY in one database and in the other two databases, I don't see any problem at all.
    I am unable to figure out what the issue is with this one database!
    Thanks,
    OrauserN

    How about check the following?
    Bug 10626728 - CTX_DDL.optimize_index "full" fails with an empty ORA-20000 since 11.2.0.2 upgrade (DOCID 10626728.8)

  • 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

  • Error When Creating Oracle Text index using Lexer Keyword

    Hi All,
    I am getting following error when i creating oracle text index using lexer & stoplist keyword.
    Pls Help me if any body know.
    Thanks in Advance.
    Error starting at line 1 in command:
    CREATE INDEX TXT_INX_TEXT_SEARCH ON TEXT_SEARCH (BFILE_DOC)
    Post INDEXTYPE IS "CTXSYS"."CONTEXT" LOCAL (
    PARTITION "BEFORE_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)') ,
    PARTITION "Q1_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q2_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q3_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q4_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q1_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q2_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q3_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q4_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q1_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q2_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q3_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q4_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "THE_REST" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)')
    Error at Command Line:1 Column:13
    Error report:
    SQL Error: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-11000: invalid keyword LEXER
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 365
    29855. 00000 - "error occurred in the execution of ODCIINDEXCREATE routine"
    *Cause:    Failed to successfully execute the ODCIIndexCreate routine.
    *Action:   Check to see if the routine has been coded correctly.
    Regards,
    Jack R.

    Hi,
    it works if you put an extra PARAMETERS clause at the end so the creation looks like:
    CREATE INDEX TXT_INX_TEXT_SEARCH ON TEXT_SEARCH (BFILE_DOC)
    INDEXTYPE IS "CTXSYS"."CONTEXT" LOCAL (
    PARTITION "BEFORE_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)') ,
    PARTITION "Q1_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q2_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q3_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q4_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q1_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q2_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q3_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q4_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q1_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q2_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q3_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q4_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "THE_REST" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)')
    PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)') <== Added
    Hope this helps
    Herald ten Dam

  • Error in accessing Knowledge base  + oracle text 11g

    Hi All,
    I am using oracle text 11g.
    I had installed a knowledge base and it was working fine(bcos i was able to generate themes and gists), i wanted to load a 'default' thesaurus, i created a 'default' thesaurus and from cmd prompt i gave 'ctxload' command, then it asked for user(i logged in as ctxsys credentials), name (thes default),file( thes path), but after this i got below error
    connecting...
    DRG-11510: encountered unrecoverable error on line1
    ORA-00931: missing identifier
    disconnected
    unknowingly after this i gave 'ctxkbtc' command and proceeded further and i cancelled this action by closing cmd prompt.
    after this, now i am not able to create themes or gists, i am getting the below error while creating themes.
    Error report:
    ORA-20000: Oracle Text error:
    DRG-11422: linguistic initialization failed
    DRG-00100: internal error, arguments : [52100],[drxa.c],[357],[gxtopen],[1]
    DRG-00100: internal error, arguments : [52100],[gxt.c],[186],[gxl err],[7]
    DRG-11432: file error while accessing knowledge base
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.CTX_DOC", line 210
    ORA-06512: at line 2
    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.
    please let me know the solution
    Thanks in advance.

    Hi,
    You can try running ctxkbtc once more with revert option.
    -revert
    Reverts the extended knowledge base to the default knowledge base provided by
    Oracle Text.
    Make sure to set NLS_LANG variable before running it
    If you have already solved this issue, if possible share the solution to this forum too.

  • Error while  synchronizing oracle text.

    Hi,
    I am getting below error when synchronize oracle text index. I checked in database mentoined index is present in user schema. My database version is oracle 9.2.0.7.
    BEGIN ctx_ddl.sync_index ( 'IDX_DEPDOCUMENTOBJECT') END;
    ERROR at line 1:
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in drekmap (lob write)
    ORA-01403: No data found
    ORA-06512: at "CTXSYS.DRUE", line 157
    ORA-06512: at "CTXSYS.CTX_DDL", line 1328
    ORA-06512: at line 1
    Pls suggest how i troubleshoot this error message.
    Thanks in advance.
    Edited by: user8943509 on Mar 16, 2010 5:15 AM

    SCOTT@orcl_11g> CREATE USER u1 IDENTIFIED BY u1
      2  /
    User created.
    SCOTT@orcl_11g> GRANT CONNECT, RESOURCE, CTXAPP TO u1
      2  /
    Grant succeeded.
    SCOTT@orcl_11g> GRANT EXECUTE ON CTXSYS.CTX_DDL TO u1
      2  /
    Grant succeeded.
    SCOTT@orcl_11g> CREATE USER u2 IDENTIFIED BY u2
      2  /
    User created.
    SCOTT@orcl_11g> GRANT CONNECT, RESOURCE TO u2
      2  /
    Grant succeeded.
    SCOTT@orcl_11g> CONNECT u1/u1
    Connected.
    U1@orcl_11g>
    U1@orcl_11g> CREATE TABLE u1_tab (u1_col CLOB)
      2  /
    Table created.
    U1@orcl_11g> CREATE INDEX u1_idx
      2  ON u1_tab (u1_col)
      3  INDEXTYPE IS CTXSYS.CONTEXT
      4  /
    Index created.
    U1@orcl_11g> INSERT INTO u1_tab VALUES ('whatever')
      2  /
    1 row created.
    U1@orcl_11g> COMMIT
      2  /
    Commit complete.
    U1@orcl_11g> CREATE OR REPLACE PROCEDURE u1_proc
      2  AS
      3  BEGIN
      4    ctx_ddl.sync_index ( 'U1.U1_IDX');
      5  END u1_proc;
      6  /
    Procedure created.
    U1@orcl_11g> SHOW ERRORS
    No errors.
    U1@orcl_11g> GRANT EXECUTE ON u1_proc TO u2
      2  /
    Grant succeeded.
    U1@orcl_11g> SELECT * FROM u1_tab
      2  WHERE  CONTAINS (u1_col, 'whatever') > 0
      3  /
    no rows selected
    U1@orcl_11g> CONNECT u2/u2
    Connected.
    U2@orcl_11g>
    U2@orcl_11g> EXEC u1.u1_proc
    PL/SQL procedure successfully completed.
    U2@orcl_11g> CONNECT u1/u1
    Connected.
    U1@orcl_11g>
    U1@orcl_11g> SELECT * FROM u1_tab
      2  WHERE  CONTAINS (u1_col, 'whatever') > 0
      3  /
    U1_COL
    whatever
    U1@orcl_11g>

  • Oracle Text Index Error - DRG-10700: preference does not exist: CTXSYS.DEFA

    Hi we are having a Oracle 11g db.And we have installed CTX SYS package and provided the grants to the required schema.
    But while creating the oracle text index, following error is thrown:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: CTXSYS.DEFAULT_LEXER
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 365
    Following grnats are given :
    GRANT EXECUTE ON CTXSYS.CTX_DDL TO <schema_name>;
    GRANT APPOWN TO <schema_name>;
    GRANT CTXAPP TO <schema_name>;
    I have verifyed the ctxsys.CTX_PREFERENCES view which is having an entry as :
    SELECT PRE_OWNER, PRE_NAME
    FROM CTXSYS.CTX_PREFERENCES
    WHERE PRE_NAME = 'DEFAULT_LEXER';
    The Result is :
    PRE_OWNER     PRE_NAME
    SYS     DEFAULT_LEXER
    Can you please assist if there is a way to update the permission on this DEFAULT_LEXER preference to set the PRE_OWNER as CTXSYS ?
    Thanks

    That's odd. If I run the same query I see:
    SQL> SELECT PRE_OWNER, PRE_NAME
      2  FROM CTXSYS.CTX_PREFERENCES
      3  WHERE PRE_NAME = 'DEFAULT_LEXER';
    PRE_OWNER                      PRE_NAME
    CTXSYS                         DEFAULT_LEXERAre all your defaults like thsi? What do you see if you run
    select pre_owner, pre_name from ctxsys.ctx_preferences where pre_name like 'DEFAULT%';
    It would be easy enough to update the underlying table DR$PREFERENCES to fix the owner, but who knows what else might be wrong.
    Has this database been updated from a 9i installation by any chance?

  • Error Creating Oracle Text Index giving DRG-50857: oracle error in drvxtab

    Hello,
    I'm trying to create an Oracle text indexd as follows:
    Create index tt.idx_emp on tt.emp(emp_name)
    Indextype is ctxsys.context
    Parameters(‘
    Datastore idx_emp_dst
    Filter idx_emp_fil
    Section group idx_emp_sgp
    Lexer idx_emp_lex
    Wordlist idx_emp_wdl
    Stoplist idx_emp_spl
    Storage idx_emp_sto
    Sync (on commit)
    But, I get the following error:
    Create index tt.idx_emp
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in drvxtab.create_index_tables
    ORA-00905: missing keywork
    ORA-06512: at “CTXSYS.DRUE”, line 160
    ORA-06512: at “CTXSYS.TEXTINDEXMETHODS”, line 364
    Has anyone encountered this error before? What did you do to fix this?
    Thanks.

    In what version?
    Have you checked metalink?

  • Error When Creating OR Rebuilding Oracle Text index using Lexer Keyword

    Hi All,
    I am getting following error when i creating oracle text index using lexer & stoplist keyword.
    Pls Help me if any body know.
    Thanks in Advance.
    Error starting at line 1 in command:
    CREATE INDEX TXT_INX_TEXT_SEARCH ON TEXT_SEARCH (BFILE_DOC)
    Post INDEXTYPE IS "CTXSYS"."CONTEXT" LOCAL (
    PARTITION "BEFORE_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)') ,
    PARTITION "Q1_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q2_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q3_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q4_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q1_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q2_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q3_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q4_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q1_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q2_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q3_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q4_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "THE_REST" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)')
    Error at Command Line:1 Column:13
    Error report:
    SQL Error: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-11000: invalid keyword LEXER
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 365
    29855. 00000 - "error occurred in the execution of ODCIINDEXCREATE routine"
    *Cause:    Failed to successfully execute the ODCIIndexCreate routine.
    *Action:   Check to see if the routine has been coded correctly.
    Regards,
    Jack R.

    Hi,
    it works if you put an extra PARAMETERS clause at the end so the creation looks like:
    CREATE INDEX TXT_INX_TEXT_SEARCH ON TEXT_SEARCH (BFILE_DOC)
    INDEXTYPE IS "CTXSYS"."CONTEXT" LOCAL (
    PARTITION "BEFORE_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)') ,
    PARTITION "Q1_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q2_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q3_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q4_2007" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q1_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q2_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q3_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q4_2008" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q1_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q2_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q3_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "Q4_2009" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)'),
    PARTITION "THE_REST" PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)')
    PARAMETERS ('LEXER dd_lexer STOPLIST dd_stoplist SYNC (ON COMMIT)') <== Added
    Hope this helps
    Herald ten Dam

  • Online help index error w.r.t oracle text

    Hi,
    Error creating online help index.
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: Oracle Text error: DRG-10700: preference does not exist: CTXSYS.DEFAULT_LEXER
    when i click on help on htmldb and then when i click on find. i get this following error.
    how do i fix this error.
    Can someone help me please.
    THanks,
    Philip.

    Steps to resolve the domian index creation problem:
    Step 1: Ensure the schema CTXSYS does not exist, if exists ignore the execution of “step 2”.
    Step 2: Add the below mentioned statement above the existing statement(also mentioned below) in the catctx.sql file which is in the $ORACLE_HOME/ctx/admin" location.
    Existing statement : Rem CTXDEF.sql - ctx default object creation
    Statement to be added: grant execute on CTX_DDL to ctxsys ;
         In SYS user login, execute the script to create CTXSYS schema and its related objects after confirming below parameters to this script
         ctxsys           - password of CTXSYS schema
         SYSAUX     - default tablespace
         TEMP           - default temp tablespace (Replace if your database default temporary tablespace is different)
    SQL>@$ORACLE_HOME/ctx/admin/catctx.sql ctxsys SYSAUX TEMP NOLOCK
    Step 3: In SYS user login execute the below script to recompile user objects
         SQL>@$ORACLE_HOME/rdbms/admin/utlrp.sql
    Step 4: In CTXSYS user login, execute the below script to create default preference for language ENGLISH
         SQL>@$ORACLE_HOME/ctx/admin/defaults/drdefus.sql
    Step 5 : In SYS User login ,execute the below script to give grant permission
    SQL>grant ctxapp to DBusername identified by Password;
    SQL>grant select on ctxsys.dr$preference to DBusername;
    SQL>grant execute on CTX_DDL to DBusername;
    Step 5: Login as DB user and execute the below drop index script if any already exists in same name
         SQL>DROP INDEX LEI_CATALOG_SEARCH_SFIELD
    Step 6: Login as DB user and create the below domain index
         SQL>CREATE INDEX LEI_CATALOG_SEARCH_SFIELD ON LET_CATALOG_SEARCH (SEARCH_FIELD) INDEXTYPE IS CTXSYS.CONTEXT;
    Regards,
    Kamal.C
    Edited by: 871818 on Jul 12, 2011 2:17 AM

Maybe you are looking for

  • Report for monthly pay components for the employees

    Hai Group I want a report for all the employees monthly  total wage and each individual components like basic, hra, medical, special allow etc, and also for deductions like pf, esi, pt, tax, etc. Is standard report available or we need to go for a de

  • How to create a playlist *with* duplicate songs

    I have a practice where I need to play a playlist with duplicate audio tracks.  The audio tracks are not duplicated in the iTunes app and I don't want to duplicate them as audio tracks.  I only want to create a playlist that will play the same audio

  • Play All Script does not Play All !!

    i need to be able to add a Play All button to the various menu pages on my project. I tried using the sample scripts in the manual, and aside from changing the movie file names, it was letter and space perfect. Yet when i tried testing it using the S

  • Creating Function Module in Generic Extractor?

    Hello All DO anyone has steps how to create a Functional Module in Generic Extraction? Pl let me know Many Thanks balaji

  • Problem in Database Configuration Assistant

    I did install successfully oracle9i(9.2.0) database program install Step but "Configuration Tools" Step is not work - Copying databases Files - oK. - Initializing database -ok. - creating and starting Oracle instance - still progress and it could not