Problem in creating text index

While creating index on XMLType column
i am getting this error
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: Oracle Text error:
DRG-50857: oracle error in driddl.policycreate
ORA-01400: cannot insert NULL into ("CTXSYS"."DR$INDEX"."IDX_TEXT_NAME")
ORA-06512: at "CTXSYS.DRUE", line 157
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 186
Can anybody help me out to figure whats the problem
regards
- Shweta.

Hi Shweta,
Can you tell me the type of index you are creating? Give the query you are using to create the index.
We have written a sample called 'Survey Sample Application' in which we created CTXXPATH index on a XMLType column.
You can download the sample from
http://otn.oracle.com/sample_code/tech/xml/survey/content.html
Document on the index used is present at
http://otn.oracle.com/sample_code/tech/xml/survey/docs/AboutOracleXMLDB.html
I hope this helps you in solving the problem.
Regards,
Anupama Majety

Similar Messages

  • Problem in creating text file from report file

    Hello Everybody...
    I have problem in creating text file.
    I had set System Parameter as below
    DESTYPE : File
    MODE : Character
    DESNAME : gayu.txt
    And ruler setting
    Units : Character Cells
    Character Cell Size : Horiziontal = 7
    Vertiacle =12
    GridSpacing : 1
    no of snap points per grid spacing : 1
    but when i run report it will give error
    "REP_1219 M_2 or R_2 has no size -- length or width zero"
    so is there any solution of that
    or another way to convert report into text file?....

    Hi Folks,
    Please don't go after that Error as its a very deceptive one. Please don't go for altering your design Or changing the size of items in your layout.
    Similar errors I have come across in reports. I think its due to file transfer type. You might have transferred the file in Binary and your File Mode I am seeing it as CHAR.
    This normally happens while making the Report Format as "Text". Either you change that format which I think is possible in your case as your basic requirement is making a report output of CHAR type.
    Please check for this error in Metalink and proceed accordingly. I could fix similar errors when I changed Format type to PDF(from text).
    Regards
    Shibu

  • Problem with oracle text indexes during import

    We have a 9.2.0.6 database using oracle text features on a server with windows 2000 5.00.2195 SP4.
    We need to export its data ( user ARIANE only ) and then import the result into another 9.2.0.6 database.
    The import never comes to an end.
    The only way to make it work is to use the "indexes=n" clause.
    Then ( without the indexes ), we tried to create manually the oracle text indexes.
    We get this error :
    CREATE INDEX ARIANE.DOSTEXTE_DTTEXTE_CTXIDX ON ARIANE.DOSTEXTE (DTTEXTE)
    INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS('lexer ariane_lexer stoplist ctxsys.default_stoplist storage ariane_storage');
    ORA-29855: erreur d'exécution de la routine ODCIINDEXCREATE
    ORA-20000: Erreur Oracle Text :
    DRG-10700: préférence inexistante : ariane_lexer
    ORA-06512: à "CTXSYS.DRUE", ligne 157
    ORA-06512: à "CTXSYS.TEXTINDEXMETHODS", ligne 219
    We then tried to uninstall Oracle text and install it ( My Oracle Support [ID 275689.1] ). The index creation above still fails.
    We also checked our Text installation and setup through My Oracle Support FAQ ( ID 153264.1 ) and everything seems ok.
    Do we have to create some ARIANE* lexer preferences through specific pl/sql ( ctx_report* ? ) before importing anything from the ARIANE user ?
    What do we need to do exactly when exporting data with oracle text features from one database to another given we used to restore the database through a copy of the entire windows files ?
    Is there a specific order to follow to succeed an import ?
    Thank you for your help.
    Jean-michel, Nemours, FRANCE

    Hi
    index preferences are not exported, ie ariane_lexer + ariane_storage, only the Text index metada, thus the DRG-10700 from index DDL on target/import DB.
    I recommend to use ctx_report.create_index_script on source/export DB, see Doc ID 189819.1 for details, export with indexes=N and then create text indexes manually after data import.
    -Edwin

  • End-of-file on communicaton channel when creating text index on xmltype tab

    Hi,
    I'm trying to create an oracle text index on a table of xmltype. This table is using an xml schema and the table is using object relational storage.
    I have another table that is a relational table that has an xml type column, and I was able to create the text index on that xmltype column without any problems.
    Here's the create index statement and the error:
    1 create index table_one_text_index
    2 on table_one(object_value)
    3 indextype is ctxsys.context
    4 parameters
    5* ('section group ctxsys.path_section_group')
    6 /
    create index table_one_text_index
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 27137
    Session ID: 65 Serial number: 24961
    Any ideas? I've looked through the oracle text and the oracle xml db documentation and the forums and haven't found any ideas about what's causing the problem or how to fix it.
    Thank you

    Is the data in the XMLType columns the same in both cases.. Can you provide a testcase ? Which DB release are you working with

  • End-of-file on communicaton channel when creating text index on xmltype ta

    Hi,
    I'm trying to create an oracle text index on a table of xmltype. This table is using an xml schema and the table is using object relational storage.
    I have another table that is a relational table that has an xml type column, and I was able to create the text index on that xmltype column without any problems.
    Here's the create index statement and the error:
    1 create index table_one_text_index
    2 on table_one(object_value)
    3 indextype is ctxsys.context
    4 parameters
    5* ('section group ctxsys.path_section_group')
    6 /
    create index table_one_text_index
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 27137
    Session ID: 65 Serial number: 24961
    Any ideas? I've looked through the oracle text and the oracle xml db documentation and the forums and haven't found any ideas about what's causing the problem or how to fix it.
    Thank you

    A 3113 error indicates the Oracle background process has crashed. This almost always indicates a bug. Suggest you take a look at your database alert log file, and report this to Oracle Support.

  • Numeric character problems when creating spatial index

    Hi,
    We have run into a problem when trying to create spatial indexes. The problem seems to be that an mdsys-procedure tries to use a number with a comma as decimal symbol in an update statement
    Error message:
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Stmt-Execute Failure: begin mdsys.prvt_idx.execute_update(NULL,NULL,'set sdo_rtree_quality = 1,00000000 where UPPER(sdo_index_owner) = UPPER(''BK'') AND UPPER(sdo_index_name)=UPPER(''TEST_RTREE_IDX'') AND UPPER(sdo_index_table)=UPPER(''MDRT_8120$'')',NULL); end;
    ORA-29400: data cartridge error
    ORA-01747: invalid user.table.column, table.column, or column specification
    ORA-06512: at "MDSYS.PRVT_IDX", line 17
    ORA-06512: at line 1
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 7
    ORA-06512: at line 1
    Our problem seems to be identical to the one discussed in this thread: create RTREE falied on 9.2.0.4
    Regional settings, language versions etc:
    Client:
    OS: Windows 2000
    Regional options (OS): Swedish, Sweden
    Sqlplus (console and windows versions): v 9.2.0.1.0
    Registry: NLS_LANG =SWEDISH_SWEDEN.WE8MSWIN1252
    Server:
    OS: Windows Server 2003
    Regional options (OS): Swedish, Sweden
    Oracle: v 9.2.0.3.0
    Registry: NLS_LANG =SWEDISH_SWEDEN.WE8MSWIN1252
    We have also tried building the indexes after overriding these settings by setting the environment variables NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1 on both the client- and the server computer. This gives exactly the same error. We have tried setting NLS_NUMERIC_CHARACTERS to '.,' instead of ',.', but this does not help either.
    We haven't tried changing the NLS_LANG registry entry on the server, because this is a production server at a customer's site that hosts several other databases, so we would prefer not to have to restart it if we can avoid it. However, as we understand it, the environment variable NLS_LANG should override the registry setting anyway, right?
    We first experienced the problem when trying to build indexes on imported data. To verify that the problem was not with the data, we wrote a simple test script that:
    1)Creates a table
    2)Creates metadata
    3)Inserts a simple geometry
    4)Tries to create an index
    The error message above is from running this script. We have verified that the script
    works ok on another database server.
    Below are the values of some of the language parameters right before running the script
    (we have tried many other settings with the same result).
    parameter...........................db................................instance...............session
    NLS_CHARACTERSET.......WE8MSWIN1252..................................................
    NLS_LANGUAGE...............AMERICAN...................AMERICAN...........AMERICAN
    NLS_NCHAR_CH...............AL16UTF16 ..........................................................
    NLS_NCHAR_CONV... ......FALSE..........................FALSE..................FALSE..
    NLS_NUMERIC_CH...---------.,---------------------------------------------------------------.,
    NLS_TERRITORY..............AMERICA......................AMERICA..............AMERICA
    The guy who started the thread referenced above solved the problem, but we haven't been able to get it working by changing registry entries and session parameters.
    The question is: Which setting will make the number in 'set sdo_rtree_quality = 1,00000000...' be generated with a . instead of a , as decimal symbol?

    Ok, so here is my plan to solve this:
    1) Change the default user locale (the language under "standards and formats") to English for the account under which the Oracle server runs.
    2) Reboot (or is there an easier way to make Oracle reload the settings?)
    This should make the index creation work. It may break something else however, so to avoid this I can set the user locale back to Swedish afterwards .
    You can subsequently change the setting and update the sdo_rtree_quality in
    the metadata and it should work fine. Do you mean I have to update the sdo_rtree_quality in some way to make it work after I have changed the default user locale back to Swedish? How do I do this?
    Thanks a million both of you!

  • Problem on creating spatial index

    Hi,
    I am newbie in Oracle Spatial and looking for help on creating spatial index
    I am working on OpenStreetMap data. I intended to import the OSM data from PostGis to Oracle Spatial. This code is executed to import the data
    ogr2ogr -f OCI OCI:osm/password@pdborcl PG:"host=localhost user=postgres password=password dbname=gis port=5432" -lco OVERWRITE=yes -lco SRID=8307 -nln planet_osm_polygon planet_osm_polygon
    However, I got this error when importing the data.
    ERROR 1: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in spatial index: [mdrcrtxfergm]
    ORA-13249: Error in spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AAAW/iAAQAAAIfsAAP] in spatial indexing.
    ORA-13206: internal error [] while creating the spatial index
    ORA-13033: Invalid data in the SDO_ELEM_INFO_ARRAY in SDO_GEOMETRY object
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
    in CREATE INDEX "OSI_12283" ON PLANET_OSM_POLYGON("ORA_GEOMETRY") INDEXTYPE IS
    MDSYS.SPATIAL_INDEX
    This creating index failure only happen when I tried to import planet_osm_polygon table. I did not get this error when I imported the planet_osm_point, planet_osm_roads and planet_osm_line and indexing worked fine. The geometry type of column which was failed to index is ST MultiPolygon ( I am not sure if this is the cause).
    Apparently, the data is imported to database. I tried to create index on that table, and it returns the same error.
    CREATE INDEX PLANET_OSM_POLYGONI ON PLANET_OSM_POLYGON(ORA_GEOMETRY)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    Please help!

    Hi Ivan Bush
    Thank you for the reply.
    Sorry for the lengthy reply. To be honest, I dont understand how to read query result. This is the query that I executed:
    select * from (select sdo_geom.validate_geometry_with_context(p.ora_geometry, 0.05) from planet_osm_polygon p) where rownum <100;
    And the snippet of the query result:
    Could you help me to explain the meaning of the query result? I chose 0.05 as tolerance value based on this reference (http://docs.oracle.com/cd/B19306_01/appdev.102/b14255/sdo_intro.htm#i884589) .
    Anyway, this information might be useful in solving the problem. When I imported the OSM data to PostGis, the SRID of geometry data was 900913. Since I want the data in WGS84 coordinate system, I change the SRID of the geometry data to 4326. I could perform this below-mentioned PostgreSQL query to change its SRID for geometry column in table planet_osm_point, planet_osm_roads and planet_osm_line. However, this query did not work on planet_osm_polygon one since this query does not recognize multipolygon datatype.
    ALTER TABLE planet_osm_point
        ALTER COLUMN way TYPE geometry(point,4326) USING ST_Transform(way,4326);
    So for planet_osm_polygon case, I check this post (QGIS, Postgis: Geometry type does not match column type - Geographic Information Systems Stack Exchange) and follow @dbaston's answer to change the geometry data type to generic'geometry'. Then change the SRID, and return the geometry data type to MultiPolygon.
    ALTER TABLE planet_osm_polygon ALTER  COLUMN way SET data type geometry(MultiPolygon) USING ST_Multi(way);
    Let me know if this might be the cause of the indexing problem.

  • Problem in creating Spatial index

    Hi,
    I am trying to create Spatial index on my function. Unsuccessfully.
    I created function:
    create or replace
    FUNCTION VRAT_GEOMETRII(obj_id NUMBER)
    RETURN MDSYS.SDO_GEOMETRY
    DETERMINISTIC
    as
    test1 MDSYS.SDO_GEOMETRY;
    prikaz VARCHAR2(32767);
    BEGIN
    prikaz:='SELECT SDO_PC_PKG.TO_GEOMETRY(
    points,
    num_points,
    3) from pc_blktab2 WHERE obj_id ='||obj_id;
    EXECUTE IMMEDIATE prikaz INTO test1 ;
    RETURN test1;
    END;
    Updated metadata:
    INSERT INTO user_sdo_geom_metadata(
    TABLE_NAME,
    COLUMN_NAME,
    DIMINFO,
    SRID)
    VALUES (
    'PC_BLKTAB2',
    'st_mkara.VRAT_GEOMETRII(obj_id)',
    SDO_DIM_ARRAY(
    SDO_DIM_ELEMENT('X',930000000,1200000000,10),
    SDO_DIM_ELEMENT('Y',420000000,930000000,10),
    SDO_DIM_ELEMENT('Z',0,1600000,10)
    NULL -- SRID
    and I want to create spatial index:
    CREATE INDEX test_blok3_idx
    ON PC_BLKTAB2(VRAT_GEOMETRII(obj_id))
    INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    but have these errors:
    Error report:
    SQL Error: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in spatial index: [mdrcrtxfergm]
    ORA-13249: Error in spatial index: [mdpridxtxfergm]
    ORA-29400: data cartridge error
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "ST_MKARA.VRAT_GEOMETRII", line 12
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
    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.
    Thanks for help
    Kirin

    This looks like a problem in your function.
    Make sure you can execute that function successfully for each obj_id.
    Looks like for certain obj_id, the SQL inside your function is failing (returns more than one row).
    siva

  • Error creating text index

    Hi,
    i'm using ORACLE 8.1.5 Standard edition
    and i've tried to execute the following
    statements, but an error occured at the
    create index statement.
    Anyone knows why?
    SQL> create table docs (id number primary key, text varchar2(80));
    Tabelle wurde angelegt.
    SQL> insert into docs values ( 1, 'first document');
    1 Zeile wurde erstellt.
    SQL> insert into docs values ( 2, 'second document');
    1 Zeile wurde erstellt.
    SQL> commit;
    Transaktion mit COMMIT abgeschlossen.
    SQL> create index doc_index on docs(text) indextype is ctxsys.context;
    create index doc_index on docs(text) indextype is ctxsys.context
    FEHLER in Zeile 1:
    ORA-29855: Fehler bei Ausf|hrung der Routine ODCIINDEXCREATE
    ORA-20000: ConText error:
    DRG-11422: Initialisierung der linguistischen Dienste schlug fehl
    DRG-00100: Interner Fehler; Argumente: [52100],[drxf.c],[707],[gxtopen],[0]
    ORA-06512: in "CTXSYS.DRUE", Zeile 122
    ORA-06512: in "CTXSYS.TEXTINDEXMETHODS", Zeile 34
    ORA-06512: in Zeile 1

    I fixed the same proble today.
    Set your client NLS_LANG to the same value as on your database. your database might run with "NLS_LANG=american_america.we8iso8859p1".
    If you want to use german stopwords etc. lokk at the script "drdefd.sql". Replace all "DEFAULT_" settings with your keyword (e.g. "GERMAN_"). Run the script. Now you can create a index with german parameters:
    create index a on b(c)
    indextype is ctxsys.context
    parameters ('lexer ctxsys.german_lexer stoplist ctxsys.german_stoplist wordlist ctxsys.german_wordlist')
    null

  • Cannot create text index in partition table on Oracle 10g

    I try to create context index in a table with 15 millions records. The table is divided 5 partitions and each patition has 3 millions records. When I create the context index in the table, the same error always arised. The follow are my work:
    --First create my own lexer
    begin
    ctx_ddl.createperference('my_chinese_lexer','chinese_lexer');
    end;
    --Second create index
    create index idx_part_text3 on tb_test_part(text3)
    indextype is ctxsys.context local (
    partition p1_ix,
    partition p2_ix,
    partition p3_ix ,
    partition p4_ix,
    partition p5_ix)
    parameters('lexer my_chinese_lexer') parallel;
    --error message
    create index idx_part_text3 on tb_test_part(text3)
    Error in 1 line:
    ORA-12801: Parellel Query Server P000 send error signal
    ORA-29855: Error on execute ODCIINDEXCREATE program
    ORA-06510: PL/SQL: User Defined Error
    ORA-06512: In "CTXSYS.DRIDISP", line 244
    ORA-04030: Try to alloc 65548 Bytes (CTX PRM heap,draccbx:message buffer) Out of memory
    ORA-06512: In "CTXSYS.DRIPARX", line 10
    ORA-06512: In "CTXSYS.TEXTINDEXMETHODS", line 359
    ORA-04030: Try to alloc 65548 Bytes (CTX PRM heap,draccbx:message buffer) Out of memory
    ORA-06512: In "CTXSYS.DRUE", line 191
    ORA-06512: In "CTXSYS.DRUE", line 49
    ORA-06512: In "CTXSYS.DRUE", line 24
    ORA-06512: In "CTXSYS.DRUE", line 186
    ORA-06512: In "CTXSYS.DRVDDL", line 682
    ORA-04030: Try to alloc 65548 Bytes (CTX PRM heap,draccbx:message buffer) Out of memory
    ORA-04030: Try to alloc 65548 Bytes (CTX PRM heap,draccbx:message buffer) Out of memory
    ORA-06512: In "CTXSYS.DRUE", line 191
    ORA-06512: In "CTXSYS.DRUE", line 49
    ORA-06512: In "CTXSYS.DRUE", line 24
    ORA-06512: In "CTXSYS.DRVDDL", line 452
    ORA-06510: PL/SQL: User Defined Error
    BTW:
    My oracle 10g run on linux AS3 box with 4xP4 and 6G Mem.
    I set pga_aggregate_target=2200M, and at the beginning of creating index, the max pga alloced is about 1100M, but when one patition finished, the error arised and the max pga alloced suddenly reached 3500M. So in every times, the index status is always like below:
    P1_ix usable
    P2_ix Inprogress
    P3_ix Inprogress
    P4_ix Inprogress
    P5_ix Inprogress
    Thx for any help!

    Try to increase LARGE_POOL_SIZE.
    PGA_AGGREGATE_TARGET is not only parameter that can meddle in parallel execution.
    Looks like parallel execution parameters is not correctly set. Check it all, including PARALLEL_EXECUTION_MESSAGE_SIZE.

  • Problem in creating a index

    hello friends,
    I have a snapshot xyz and a table is created using the snapshot and named xyz.
    Now i have to create a index on table.
    here i am confused as the name of the table and snapshote are the same.
    please let me out of this situation.
    Note: I cannot change either the snapshot or the table name

    we have a table pa_ce1 which is derived from a snapshot ce1.
    the script goes like this
    1 create index schema.index_name on
    2 schema.snap$_pa_ce1saus (col's)
    3 storage (initial 50m next 16m maxextents 500)
    I did not get snap$_pa... in line 2.

  • Problem in creating an index

    hi every1,
    i am creating index first time, on a table consisting of 3,000,000 rows ( 3 million ) but it cant be created my query and error is as below
    SQL> ;
    1* create unique index idx_spda on day.spda(mcode,mdetail,sdate)
    SQL> /
    create unique index idx_spda on day.spda(mcode,mdetail,sdate)
    ERROR at line 1:
    ORA-01157: cannot identify/lock data file 201 - see DBWR trace file
    ORA-01110: data file 201: 'E:\ORACLE\ORADATA\LAQ1\TEMP01.DBF'
    it cant even create on a single column
    can any1 help me
    Regards
    M. Laeeque A.

    Hello,
    Once temp created and set it as default run your query again
    CREATE TEMPORARY TABLESPACE TEMP02 TEMPFILE '\mypath\TEMP02.dfb' SIZE 512M AUTOEXTEND ON NEXT 256M MAXSIZE 8192M EXTENT MANAGEMENT LOCAL;
    ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMP02Regards

  • Problem while creating text search index

    Hi,
    When I am tring to create a text search index I am getting the following:
    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 364
    ORA-06512: at "myschema.RECREATE_SEARCHINDEX", line 31
    ORA-06512: at line 2
    any idea what is causing the problem?
    saby

    Hi,
    I think Probably what has failed is some inner kind of operation that didn't handle the exception correctly, that is dropping the offending object automatically and it issue is raised (error). Therefore you'll have to manually drop the index and re-create the desired index (that might solve your problem)
    - Pavan Kumar N

  • Problem while creating text pop-ups in image maps

    Hi,
    I need to create a text pop-up on an image, on mouse hover. I tried creating bookmarks to link with the image map and it worked. The problem is when I click on the text pop-up in the image, it goes to the bookmark (which is created in a separate topic), but I don't want it to go to the bookmark which is in a different topic. Is it possible to stay on the image itself without going to the bookmark?
    Regards,
    Latha

    Hello again
    The option I mentioned would indeed work inside a CHM.
    There is possibly a way to accomplish what you are wanting, but to do it would require lots of JavaScripting. The simple fact you are asking if it can be done suggests that you aren't comfortable working with JavaScript.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Bullet problem when creating text frames and tables in InDesign CS5

    Every time I create a new text frame or table in InDesign CS5 and paste information there, the first row in the table or several lines of text come out with bullet points. I'm sure this is a setting or style at some point I created and now am unsure of how to delete. I would like the new text frames and tables to not include bullet points as a default when imported or pasted. Any thoughts? Thanks!

    Defaults for text in the current document are made with no text selected. Turn off bullets and they should stay off (but check the styles, too, you might have accidentally set a bulleted style as the defualt and you should change the default style instead). If this is happening in all files, you need to do it with nothing open to reset the default for all new documents (existing files, unfortunately, need to be fixed one at a time).

Maybe you are looking for