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

Similar Messages

  • 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?

  • SQL ERROR

    HI EXPERTS!
    CAN ANYBODY TELL ME HOW TO RESOLVE THIS RUNTIME ERROR ON EXECUTING TRANSACTION PC00_M40_CALC.
    Runtime errors         DBIF_RSQL_SQL_ERROR
    Exception              CX_SY_OPEN_SQL_DB
           Occurred on     07.08.2007 at   14:13:06
    An SQL error occurred when accessing a table.
    What happened?
    What can you do?
    Make a note of the actions and input which caused the error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "GET_SLAB_RATE" "(METHOD)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    How to correct the error
    The exception must either be prevented, caught within the procedure
    "GET_SLAB_RATE"
    "(METHOD)", or declared in the procedure's RAISING clause.
    To prevent the exception, note the following:
    Database error text........: "ORA-04031: unable to allocate 4200 bytes of
    shared memory ("shared pool","SELECT * FROM "T7INT1" WHERE...","library
    cache","kkslpkp - literal info.")"
    Internal call code.........: "[RSQL/FTCH/T7INT1 ]"
    Please check the entries in the system log (Transaction SM21).
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:
    "DBIF_RSQL_SQL_ERROR" CX_SY_OPEN_SQL_DBC
    "CL_HRPAYIN_SLABRATES==========CP " or "CL_HRPAYIN_SLABRATES==========CM002 "
    "GET_SLAB_RATE"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
       To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
       To obtain this, call the system log with Transaction SM21
       and select the "Print" function to print out the relevant
       part.
    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, you can either use the "PRINT" command in the editor or
       print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.
    System environment
    SAP Release.............. "620"
    Application server....... "hmsidev01"
    Network address.......... "10.249.16.150"
    Operating system......... "Windows NT"
    Release.................. "5.0"
    Hardware type............ "2x Intel 801586"
    Character length......... 8 Bits
    Pointer length........... 32 Bits
    Work process number...... 0
    Short dump setting....... "full"
    Database server.......... "HMSIDEV01"
    Database type............ "ORACLE"
    Database name............ "DEV"
    Database owner........... "SAPDEV"
    Character set............ "English_United State"
    SAP kernel............... "620"
    Created on............... "Jun 13 2004 22:06:10"
    Created in............... "NT 5.0 2195 Service Pack 2 x86 MS VC++ 12.00"
    Database version......... "OCI_817_SHARE "
    Patch level.............. "1511"
    Patch text............... " "
    Supported environment....
    Database................. "ORACLE 8.1.7.."
    SAP database version..... "620"
    Operating system......... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"
    User, transaction...
    Client.............. 100
    User................ "IR1"
    Language key........ "E"
    Transaction......... "PC00_M40_CALC "
    Program............. "CL_HRPAYIN_SLABRATES==========CP "
    Screen.............. "SAPMSSY0 1000"
    Screen line......... 6
    Information on where terminated
    The termination occurred in the ABAP program "CL_HRPAYIN_SLABRATES==========CP
    " in "GET_SLAB_RATE".
    The main program was "HINCALC0 ".
    The termination occurred in line 12 of the source code of the (Include)
    program "CL_HRPAYIN_SLABRATES==========CM002 "
    of the source code of program "CL_HRPAYIN_SLABRATES==========CM002 " (when
    calling the editor 120).
    Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
    the
    procedure "GET_SLAB_RATE" "(METHOD)" but was not handled locally, not declared
    in the
    RAISING clause of the procedure.
    The procedure is in the program "CL_HRPAYIN_SLABRATES==========CP ". Its source
    code starts in line 1
    of the (Include) program "CL_HRPAYIN_SLABRATES==========CM002 ".
    Source code extract
    000010   METHOD get_slab_rate .
    000020
    000030     DATA: wa_t7int1 TYPE  t7int1,
    000040           wa_t7int3 TYPE  t7int3,
    000050           slab_code TYPE t7int1-slcod.
    000060     CLEAR: wa_t7int1 ,
    000070           wa_t7int3 ,
    000080           slab_code .
    000090
    000100
    000110   * Select slab code from t7int1.
        SELECT * FROM t7int1 INTO wa_t7int1
    000130                WHERE sltyp = slab_type
    000140                AND begda LT ref_date
    000150                AND endda GE ref_date.
    000160       MOVE wa_t7int1-slcod TO slab_code.
    000170     ENDSELECT.
    000180
    000190   * Find out the rate for the salb code in which the income falls.
    000200     SELECT * FROM t7int3 INTO wa_t7int3 WHERE slcod = slab_code ORDER BY
    000210   hirge.
    000220       IF wa_t7int3-hirge GE income.
    000230         EXIT.
    000240       ENDIF.
    000250     ENDSELECT.
    000260
    000270     slab_rate = wa_t7int3-txval.
    000280
    000290
    000300   ENDMETHOD.
    Contents of system fields
    SY field contents..................... SY field contents.....................
    SY-SUBRC 0                             SY-INDEX 215
    SY-TABIX 63                            SY-DBCNT 1
    SY-FDPOS 1                             SY-LSIND 0
    SY-PAGNO 1                             SY-LINNO 1
    SY-COLNO 1                             SY-PFKEY
    SY-UCOMM                               SY-TITLE Payroll Driver, India
    SY-MSGTY                               SY-MSGID
    SY-MSGNO 000                           SY-MSGV1
    SY-MSGV2                               SY-MSGV3
    SY-MSGV4
    Active calls / events
    No.... Type........ Name..........................
           Program
           Include                                  Line
           Class
        16 METHOD       GET_SLAB_RATE
           CL_HRPAYIN_SLABRATES==========CP
           CL_HRPAYIN_SLABRATES==========CM002         12
           CL_HRPAYIN_SLABRATES
        15 FORM         STDDED03
           HINCALC0
           PCTAXIN0                                   564
        14 FORM         CALC_STANDARD_DEDUCTION
           HINCALC0
           PCTAXIN0                                   466
        13 FORM         FUINTAX
           HINCALC0
           PCTAXIN0                                   253
        12 FORM         AS-FUNKTION
           HINCALC0
           PCASFIN0                                    13
        11 FORM         ASLOOP
           HINCALC0
           RPCHRT09_ASLOOP                             58
        10 FORM         MONATSABRECHNUNG
           HINCALC0
           RPCHRT09_MONATSABRECHNUNG                   48
         9 FORM         RUECKRECHNUNG
           HINCALC0
           RPCHRT09_RUECKRECHNUNG                     136
         8 FORM         MAIN
           HINCALC0
           RPCHRT09_MAIN                              134
         7 FORM         %_GET_PERNR
           HINCALC0
           RPCHRT09                                   762
         6 FORM         FILL_INFOTYPE_TABLES_AND_PUT
           SAPDBPNP
           DBPNPF03                                   542
         5 FORM         PUTPERN
           SAPDBPNP
           DBPNPF03                                   470
         4 FORM         LOOP_AT_INDEX_AND_PUT
           SAPDBPNP
           DBPNPF01                                   996
         3 FORM         PUT_PERNR
           SAPDBPNP
           DBPNPF01                                   194
         2 FORM         %_ROOT
           SAPDBPNP
           SAPDBPNP                                   151
         1 EVENT        SYSTEM-EXIT
           HINCALC0
                                               20
    Chosen variables
        16 METHOD       GET_SLAB_RATE
           CL_HRPAYIN_SLABRATES==========CP
           CL_HRPAYIN_SLABRATES==========CM002         12
    SLAB_TYPE                      D
                                   4
                                   4
    REF_DATE                       20070331
                                   33333333
                                   20070331
    INCOME                         ####Q•“#
                                   00005991
                                   0001153C
    SLAB_RATE                      ########
                                   00000000
                                   0000000C
    WA_T7INT1                          0000000000000000
                                   222233333333333333332
                                   000000000000000000000
    WA_T7INT3                            #######       #######
                                   222222000000022222220000000
                                   000000000000C0000000000000C
    SLAB_CODE
                                   2222
                                   0000
    %_VIASELSCR                    #
                                   0
                                   4
    <%_TABLE_T7INT1>               ???
    %_SPACE
                                   2
                                   0
    SYST-REPID                     CL_HRPAYIN_SLABRATES==========CP
                                   4454554544554445454533333333334522222222
                                   3CF820199EF3C1221453DDDDDDDDDD3000000000
    SY-XPROG                       SAPDBPNP
                                   5454454522222222222222222222222222222222
                                   310420E000000000000000000000000000000000
    SY-REPID                       CL_HRPAYIN_SLABRATES==========CP
                                   4454554544554445454533333333334522222222
                                   3CF820199EF3C1221453DDDDDDDDDD3000000000
    SY-XFORM                       %_ROOT
                                   255445222222222222222222222222
                                   5F2FF4000000000000000000000000
    %_DUMMY$$
                                   2222
                                   0000
    <%_TABLE_T7INT3>               ???
        15 FORM         STDDED03
           HINCALC0
           PCTAXIN0                                   564
    STD_DED_TAB                    Table[initial]
                                   0000FFFD
                                   0000FFFF
    SY-TABIX                       63
                                   3000
                                   F000
    STD_PERCENT                    #####
                                   00000
                                   0000C
    %_SPACE
                                   2
                                   0
    SYST-REPID                     HINCALC0
                                   4444444322222222222222222222222222222222
                                   89E31C3000000000000000000000000000000000
    SPACE
                                   2
                                   0
    %_DUMMY$$
                                   2222
                                   0000
    $ENDDATE                       20070331
                                   33333333
                                   20070331
    $PRE_DEDN_AMOUNT               ####Q•“#
                                   00005991
                                   0001153C
    $CALC_DEDN                     ########
                                   00000000
                                   0000000C
    SY-REPID                       HINCALC0
                                   4444444322222222222222222222222222222222
                                   89E31C3000000000000000000000000000000000
    SY                             ×#######?###?###########################
                                   D000000030003000000000000000000000000000
                                   70001000F000F000000000000000000000000000
    ... +  40                      ####################„###############5###
                                   0000000000000000000080000000000000003000
                                   1000100010000000100040000000000000005000
    ... +  80                      ########################################
                                   0000000000000000000000000000000000000000
                                   0000000000000000400000000000000000000000
    ... + 120                      ################################%###Ž###
                                   0000000000000000000000000000000020008000
                                   000000000000000000000000000000005000E000
    ... + 160                      ############XM## P#############   E0   1
                                   0000000000005400250000000000000222432223
                                   0000700040008D00000020000C0000C000500001
    ... + 200                      000         ####PNP                 100
                                   3332222222220000545222222222222222223332
                                   00000000000000000E0000000000000000001000
    ... + 240                           00
                                   222223322222222
                                   000000000000000
    NO_OF_ROWS
                                   2
                                   0
    SY-TFILL                       63
                                   3000
                                   F000
        14 FORM         CALC_STANDARD_DEDUCTION
           HINCALC0
           PCTAXIN0                                   466
    P0015[]                        Table IT_204[12x147]
                                   F7D4DED48000C000000090000000FFFF00004500
                                   871900998000C000C00030000000FFFF40000F00
    ... +  40
                                   0000C020
                                   20001E80
    SW_AUFROLLUNG                  X
                                   5
                                   8
    %BX03242_BLOCK_1000            Log
                                   4662222222222222222222222222222222222222
                                   CF70000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   222
                                   000
    SNAME                          40INDED
                                   33444442
                                   409E4540
    T559A-WTIME                    000000
                                   333333
                                   000000
    OGRT[]                         Table IT_299[0x53]
                                   00000000C0002000000030000000FFFF0000E300
                                   000000003000B100000050000000FFFF40000310
    ... +  40
                                   1000C200
                                   00001E00
    ENDDATE                        20070331
                                   33333333
                                   20070331
    T596F-PGMNA                    HINCALC0
                                   4444444322222222222222222222222222222222
                                   89E31C3000000000000000000000000000000000
    T596F-MODNA                    STDDED03
                                   55444433
                                   34445403
    P_PRE_DEDUCTION_BALANCE        ####Q•“#
                                   00005991
                                   0001153C
    STANDARD_DEDUCTION             ########
                                   00000000
                                   0000000C
    P2006[]                        Table IT_460[37x168]
                                   9ED40000E000C0002000A0000000FFFF00008500
                                   877900006000C100500080000000FFFF40000600
    ... +  40
                                   0000C020
                                   20001E00
        13 FORM         FUINTAX
           HINCALC0
           PCTAXIN0                                   253
    ANNUAL_IRREGULAR_INCOME        ####3#%L
                                   00003124
                                   0000365C
    %_SET_VOID_%_APP_%
                                   222222222222222222222222222222
                                   000000000000000000000000000000
    ANNUAL_PERK                    ########
                                   00000000
                                   0000000C
    SET_ODC
                                   2
                                   0
    %_SET_ODC_%_APP_%
                                   222222222222222222222222222222
                                   000000000000000000000000000000
    SET_REVR
                                   2
                                   0
    P%2007                         00000000           000000000000000000000
                                   3333333322222222222333333333333333333333
                                   0000000000000000000000000000000000000000
    ... +  40                      000000                                00
                                   3333332222222222222222222222222222222233
                                   0000000000000000000000000000000000000000
    ... +  80                      0000000000 00###### ######   00000000000
                                   3333333333233000000200000022233333333333
                                   000000000000000000C000000C00000000000000
    ... + 120                      0000000000000000000000000
                                   3333333333333333333333333222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160
                                   222222222222
                                   000000000000
    PRE_DEDUCTION_BALANCE          ####Q•“#
                                   00005991
                                   0001153C
    OCRSN
                                   2222
                                   0000
    APER-PAPER-PABRJ               2006
                                   3333
                                   2006
    APER-IAPER-PABRJ               2007
                                   3333
                                   2007
    SW_INTIM
                                   2
                                   0
    APER-PAPER                     200612
                                   333333
                                   200612
    ANN_PTAX_AMT                   ########
                                   00000000
                                   0000000C
        12 FORM         AS-FUNKTION
           HINCALC0
           PCASFIN0                                    13
    P0584                          00000000           000000000000000000000
                                   3333333322222222222333333333333333333333
                                   0000000000000000000000000000000000000000
    ... +  40                      000000                                 #
                                   3333332222222222222222222222222222222220
                                   0000000000000000000000000000000000000000
    ... +  80                      ########################################
                                   0000000000000000000000000000000000000000
                                   00000C0000C0000C0000C0000C000000C000000C
    ... + 120                      ####################################
                                   0000000000000000000000000000000000002222
                                   000000C000000C0000C0000C000000C0000C0000
    ... + 160                                 0000
                                   22222222222333322222
                                   00000000000000000000
    ORGDIR                         00000        0000000000000000  00      0
                                   3333322222222333333333333333322332222223
                                   0000000000000000000000000000000000000000
    ... +  40                      0000000        0000000000000000000000000
                                   3333333222222223333333333333333333333333
                                   0000000000000000000000000000000000000000
    ... +  80                      0000000000000  00000000
                                   3333333333333223333333322222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120                      00000000000000 000000000000000000000
                                   3333333333333323333333333333333333332222
                                   0000000000000000000000000000000000000000
    RP-IMP-CD-SUBRC                0
                                   0000
                                   0000
    CD-SUBRC                       0
                                   0000
                                   0000
    CD-INDEX                       0
                                   0000
                                   0000
    IT[]                           Table IT_490[63x53]
                                   EFC47AC4F000E000300030000000FFFF00005100
                                   0AB903399000A100F00050000000FFFF40000810
    ... +  40
                                   2000C000
                                   B0009E00
    IT                             */418######### #   ####################Q
                                   2233300000000020222000000000000000000005
                                   AF418000000000000000000000C0000000C00011
    ... +  40                      •“#
                                   9912222222222
                                   53C0000000000
    RGDIR_CA[]                     Table IT_383[0x156]
                                   00003ED4E0007000000090000000FFFF0000C100
                                   000086791000F1000000C0000000FFFF40000810
    ... +  40
                                   4000C000
                                   00001400
    RGDIR_CA                       00000        0000000000000000  00      0
                                   3333322222222333333333333333322332222223
                                   0000000000000000000000000000000000000000
    ... +  40                      0000000        0000000000000000000000000
                                   3333333222222223333333333333333333333333
                                   0000000000000000000000000000000000000000
    ... +  80                      0000000000000  00000000
                                   3333333333333223333333322222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120                      00000000000000 000000000000000000000
                                   333333333333332333333333333333333333
                                   000000000000000000000000000000000000
    %%_DIR2[]                      Table IT_218[0x54]
                                   000000009000D000000030000000FFFF0000D100
                                   000000006000A000000060000000FFFF40008210
    ... +  40
                                   6000C000
                                   40001400
    <%_TABLE_T599B>                ???
    PY_PM_CONTAINER                                                00000000
                                   2222222222222222222222222222222233333333
                                   0000000000000000000000000000000000000000
    ... +  40                      0
                                   3222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 200
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 240
                                   222222222222222
                                   000000000000000
    PNPSTATU-LOW
                                   222
                                   000
    SET_LCW                        010
                                   333
                                   010
        11 FORM         ASLOOP
           HINCALC0
           RPCHRT09_ASLOOP                             58
    P_WITH_LOG                     X
                                   5
                                   8
    SW_EXPORT_ES
                                   2
                                   0
    ASNUM                          215
                                   D000
                                   7000
    APER_NUMB                      15
                                   0000
                                   F000
    NEXT_AS_ENTRY                  244
                                   F000
                                   4000
    SW_REPETITION                  X
                                   5
                                   8
    SW_P0005_CHANGED
                                   2
                                   0
    PNPSACHZ
                                   222222222
                                   000000000
    PTEXT[]                        Table IT_139[0x548]
                                   0000CCC460008000000020000000FFFF00004300
                                   00000D79C000B000000042000000FFFF40000500
    ... +  40
                                   1000C200
                                   00001400
    SW_VOID
                                   2
                                   0
    SCREEN                         %_17SNS0000177553_%_%_%_%_%_%_
                                   2533545333333333352525252525252222222222
                                   5F173E30000177553F5F5F5F5F5F5F0000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120                                           SRI00001#00000 ####
                                   2222222222222222222225543333303333320000
                                   0000000000000000000003290000100000000000
    SW_PROT
                                   2
                                   0
    PNPSBMOD-LOW
                                   2222
                                   0000
    PTEXT_LINES                    0
                                   0000
                                   0000
        10 FORM         MONATSABRECHNUNG
           HINCALC0
           RPCHRT09_MONATSABRECHNUNG                   48
    CALC_CURRENCY                  INR
                                   44522
                                   9E200
    SY-SUBRC                       0
                                   0000
                                   0000
    CALC_CURR_DEC                  1380862210
                                   0
                                   2
    TCURX-CURRDEC                  0
                                   0
                                   0
    PNPPERSK-LOW
                                   22
                                   00
    PNPKOSTL
                                   22222222222222222222222
                                   00000000000000000000000
    SL_BRUTTO
                                   2
                                   0
    FC-SL_B_N
                                   2
                                   0
    %_PNPSNAME_%_APP_%             PNPSNAMEEE name can be sorted         to
                                   5455444444266662666266276776622222222276
                                   0E03E1D5550E1D5031E02503F24540000000004F
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                         @1FQMultiple selection@
                                   2224345547676766276666766642222222222222
                                   000016C1D5C490C5035C5349FE00000000000000
    ... + 120
                                   222
                                   000
    APER-CALCD                     X
                                   5
                                   8
    DT                             /AEA00200612  00000000########
                                   24443333333322333333330000000022222
                                   F1510020061200000000000000000C00000
    DT[]                           Table IT_1916[4x35]
                                   F8F40000E0007000000020000000FFFF0000E400
                                   06090000A100C700400030000000FFFF40008610
    ... +  40
                                   1000C220
                                   00001E00
         9 FORM         RUECKRECHNUNG
           HINCALC0
           RPCHRT09_RUECKRECHNUNG                     136
    APER-PAYTY
                                   2
                                   0
    SY-XPROG                       SAPDBPNP
                                   5454454522222222222222222222222222222222
                                   310420E000000000000000000000000000000000
    PYCT                           0<>
                                   0000FFFF
                                   0000FFFF
    PNP-SW-AUTH-SKIPPED-RECORD     0
                                   3
                                   0
    P0007[]                        Table IT_201[4x138]
                                   CBC47DD48000C000000080000000FFFF00005400
                                   80390F99500090004000A0000000FFFF40008B00
    ... +  40
                                   0000C020
                                   20001E80
    PNPKOKRS[]                     Table IT_52[0x11]
                                   0000000020003000000000000000FFFF04007200
                                   00000000A00040000000B0000000FFFF44008700
    ... +  40
                                   0000C000
                                   A0001400
    PNPBLCKT
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   222
                                   000
    FC-NT_BEGIN                    0
                                   0000
                                   0000
    PNP-SW-IGNORELOCKEDRECORDS     Y
                                   5
                                   9
    FROM_DATE                      00000000
                                   33333333
                                   00000000
    %_SET_LCW_%_APP_%
                                   222222222222222222222222222222
                                   000000000000000000000000000000
         8 FORM         MAIN
           HINCALC0
           RPCHRT09_MAIN                              134
    %_PNPFKBER_%_APP_%             PNPFKBERFunctional Area               to
                                   5454444547667666662476622222222222222276
                                   0E06B25265E349FE1C012510000000000000004F
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                         @1FQMultiple selection@
                                   2224345547676766276666766642222222222222
                                   000016C1D5C490C5035C5349FE00000000000000
    ... + 120
                                   222
                                   000
    PERNR-PERNR                    00003015
                                   33333333
                                   00003015
                            Table IT_235[0x178]
                                   000045D4A000E0000000B0000000FFFF00003400
                                   000080390000B000000020000000FFFF40008110
    ... +  40
                                   1000C200
                                   00001400
    P0027[]                        Table IT_234[0x1851]
                                   0000A4D49000E000000030000000FFFF0000DE00
                                   00008F39F000A0000000B7000000FFFF40000610
    ... +  40
                                   0000C200
                                   80001E00
    PNPENAME
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   222
                                   000
    INFTY[]                        Table IT_116[34x4]
                                   8EC4000050007000200000000000FFFF0D008000
                                   0E790000A0004000200040000000FFFF43000900
    ... +  40
                                   2000C000
                                   20001400
    INFTY                          0078
                                   3333
                                   0078
    PNPBLCKP                       Payroll period
                                   5677666276766622222222222222222222222222
                                   0192FCC00529F400000000000000000000000000
    ... +  40
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80
                                   222
                                   000
    SY-MSGNO                       000
                                   333
                                   000
    FC-PGM_TYP                     ABR
                                   4452
                                   1220
    PY12W_MEM_ID_BUFFER            T512W_BUFFER
                                   533355454445
                                   45127F256652
    RSJOBINFO                                                      00000000
                                   2222222222222222222222222222222233333333
                                   0000000000000000000000000000000000000000
    ... +  40                      000000
                                   3333332222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                      ####
                                   0000
                                   0000
    P0032                          00000000           000000000000000000000
                                   3333333322222222222333333333333333333333
                                   0000000000000000000000000000000000000000
    ... +  40                      000000
                                   3333332222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                                             #####
                                   2222222222222222222222200000222222222222
                                   000000000000000000000000000C000000000000
    ... + 120
                                   2222222222222222222222222222222222222222
                           

    Hello,
    strange, you have the same message in SQL Server forum, but we can see Oracle DB here:
    SQL ERROR
    Without developer traces it would be difficult to say. But it looks bad enough because of kernel 6.20 patch level 1511 (definitely dboraslib.dll has similar patch level) and Oracle 8.1.7 are out of support since years.
    best regards

  • Oracle Text, ctxsys.context problem with number column

    Hi,
    DB 11.2.0.3
    Is there any solution to create ctxsys.context index on number column ? Or I have to create other index type ?
    When I try do that (create ctxsys.context index), I get
    09:01:18  ORA-29855: wystąpił błąd przy wykonywaniu podprogramu ODCIINDEXCREATE  (An error has occurred in the performance of the subprogram)
    09:01:18  ORA-20000: Oracle Text - błąd: (- error:)
    09:01:18  DRG-10509: niepoprawna kolumna tekstowa: ITEM_TYPE (invalid text column:)
    09:01:18  ORA-06512: przy "CTXSYS.DRUE", linia 160
    09:01:18  ORA-06512: przy "CTXSYS.TEXTINDEXMETHODS", linia 366Btw, is there possible to search like "*LIKE %123%*" clause any of index (in contains) ?
    Edited by: Ndejo on 2012-11-21 00:53

    The multi_column_datastore says that the text to be indexed should be fetched from the supplied COLUMNS list rather than from the actual column the index is created on.
    So in this case we're fetching the contents of "theNumber" column, converting it to text, and indexing it.
    You don't necessarily need a dummy column, if "a_title" is a varchar column you could create the index on that instead.
    For example:
    SQL> create table mytab( a_id number, a_code number, a_title varchar2(80), a_subtitle varchar2(80), a_info clob );
    Table created.
    SQL> insert into mytab values ( 12, 9812376, 'foo is the title',
      2  'foobar is the subtitle', 'the info column will not be indexed' );
    1 row created.
    SQL> exec ctx_ddl.drop_preference( 'myds' )
    PL/SQL procedure successfully completed.
    SQL> exec ctx_ddl.create_preference( 'myds', 'MULTI_COLUMN_DATASTORE' )
    PL/SQL procedure successfully completed.
    SQL> exec ctx_ddl.set_attribute( 'myds', 'COLUMNS', 'a_code, a_title, a_subtitle' )
    PL/SQL procedure successfully completed.
    SQL> create index myindex on mytab (a_title) indextype is ctxsys.context
      2  parameters ('datastore myds');
    Index created.
    SQL> select a_id from mytab where contains (a_title, '%123%') > 0;
          A_ID
            12
    SQL> select a_id from mytab where contains (a_title, 'foo') > 0;
          A_ID
            12If you want to be able to search within a particular column, then add "section group CTXSYS.AUTO_SECTION_GROUP" to the parameters clause, and you can then do:
    SQL> select a_id from mytab where contains (a_title, 'foobar WITHIN a_subtitle') > 0;
          A_ID
            12

  • SQL error in the database when accessing a table.

    Hi,
    I got below error at production server. Please suggest how to reslove this error.
    <br>
    <br>
    <br>
    Runtime Errors         DBIF_RSQL_SQL_ERROR
    <br>
    Exception              CX_SY_OPEN_SQL_DB
    <br>
    Date and Time          02.01.2011 15:55:06
    <br>
    <br>
    <br>
    <br>
    <br>
    Short text
    <br>
    SQL error in the database when accessing a table.
    <br>
    <br>
    <br>
    How to correct the error
    <br>
    Database error text........: "[10054] TCP Provider: An existing connection was
    <br>
    forcibly closed by the remote host.
    <br>
    [10054] Communication link failure"
    <br>
    Internal call code.........: "[RSQL/INSR/SWFCNTBUF ]"
    <br>
    Please check the entries in the system log (Transaction SM21).
    <br>
    <br>
    If the error occures in a non-modified SAP program, you may be able to
    <br>
    find an interim solution in an SAP Note.
    <br>
    If you have access to SAP Notes, carry out a search with the following
    <br>
    keywords:
    <br>
    <br>
    "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
    <br>
    "CL_SWF_CNT_FACTORY_SHMEM======CP" or "CL_SWF_CNT_FACTORY_SHMEM======CM001"
    <br>
    |    "ADD_INSTANCE"         
    <br>
    <br>
    <br>
    Information on where terminated
    <br>
    Termination occurred in the ABAP program "CL_SWF_CNT_FACTORY_SHMEM======CP" -
    <br>
    in "ADD_INSTANCE".
    <br>
    The main program was "SAPMSSY1 ".
    <br>
    <br>
    In the source code you have the termination point in line 16
    <br>
    of the (Include) program "CL_SWF_CNT_FACTORY_SHMEM======CM001".
    <br>
    The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in
    <br>
    procedure "ADD_INSTANCE" "(METHOD)", but it was neither handled locally nor
    <br>
    declared
    <br>
    in the RAISING clause of its signature.
    <br>
    <br>
    The procedure is in program "CL_SWF_CNT_FACTORY_SHMEM======CP "; its source
    <br>
    code begins in line
    <br>
    1 of the (Include program "CL_SWF_CNT_FACTORY_SHMEM======CM001 ".
    <br>
    <br>
    <br>
    <br>
    Source Code Extract
    <br>
    <br>
    Line
    SourceCde
    <br>
    <br>
    1
    METHOD add_instance .
    <br>
    2
    <br>
    3
    data: ls_id type swfcntbuf.
    <br>
    4
    <br>
    5
    check buffer method - store in local buffer if necessary
    <br>
    6
    retcode = cl_swf_cnt_factory=>add_instance( ibf_por = ibf_por instance = instance ).
    <br>
    7
    <br>
    8
    CHECK m_buffer_method EQ mc_buffer_shared.
    <br>
    9
    <br>
    10
    append key to list of tasks to add stored in database table SWFCNTBUF
    <br>
    11
    will be evaluated by build process for shared memory area (UPDATE_BUFFER method)
    <br>
    12
    <br>
    13
    ls_id-mandt = sy-mandt.
    <br>
    14
    ls_id-id    = ibf_por.
    <br>
    15
    <br>
    >>>>>
    INSERT swfcntbuf CONNECTION r/3*wfcontainer
    <br>
    17
    FROM ls_id.
    <br>
    18
    <br>
    19
    IF sy-subrc EQ 0.
    <br>
    20
    Commit seems to be necessary always, even if INSERT has failed, to get rid of
    <br>
    21
    database locks
    <br>
    22
    COMMIT CONNECTION r/3*wfcontainer.
    <br>
    23
    ENDIF.
    <br>
    24
    <br>
    25
    ENDMETHOD.
    <br>

    duplicate here SQL error in the database when accessing a table.
    Do not post the same question in more than on forum.

  • Update statements encounterd  Errors  OGG-01168 & SQL error 1403 mapping

    Hi Expetrs,
    Update statements throwing below error:
    2012-11-07 10:40:11  WARNING OGG-00869  Oracle GoldenGate Delivery for Oracle, rep1.prm:  No unique key is defined for table AAAA. All viable columns will be used to represent the key, but may not guarantee uniqueness.  KEYCOLS may be used to define the key.
    2012-11-07 10:40:12  WARNING OGG-00869  Oracle GoldenGate Delivery for Oracle, rep1.prm:  No unique key is defined for table AAAA. All viable columns will be used to represent the key, but may not guarantee uniqueness.  KEYCOLS may be used to define the key.
    2012-11-07 10:40:15  WARNING OGG-00869  Oracle GoldenGate Delivery for Oracle, rep1.prm:  No unique key is defined for table BBBB. All viable columns will be used to represent the key, but may not guarantee uniqueness.  KEYCOLS may be used to define the key.
    2012-11-07 10:40:15  WARNING OGG-00869  Oracle GoldenGate Delivery for Oracle, rep1.prm:  No unique key is defined for table BBBB. All viable columns will be used to represent the key, but may not guarantee uniqueness.  KEYCOLS may be used to define the key.
    2012-11-07 10:40:16  WARNING OGG-01004  Oracle GoldenGate Delivery for Oracle, rep1.prm:  Aborted grouped transaction on 'abc.BBBB', Database error 100 (retrieving bind info for query).
    2012-11-07 10:40:16  WARNING OGG-01003  Oracle GoldenGate Delivery for Oracle, rep1.prm:  Repositioning to rba 17466 in seqno 1384.
    2012-11-07 10:40:16  WARNING OGG-01154  Oracle GoldenGate Delivery for Oracle, rep1.prm:  SQL error 1403 mapping abc.BBBB to abc.BBBB.
    2012-11-07 10:40:16  WARNING OGG-01003  Oracle GoldenGate Delivery for Oracle, rep1.prm:  Repositioning to rba 20104 in seqno 1384.
    2012-11-07 10:40:16  ERROR   OGG-01296  Oracle GoldenGate Delivery for Oracle, rep1.prm:  Error mapping from abc.BBBB to abc.BBBB.
    2012-11-07 10:40:16  ERROR   OGG-01668  Oracle GoldenGate Delivery for Oracle, rep1.prm:  PROCESS ABENDING.If I use KEYCOLS:
    --extract file:
    TABLE abc.INDIA , KEYCOLS (ID);--replicat parameter file
    MAP abc.INDIA, TARGET abc.INDIA , KEYCOLS (ID);Encountered below error
    2012-11-09 00:37:54  WARNING OGG-00869  Oracle GoldenGate Delivery for Oracle, rep1.prm:  No unique key is defined for table INDIA. All viable columns will be used to represent the key, but may not guarantee uniqueness.  KEYCOLS may be used to define the key.
    2012-11-09 00:48:34  ERROR   OGG-01168  Oracle GoldenGate Delivery for Oracle, rep1.prm:  Encountered an update for target table abc.INDIA, which has no unique key defined.  KEYCOLS can be used to define a key.  Use ALLOWNOOPUPDATES to process the update without applying it to the target database.  Use APPLYNOOPUPDATES to force the update to be applied using all columns in both the SET and WHERE clause.
    2012-11-09 00:48:34  ERROR   OGG-01668  Oracle GoldenGate Delivery for Oracle, rep1.prm:  PROCESS ABENDING.any clues plz ??
    Regards,
    Edited by: user13403707 on 19 Nov, 2012 10:55 PM

    If you know of any columns that can be used to identify the records you want to replicat changes to at the target table, use them as KEYCOLS.
    Then add supplemental logging using those columns as
    ADD TRANDATA owner.table_name, COLS (col1, col2).
    If you can't think of any such columns, just do
    ADD TRANDATA owner.table_name;
    It will add supplemental logging with the below warning
    2012-11-19 09:59:13 WARNING OGG-00869 No unique key is defined for table table_name. All viable columns will be used to represent the key, but may not guarantee uniqueness. KEYCOLS may be used to define the key.
    Logging of supplemental redo data enabled for table owner.table_name.

  • 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.

  • Error In Installing Oracle Text

    Hi All.
    I tried to install Oracle TEXT from sys using catctx.sql file
    SQL> @$ORACLE_HOME/ctx/admin/catctx.sql CTXSYS SYSAUX TEMP NOLOCK
    SQL> connect CTXSYS/password
    SQL> @$ORACLE_HOME/ctx/admin/defaults/drdefus.sql but I've got error like
    select object_name, object_type, status from dba_objects where owner='CTXSYS' and status != 'VALID' order by object_name;and output is
    OBJECT_NAME     OBJECT_TYPE     STATUS
    DRVODM     PACKAGE BODY     INVALIDand output of following query is
    select comp_name, status, substr(version,1,10) as version from dba_registry where comp_id = 'CONTEXT';
    COMP_NAME     STATUS     VERSION
    Oracle Text     INVALID     10.1.0.4.0I've spooled output of installation.
    Let me know what I'm missing in this installation?
    Thanks for help.
    Regards,
    dave.

    Thanks Barbara for trying to help me.
    It shows many errors that synonym already exists, may be because I tried to reinstall.
    Along with that it has following things
    drop type dr$session_state_t force
    ERROR at line 1:
    ORA-04043: object DR$SESSION_STATE_T does not exist and
    drop type dr$itab_t force
    ERROR at line 1:
    ORA-04043: object DR$ITAB_T does not exist And below might be useful as it's in invalid state
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY DRVODM:
    LINE/COL ERROR                                                                 
    7/4      PL/SQL: SQL Statement ignored                                         
    8/29     PL/SQL: ORA-00904: "CTXSYS"."DRVODM"."GET_FEATURES": invalid          
             identifier                                                            
    25/4     PL/SQL: SQL Statement ignored                                         
    27/33    PL/SQL: ORA-00904: "CTXSYS"."DRVODM"."FEATURE_PREP_NC": invalid       
             identifier                                                             and lots of like this
    drop public synonym contains
    ERROR at line 1:
    ORA-01432: public synonym to be dropped does not exist
    drop public synonym score
    ERROR at line 1:
    ORA-01432: public synonym to be dropped does not exist
    drop public synonym catsearch
    ERROR at line 1:
    ORA-01432: public synonym to be dropped does not exist
    drop public synonym matches
    ERROR at line 1:
    ORA-01432: public synonym to be dropped does not exist I googled for solutuion and found you are kind of master on oracle text. I found your replies on http://www.orafaq.com/forum/t/166966/0/.
    Thanks Barbara.
    Regards.
    Dave

  • 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 = CONNECT failed with SQL error '12154' after Oracle Upgrade

    Hello Experts,
    Recently I upgraded my oracle database from 11.2.0.3 to 11.2.0.4.The upgrade completed successfully but I am unable to start the instance.
    R3trans -d failing with the error--
    OCIServerAttach(OCI_DEFAULT) failed with -1=OCI_ERROR
    OCIServerAttach(OCI_DEFAULT) failed with SQL error 12154:    
    ORA-12154: TNS:could not resolve the connect identifier specified
    OCIServerAttach(con=0, svc=069C1630): Error 12154 attaching new srv=069C17D0
    OCIHandleFree(con=0): Server handle srv=069C17D0 freed.          
    server_detach(con=0, svc=069C1630; srv=NULL, stale=2)            
    OCIHandleFree(con=0): Service svc=069C1630 freed (i=1).          
    *** ERROR => CONNECT failed with SQL error '12154'              
    -->oci_get_errmsg (con=0, rc=12154)                              
      OCIErrorGet() -> SQL error code: 12154; buflen=66            
    OCIErrorGet(): error text ->                                    
    ORA-12154: TNS:could not resolve the connect identifier specified
    ocica() -> SQL error code 12154,12154                          
      DbSlConnect(con=0) -> orc=12154, rc=99=DBSL_ERR_DB            
    ***LOG BY2=>sql error 12154  performing CON                      
    ***LOG BY0=>ORA-12154: TNS:could not resolve the connect identifier specified
    I have checked listener is up and running properly.Entry is maintained in tnsnames.ora.
    Also kernel is upgraded with latest path.Curent kernel version--742
    Please suggest on the mentioned error.I am attaching the logs here.Thanks in advance.
    Best Regards,
    Debaditya

    Hi Debadiya
    Kindly check this SAP Notes
    1204916 - Error: "ORA-12154" when connecting to Oracle from a Windows 64-bit platform
    2153975 - Database connectivity fails with ORA-12154
    556232 - Environment settings for R/3/Oracle on Windows
    443867 - ORA-12154 Collective SAP note
    BR
    SS

  • Error Text = PL/SQL: ORA-00926

    Can some one tell me what the problem is with this, fairly urgent
    ERROR:Line # = 120 Column # = 28 Error Text = PL/SQL: ORA-00926: missing VALUES keyword
    Line # = 120 Column # = 2 Error Text = PL/SQL: SQL [b]Statement ignored
    Oracle Migration Workbench
    CREATE OR REPLACE FUNCTION "SA"."SPCXDB_DELIVERPRJ" (
    CurrUser_ID IN NUMBER DEFAULT NULL,
    Object_ID IN NUMBER DEFAULT NULL,
    Path_ID IN NUMBER DEFAULT NULL,
    IsLastPhase IN NUMBER DEFAULT NULL,
    NewPhase_ID IN NUMBER DEFAULT NULL,
    User_ID IN NUMBER DEFAULT NULL,
    Comment_ IN VARCHAR2 DEFAULT NULL,RC1_CALL IN OUT Omwb_emulation.globalPkg.RCT1 )
    RETURN INTEGER
    AS
    CurrUser_ID_ NUMBER(10,0) := CurrUser_ID;
    Object_ID_ NUMBER(10,0) := Object_ID;
    Path_ID_ NUMBER(10,0) := Path_ID;
    IsLastPhase_ NUMBER(3,0) := IsLastPhase;
    NewPhase_ID_ NUMBER(10,0) := NewPhase_ID;
    User_ID_ NUMBER(10,0) := User_ID;
    Comment__ VARCHAR2(255) := Comment_;
    StoO_selcnt INTEGER;
    StoO_error INTEGER;
    StoO_rowcnt INTEGER;
    StoO_crowcnt INTEGER := 0;
    StoO_fetchstatus INTEGER := 0;
    StoO_errmsg VARCHAR2(255);
    StoO_sqlstatus INTEGER;
    tempVar1 NUMBER :=3;
    tempVar2 NUMBER :=1;
    id NUMBER(10,0);
    CURSOR ptr IS
    SELECT Object_ID
    FROM TT_DVROBJECTS;
    dummy_var1 INTEGER;
    /****** Object: Stored Procedure dbo.spCXDB_deliverprj Script Date: 2003-11-12 14:21:41 ******/
    -- currently logged user id
    BEGIN
    NULL;
    /*[SPCONV-ERR(12)]:(set XACT_ABORT) Manual conversion required*/
    1) update project
    IF SPCXDB_DELIVERPRJ.IsLastPhase_ = 0 THEN
    BEGIN
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    UPDATE sa.CXDBObjects
    SET DvrPath_ID = SPCXDB_DELIVERPRJ.Path_ID_,
    DvrPhase_ID = SPCXDB_DELIVERPRJ.NewPhase_ID_,
    DvrUser_ID = SPCXDB_DELIVERPRJ.User_ID_
    WHERE Object_ID = SPCXDB_DELIVERPRJ.Object_ID_;
    StoO_rowcnt := SQL%ROWCOUNT;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    -- Status = 4
    END;
    ELSE
    BEGIN
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    UPDATE sa.CXDBObjects
    SET DvrPath_ID = 0,
    DvrPhase_ID = 0,
    DvrUser_ID = 0
    WHERE Object_ID = SPCXDB_DELIVERPRJ.Object_ID_;
    StoO_rowcnt := SQL%ROWCOUNT;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    -- Status = 0
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    UPDATE sa.CXDBDeliverPaths
    SET RefCount = RefCount - 1
    WHERE Path_ID = SPCXDB_DELIVERPRJ.Path_ID_;
    StoO_rowcnt := SQL%ROWCOUNT;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    2) get all subobjects , subprojects and documents
    END;
    END IF;
    /* Emulating @@TRANCOUNT functionality in Oracle model */
    omwb_emulation.globalPkg.trancount:=omwb_emulation.globalPkg.trancount+1;
    /*[SPCONV-ERR(55)]:CREATE TABLE TT_DVROBJECTS_2-- TT_DVROBJECTS Will be used -- statement passed to ddl file*/
    DELETE FROM TT_DVROBJECTS;
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    INSERT INTO TT_DVROBJECTS ; /*ERROR:Line # = 120 Column # = 28 Error Text = PL/SQL: ORA-00926: missing VALUES keyword
    Line # = 120 Column # = 2 Error Text = PL/SQL: SQL Statement ignored
    SQL SERVER 2000
    BEGIN TRAN
    CREATE TABLE #DvrObjects ( Object_ID int NOT NULL )
    NSERT
    #DvrObjects
    EXEC
    spCXDB_expandtree @Object_ID,3,1 */
    StoO_rowcnt := SQL%ROWCOUNT;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    BEGIN
    /* demoDMS*/sa.spCXDB_expandtree(SPCXDB_DELIVERPRJ.Object_ID_,
    tempVar1,
    tempVar2,
    RC1 => RC1_CALL);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    3) put documents and projects onto deliver path
    NULL;/*DECLARE CURSOR ptr */
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    StoO_crowcnt := 0;
    OPEN ptr;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    StoO_crowcnt := 0;
    FETCH ptr INTO
    SPCXDB_DELIVERPRJ.id;
    EXCEPTION
    WHEN OTHERS THEN
    StoO_rowcnt := 0;
    StoO_selcnt := 0;
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    IF ptr%NOTFOUND THEN
    StoO_sqlstatus := 2;
    StoO_fetchstatus := -1;
    ELSE
    StoO_sqlstatus := 0;
    StoO_fetchstatus := 0;
    END IF;
    <<i_loop1>>
    WHILE ( StoO_fetchstatus = 0) LOOP
    BEGIN
    -- IF (SELECT Status FROM CXDBObjects WHERE Object_ID = @id) = 4 AND
    BEGIN
    StoO_selcnt := 0;
    StoO_error := 0;
    StoO_rowcnt := 0;
    SELECT 1 INTO StoO_selcnt
    FROM DUAL
    WHERE 0 <> (
    SELECT DvrPhase_ID
    FROM CXDBObjects
    WHERE Object_ID = SPCXDB_DELIVERPRJ.id ) AND SPCXDB_DELIVERPRJ.Path_ID_
    = (
    SELECT DvrPath_ID
    FROM CXDBObjects
    WHERE Object_ID = SPCXDB_DELIVERPRJ.id );
    StoO_rowcnt := SQL%ROWCOUNT;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    StoO_rowcnt := 0;
    StoO_selcnt := 0;
    WHEN OTHERS THEN
    StoO_rowcnt := 0;
    StoO_selcnt := 0;
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    IF StoO_selcnt != 0 THEN
    BEGIN
    BEGIN
    BEGIN
    StoO_selcnt := 0;
    StoO_error := 0;
    StoO_rowcnt := 0;
    SELECT 1 INTO StoO_selcnt
    FROM DUAL
    WHERE 0 = (
    SELECT type_
    FROM CXDBObjects
    WHERE Object_ID = SPCXDB_DELIVERPRJ.id );
    StoO_rowcnt := SQL%ROWCOUNT;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    StoO_rowcnt := 0;
    StoO_selcnt := 0;
    WHEN OTHERS THEN
    StoO_rowcnt := 0;
    StoO_selcnt := 0;
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    IF StoO_selcnt != 0 THEN
    BEGIN
    -- update project data
    IF SPCXDB_DELIVERPRJ.IsLastPhase_ = 0 THEN
    BEGIN
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    UPDATE sa.CXDBObjects
    SET DvrPath_ID = SPCXDB_DELIVERPRJ.Path_ID_,
    DvrPhase_ID = SPCXDB_DELIVERPRJ.NewPhase_ID_,
    DvrUser_ID = SPCXDB_DELIVERPRJ.User_ID_
    WHERE Object_ID = SPCXDB_DELIVERPRJ.id;
    StoO_rowcnt := SQL%ROWCOUNT;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    -- Status = 4
    END;
    ELSE
    BEGIN
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    UPDATE sa.CXDBObjects
    SET DvrPath_ID = 0,
    DvrPhase_ID = 0,
    DvrUser_ID = 0
    WHERE Object_ID = SPCXDB_DELIVERPRJ.id;
    StoO_rowcnt := SQL%ROWCOUNT;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    -- Status = 0
    --decrease path reference counter
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    UPDATE sa.CXDBDeliverPaths
    SET RefCount = RefCount - 1
    WHERE Path_ID = SPCXDB_DELIVERPRJ.Path_ID_;
    StoO_rowcnt := SQL%ROWCOUNT;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    END;
    END IF;
    END;
    ELSE
    BEGIN
    BEGIN
    dummy_var1 := /* demoDMS*/sa.spCXDB_deliverdocument(SPCXDB_DELIVERPRJ.CurrUser_ID_,
    SPCXDB_DELIVERPRJ.id,
    SPCXDB_DELIVERPRJ.Path_ID_,
    SPCXDB_DELIVERPRJ.IsLastPhase_,
    SPCXDB_DELIVERPRJ.NewPhase_ID_,
    SPCXDB_DELIVERPRJ.User_ID_,
    SPCXDB_DELIVERPRJ.Comment__);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    END;
    END IF;
    END;
    END;
    END IF;
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    StoO_crowcnt := 0;
    FETCH ptr INTO
    SPCXDB_DELIVERPRJ.id;
    EXCEPTION
    WHEN OTHERS THEN
    StoO_rowcnt := 0;
    StoO_selcnt := 0;
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    IF ptr%NOTFOUND THEN
    StoO_sqlstatus := 2;
    StoO_fetchstatus := -1;
    ELSE
    StoO_sqlstatus := 0;
    StoO_fetchstatus := 0;
    END IF;
    END;
    END LOOP;
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    CLOSE ptr;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    raise_application_error(SQLCODE, SQLERRM,true);
    END;
    NULL;
    /* Emulating @@TRANCOUNT functionality in Oracle model */
    IF omwb_emulation.globalPkg.trancount = 1 THEN
    COMMIT WORK;
    END IF;
    IF omwb_emulation.globalPkg.trancount > 0 THEN
    omwb_emulation.globalPkg.trancount:=omwb_emulation.globalPkg.trancount-1;
    END IF;
    RETURN (0);
    END SPCXDB_DELIVERPRJ;
    Thank's

    Hi Hilary,
    This is the original T-SQL code. Please, help me.
    CREATE PROCEDURE spCXDB_deliverPrj
    @CurrUser_ID     int,          -- currently logged user id
    @Object_ID     int,
    @Path_ID     int,
    @IsLastPhase     tinyint,
    @NewPhase_ID int,
    @User_ID     int,
    @Comment     varchar(255) = NULL
    AS
    SET XACT_ABORT ON
         1) update project
    IF @IsLastPhase = 0
    BEGIN
         UPDATE
              CXDBObjects
         SET
              DvrPath_ID = @Path_ID,
              DvrPhase_ID = @NewPhase_ID,
              DvrUser_ID = @User_ID
    --          Status = 4
         WHERE
              Object_ID = @Object_ID
    END
    ELSE
    BEGIN
         UPDATE
              CXDBObjects
         SET
              DvrPath_ID = 0,
              DvrPhase_ID = 0,
              DvrUser_ID = 0
    --          Status = 0
         WHERE
              Object_ID = @Object_ID
         UPDATE
              CXDBDeliverPaths
         SET
              RefCount = RefCount - 1
         WHERE
              Path_ID = @Path_ID
    END
         2) get all subobjects , subprojects and documents
    BEGIN TRAN
    CREATE TABLE #DvrObjects ( Object_ID int NOT NULL )
    INSERT
         #DvrObjects
    EXEC
         spCXDB_expandtree @Object_ID,3,1
         3) put documents and projects onto deliver path
    DECLARE @id int
    DECLARE ptr CURSOR FOR SELECT Object_ID FROM #dvrobjects
    OPEN ptr
    FETCH NEXT FROM ptr INTO @id
    WHILE(@@FETCH_STATUS = 0)
    BEGIN
    --     IF     (SELECT Status FROM CXDBObjects WHERE Object_ID = @id) = 4 AND
         IF     (SELECT DvrPhase_ID FROM CXDBObjects WHERE Object_ID = @id) <> 0 AND
              (SELECT DvrPath_ID FROM CXDBObjects WHERE Object_ID = @id) = @Path_ID
         BEGIN
              IF (SELECT type FROM CXDBObjects WHERE Object_ID = @id) = 0
              BEGIN
                   -- update project data
                   IF @IsLastPhase = 0
                   BEGIN
                        UPDATE
                             CXDBObjects
                        SET
                             DvrPath_ID = @Path_ID,
                             DvrPhase_ID = @NewPhase_ID,
                             DvrUser_ID = @User_ID
    --                         Status = 4
                        WHERE
                             Object_ID = @id
                   END
                   ELSE
                   BEGIN
                        UPDATE
                             CXDBObjects
                        SET
                             DvrPath_ID = 0,
                             DvrPhase_ID = 0,
                             DvrUser_ID = 0
    --                         Status = 0
                        WHERE
                             Object_ID = @id
                        --decrease path reference counter
                        UPDATE
                             CXDBDeliverPaths
                        SET
                             RefCount = RefCount - 1
                        WHERE
                             Path_ID = @Path_ID
                        END
              END
              ELSE
              BEGIN
                   EXEC spCXDB_deliverdocument @CurrUser_ID, @id,@Path_ID,@IsLastPhase,@NewPhase_ID,@User_ID, @Comment
              END
         END
         FETCH NEXT FROM ptr INTO @id
    END
    CLOSE ptr
    DEALLOCATE ptr
    COMMIT TRAN
    RETURN(0)
    Regards,
    Emilia.

  • 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>

  • 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

  • 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

  • Error when attempting to add Oracle Text using DBCA

    Hi all -
    I'm trying to add Oracle Text to my 10gR1 database using DBCA. The Oracle Text option is available, but when I attempt to add it I get the error message: "A tablespace for the database option Oracle Text is not found. Cannot install this option in the database." I have a SYSAUX tablespace, which I believe is the default tablespace for Text, so I'm not sure what the problem could be. I also tried manually adding Oracle Text by running catctx.sql but received the error message:
    ERROR at line1:
    ORA-39705: component 'CONTEXT' not found in registry
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_REGISTRY", line 757
    ORA-06512: at line 2
    Any ideas or suggestions would be greatly appreciated. Thanks!

    Hi,
    this looks like a half way install, I think you should try to deinstall Oracle Text and then reinstall, have a look at note 280713.1 on Oracle Support
    Herald ten Dam
    http://htendam.wordpress.com

Maybe you are looking for

  • Oracle spatial datasets

    Are there any sites from where i can get spatial data that can be downloaded to Oracle Spatial. I am doing project on spatial datawarehousing, so need some real data on climatic conditions for some span of time. I have searched a lot on google but ca

  • I can not install itunes on windows 7

    Itunes said I needed to upgrade to version 11.1. I tried to download and nothing. It will not let me install ( I have windows 7). Long story short I have deleted itunes then tried to re-install again. This did not work. Now, I don't have itunes at al

  • Can i send a message to a person without an apple id

    can i send a message to someone without an apple I.D??????

  • I am not able to use two backing files in same portal page

    hi to all i am using backing files in remote portlet. but i have two portlets in my portal page and in both i need to use backing files. i used seperate backing files for both the portlets but only one works at a time. please help me out frnds.. did

  • How to override equals method

    The equals method accepts Object as the parameter. When overriding this method we need to downcast the parameter object to the specific. The downcast is not the good idea as it is not the OO. So can anyone please tell me how can we override the equal