"Failed to open cursor" while creating CTXCAT index. Bug?

Hi,
I'm trying to create a catalog index on a rather large table. And I am consistently getting the following error. When the table was half the size, the same CREATE INDEX statement worked just fine. However, when the table grows to a certain size, that statement no longer works.
I searched the whole forum and I did not find anything about this error. Am I the first to encounter it? Can this be a bug?
Any advice is greatly appreciated.
Yongtao
SQL>create index myindex on mytable(mycolumn) indextype is ctxsys.ctxcat parameters ('index set myindexset section group mysectiongroup stoplist mystoplist storage mystorage lexer mylexer');
create index myindex on mytable(mycolumn) indextype is ctxsys.ctxcat parameters ('index set myindexset section group mysectiongroup stoplist mystoplist storage mystorage lexer mylexer')
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: Oracle Text error:
DRG-50800: failed to open cursor
DRG-50857: oracle error in drsxsopen
ORA-00942: table or view does not exist
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.CATINDEXMETHODS", line 97
Elapsed: 09:07:26.25
SQL>

Looks like a bug to me. Did it error out immediately, or only after processing for some time?
Do you get the same problem without the storage clause?

Similar Messages

  • Error while creating an Index in SP14..Please help..  :(

    Hello All,
    Im working on SP14.
    Got an error as below while creating an Index:
    " <b>Index could not be created; creating index failed: general configuration error (Errorcode 2030)"</b>
    Whats wrong..?
    Please help.
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu R Hunjan

    Hi Ritu & Subrato,
    I'm affraid Errorcode 2030 is related to TREX user administrative rights in the OS.
    Please take a look at this thread and the suggestions give there to fix your problem:
    Index creation failure and other problems
    Hope this helps,
    Robert

  • Specifying nologging while creating spatial indexes

    Hello
    Is it possible to specify NOLOGGING parameter while creating spatial indexes? When i am trying to specify this i get the following error message
    SQL> create index BUSH_sx on BUSH(BUSHLOCATION) indextype is mdsys.spatial_index nologging;
    create index BUSH_sx on BUSH(BUSHLOCATION) indextype is mdsys.spatial_index nologging
    ERROR at line 1:
    ORA-29850: invalid option for creation of domain indexes
    Even i cannot alter the index with NOLOGGING option. Does Oracle allow this option in spatial indexes?
    Regards
    sam

    I am looking into the logging issues.
    SDO_COMMIT_INTERVAL determines the number records in a commit chunk during index BUILD, I noted this was not documented raised doc BUG 6414510 for this
    and SDO_DML_BATCH_SIZE manual entries....
    Specifies the number of index updates to be processed in each batch of updates after a commit operation. The default value is 1000. For example, if you insert 3500 rows into the spatial table and then perform a commit operation, the updates to the spatial index table are performed in four batches of insert operations (1000, 1000, 1000, and 500).
    The sdo_dml_batch_size parameter can improve application performance, because Spatial can preallocate system resources to perform multiple index updates more efficiently than successive single index updates; however, to gain the performance benefit, you must not perform commit operations after each insert operation or at intervals less than or equal to the sdo_dml_batch_size value. You should not specify a value greater than 10000 (ten thousand), because the cost of the additional memory and other resources required will probably outweigh any marginal performance increase resulting from such a value.
    ====================================
    I have found if you are doing repeated inserts/updates etc of 100,000 plus records despite the above, there is an advantage or appears to be! ;-) for setting it to 50,000.
    it can be adjusted for an index that has been built
    update SDO_INDEX_METADATA_TABLE
    set SDO_DML_BATCH_SIZE = <Desired Value>
    where sdo_index_owner = <INDEX/SCHEMA Owner>
    and sdo_index_name = 'INDEX_NAME';
    Clearly every system will be different experiment on test systems only....
    Another area which can generally impact DML is undo_retention holding blocks when
    you just don't care.
    good settings when you dont wish to hold it
    Look at SQL> show parameter undo
    undo_management string AUTO
    undo_retention integer 1 <<<< One second
    undo_tablespace string MAKE Sure its big enough
    with 10.2.0.x seems to be an issue with setting it to 0 but I've not had time to investigate
    will do later. Also at 10.2.0.2 VERY large DML can sometimes hit ORA-600's the reasons are complex if you do hit them open a service request with support. There is a patch to cope with 95% of the issues. The other 5% I'm in the process of nailing and for those the current workaround is
    update SDO_INDEX_METADATA_TABLE
    set SDO_DML_BATCH_SIZE = 1
    where sdo_index_owner = <INDEX/SCHEMA Owner>
    and sdo_index_name = 'INDEX_NAME';
    ========================================
    Dont do this without checking the 600 with support....
    ========================================
    rather rambling....regarding the redo watch this space...

  • Create CTXCAT  index in parallel mode

    I am using Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production with oracle text version 11.2.0.2.0.
    Following script is used to create the ctxcat index but I noticed it is not creating the index in parallel. We have 16 cpu server. The table onto which text index is created has no partition.
    BEGIN
    --Storage preference
    Ctx_Ddl.Create_Preference ('IDX_STORE', 'basic_storage');
    Ctx_Ddl.Set_Attribute (preference_name => 'IDX_STORE',
    attribute_name => 'I_TABLE_CLAUSE',
    attribute_value => 'TABLESPACE C_DATA_02');
    Ctx_Ddl.set_attribute ('IDX_STORE',
    'I_INDEX_CLAUSE',
    'TABLESPACE C_IDX_02 COMPRESS 2');
    Ctx_Ddl.set_attribute (
    'IDX_STORE',
    'R_TABLE_CLAUSE',
    'TABLESPACE C_DATA_02 LOB(DATA) STORE AS (CACHE)'
    --Wordlist
    ctx_ddl.create_preference ('nbcwordlist', 'BASIC_WORDLIST');
    ctx_ddl.set_attribute ('nbcwordlist', 'PREFIX_INDEX', 'TRUE');
    ctx_ddl.set_attribute ('nbcwordlist', 'PREFIX_MIN_LENGTH', 1);
    ctx_ddl.set_attribute ('nbcwordlist', 'PREFIX_MAX_LENGTH', 64);
    ctx_ddl.set_attribute ('nbcwordlist', 'SUBSTRING_INDEX', 'NO');
    END;
    CREATE INDEX FTS_IDX ON INDVL_SRCH_NM (SRCH_NM)
    INDEXTYPE IS CTXSYS.CTXCAT
    PARAMETERS('STORAGE IDX_STORE STOPLIST C_STOPLIST WORDLIST C_WORDLIST')
    PARALLEL (DEGREE 16);
    What should be done to create this index in parallel? Is there any other thing that can be done to speed up creation without disabling prefix index.
    Thanks. I appreciate you time and effort.
    Edited by: spur230 on Nov 14, 2011 4:53 PM

    Hi,
    in the manual some remarks are made for parallel indexing, see http://download.oracle.com/docs/cd/E14072_01/text.112/e10945/ind.htm#CIHCBABI
    So it is possible to index in parallel, but you don't have control, the oracle db decides this for you. So it is possible that Oracle thinks that single indexing is faster, more work is done in the database besides the index creation, and many more factors (also mentioned in above document).
    I did many parallel indexing on systems, but always on quiet moments, so I have the most resources for creating indexes. Furthermore I noticed that system statistics can influence the creation. If the statistics are good for the CPU and I/O, the parallel creation can be optimised by the db.
    Herald ten Dam
    http://htendam.wordpress.com

  • Error while creating an index for NVARCHAR2 datatype

    Dear All,
    I'm trying to create and index on a NVARCHAR2 field type but I get the following error:
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10509: invalid text column: SUBJECT
    ORA-06512: at "CTXSYS.DRUE", line 157
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 176
    If I create an index in the same table but for a VARCHAR2 field type, I don't get any.
    Please help me. Here is the table description:
    Thanks.

    Daniele,
    Can you describe your use of NVARCHAR2 ?
    What is your National character set ?
    What kind of data are you storing there ?
    - Steve B.

  • Error while creating new Index

    Hi,
    I'm trying to create Index and I'm getting the following error:
    Index could not be created; creating index failed: Invalid entry in configuration: section nameserver, key address, value tcpip://<nameserverhost>:<nameserverport> is invalid (Errorcode 7213)
    Can you please suggest what's the mistake?
    Regards,
    Balaji

    Hello Balaji,
    Please check whether the nameserver and other property values given in the Trex Service in Visual Admin of the system are coorect.
    Visual Admin --> Server --> Services --> TREX Service.
    Regards,
    Vinod

  • ORA-01555: snapshot too old while creating large index

    Dear All,
    I have a newly created partitioned table of size 300GB.
    On which i am creating a composite unique index having 5 columns(local partitioned).
    The size of the index may be around 250GB(assume from a similar type table).
    My DB version in Oracle 9i release 2.
    Size of my undo tablespace is 12GB.
    Undo related parameters are as below:
    undo_management AUTO
    undo_retention 18000
    undo_suppress_errors FALSE
    At 10:40:36 AM i fired the "create index .... local;" query
    All day long i was monitoring using "select used_ublk,addr from v$transaction" and same below output all the times:
    USED_UBLK ADDR
    1 C000000185ECF458
    [ using v$session(column TADDR) i found that "C000000185ECF458" is the ADDR of my transaction (if i am not wrong) ]
    But at 11:09:27 PM (about 12 hours later) i found: ORA-01555: snapshot too old
    I am sure that at that time my undo tablespace usages was below < 30%
    At that time some insertion & selection was going on but those were not on this table.
    Why this happened ? As far as i know oracle in AUM oracle doesn't overwrite existing undo data as long as there
    is free space available.
    While searching on web i found one post as below:
    like

    Thanks guys for your prompt replys.
    Yes i've monitored v$TEMPSEG_USAGE and DBA_SEGMENTS for the progress of the index creation, but this are not related to my question and yes i could use nologging or parallel (in gact i'm going to try all these options for faster index creation). On my original post i missed below part, please go through it:
    While searching on web i found one post as below:
    metalinknote #396863.1 which describes it
    => 2) When are UNDO segments OFFLINED?
    Answer:
    SMON decides on the # of undo segs to offline and drop based on the max transaction concurrency over a 12 hour period in 9i. This behavior is altered in 10g where the max concurrency is maintained over a 7-day period. Moreover, in 10g SMON doesn't drop the extra undo segs, but simply offlines them. SMON uses the same values with "fast ramp up" to adjust the number of undo segments online.
    Link:[http://kr.forums.oracle.com/forums/thread.jspa?threadID=620489]
    I says "SMON decides on the # of undo segs to offline and drop based on the max transaction concurrency over a 12 hour period in 9i.".
    what does it mean ? Is this the cause for me, as my query war 12 hours old and my undo_retention is set to 5 hours ?
    I'll be very grateful if some one explains the cause.
    BR
    Obaid

  • Oracle intermedia error while creating the index

    desc test
    no number(2) primary key
    name varchar2(20)
    SQL> create index tindex on test(name) indextype is ctxsys.context;
    create index tindex on test(name) indextype is ctxsys.context
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: ConText error:
    ORA-06520: PL/SQL: Error loading external library
    ORA-06522: ld.so.1: extprocep_agt1: fatal: relocation error: file
    /export/home/oracle8i/OraHome1/ctx/lib/libctxx8.so: symbol ociepgoe: referenced
    symbol not found
    ORA-06512: at "CTXSYS.DRUE", line 122
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 34
    ORA-06512: at line 1
    what is the problem ??
    i Add an entry in the tnsnames.ora:
    extproc_connection_data =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = ipc)
    (KEY = DBSID))
    (CONNECT_DATA = (SID = ep_agt1)))
    and
    i Add the following in the listener SID_LIST:
    (SID_DESC = (SID_NAME = ep_agt1)
    (ORACLE_HOME = /oracle)
    (ENVS = LD_LIBRARY_PATH=/oracle/ctx/lib)
    (PROGRAM = extproc))
    my os is sun solaris intel and oracle version is 8.1.5
    null

    Try the following:
    1. Connect as ctxsys, and perform the following:
    SQL> create or replace library dr$libx as '<ORA_HOME>/bin/oractxx8.dll';
    2. Check the status of CTXSYS packages:
    select object_name, status from user_objects where status like 'IN%';
    OBJECT_NAME STATUS
    DRIDISP INVALID
    3. Re-compile any invalid packages (should be just dridisp) from the .plb file(s) in ?\ctx\admin
    SQL> @<ORA_HOME>\ctx\admin\dridisp.plb
    Package body created.
    SQL> select object_name, status from user_objects where status like 'IN%';
    no rows selected
    conn test/test
    SQL> create index simple_index on simple(text) indextype is ctxsys.context ;
    Index created.
    Notes
    Note1. CONTEXT QUERIES WILL STILL NOT RUN.
    SQL> insert into simple values (1, 'the cat sat on the mat') ;
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select pk from simple where contains(text, 'cat') >0 ;
    select pk from simple where contains(text, 'cat') >0
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'CTXSYS.DR_REWRITE' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Edit <ORA_HOME\admin\orcl\pfile\init.ora
    where orcl is your database name
    Remove the line "text_enable=true" and bounce the database.
    SQL> select pk from simple where contains(text, 'cat') >0 ;
    PK
    1
    Best Regards

  • ORA-29855 while creating spatial index

    Hello, I am having trouble creating a spatial index.
    When I execute the following:
    create index la2003geoidx on polygons("GEOMETRY1")
    indextype is mdsys.spatial_index;
    I get the error
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    I've seen a few topics in this forum that mention this error, but in my case that is the ONLY error message.

    whew. had trouble with the login.
    Hi Daniel,
    we are using 8.1.6 with the latest patches available. We have been using a spatial database for some time, but have never gotten the indexing to work. We always got wierd stuff, but now it's just the one error message.
    We are using Geomedia Pro 4 to access the data on the client end, if that makes a difference

  • While creating context index

    desc test
    no number(2) primary key
    text varchar2(20)
    create index tindex on test(text) indextype is ctxsys.context;
    when a gave this command cpu usage is going to 100% and i waited up to 9 hr but i didn't get index create what is the problem there is no error.my table don't have any records.
    my os is sun solaris intel and oracle version is 8.1.5
    regars
    chandrahas

    Hi,
    is it possible to give an example of how your data looks like? What are these special characters? Oracle Text includes option like printjoins and skipjoins which give special meanings to characters. So an example will guide us for helping you.
    Herald ten Dam
    http://htendam.wordpress.com

  • Error while creating the CTXXPATH Index

    Hi,
    I tried to create the CTXXPATH index on my table, which has XMLTYPE column. But while creating the index i m getting the below error,
    Error report:
    SQL Error: ORA-29958: fatal error occurred in the execution of ODCIINDEXCREATE routine
    ORA-29960: line 1,
    DRG-11304: function-based indexes are not supported by this indextype
    29958. 00000 - "fatal 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.
    I m using oracle 11g version. Could anyone please help me in resolving it.

    Hi,
    you can have a look at document "How to Create a Context Index Using a Function [ID 1063279.1]" at Oracle Support. You tried to create a CONTEXT index using a function but a function-based index is not supported. Workaround given in the document is to use a Multi_Column_Datastore.
    CTXXPATH is deprecated in Oracle 11.1, better is to use XMLINDEX, see http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/whatsnew.htm.
    Herald ten Dam
    http://htendam.wordpress.com

  • Table lock while creating index?

    Hello,
    my db is oracle10g. My database is OLTP system. I wanted to create index on one of the table. The table has 200 million records.
    Does it lock the entire table when i create index? I am thinking, how it impacts the regular operations in the database while creating the index?
    Any help is appreciated...

    Hi,
    Do you have Enterprise Edition? If so, the online option is available to you.
    So, you can do:
    create index my_new_index on my_tab(col1,col2) online;or:
    alter index my_existing_index rebuild online;If you don't use the online option, then yes, the table will be locked against updates, any OLTP traffic will serialize behinds the index maintenance operation.
    Hope that helps,
    -Mark

  • Unable to create spatial index

    I have a spatial table called ROAD11
    in that table I have a MDSYS.SDO_GEOMETRY column named "GEOMETRY".
    after creating that table, I inserted a row, in the USER_SDO_GEOM_METADATA.
    Here is what is present in USER_SDO_GEOM_METADATA
    SQL> SELECT * FROM USER_SDO_GEOM_METADATA WHERE TABLE_NAME='ROAD11';
    ROAD11
    GEOMETRY
    SDO_DIM_ARRAY(SDO_DIM_ELEMENT('X',0,20000,.000005),SDO_DIM_ELEMENT('Y,0,20000,.000005))
    1 row selected
    Now when I am trying to create an index on that table with the syntax.
    SQL> CREATE INDEX ROAD11 ON ROAD11(GEOMETRY)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX ROAD11 ON ROAD11(GEOMETRY)
    ERROR at Line 1:
    ORA-29855: error occured in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Satial index:[mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in Spatial index: [mdrcrtxfergm]
    ORA-13000: dimension number is out of range
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 7
    ORA-06512: at line 1
    This error is comeing while creating an index.
    I am useing Oracle 9i.Please help me out in solving the problem.
    Suprabuddha.

    can you post a sample geometry?

  • Report causes too many open cursors

    Hello there!
    I've got the following situation:
    I've a very heavy report used for generating our Users Manual. In Reports 6i this Report works fine, generating the Manual works.
    In 10g the Report starts, and formats about 240 pages (in 6i I can generate over 1000 pages and more with this report), and cancels with the message "too many open cursors".
    So I took a look at the open cursors:
    In 6i there are about 100 open cursors caused by this report; in 10g there are...uhm...in all cases to much for the max_open_cursors parameter of the database (standard value which is used by our application is 1000; increasing this to e.g. 5000 resulted in the same behaviour => too many open cursors).
    Checked the open cursors while running the report which showed the following behaviour:
    The report formats about 230 pages, and opens about 20 cursors (~30 sec.). for the next 10 sites the report opens the pending 980 cursors (~5 sec.), and stops formatting...
    So it seems the report server causes some bad recursion: When restarting the reports server and re-running the report, I get sometimes the following error:
    Mit Fehler beendet: REP-536870981: Interner Fehler REP-62204: Interner Fehler beim Schreiben des Bildes BandCombine: a row of the matrix does not have the correct number of entries, should be OpImage.getExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1.. REP-0069: Interner Fehler REP-50125: Exception abgefangen: java.lang.NullPointerException REP-0002: Unable to retrieve a string from the Report Builder message file. REP-536870981:
    or maybe the report server tries to paralellize some querys (as this report consists of about 5 querys)?
    As said - this is a very complex report (my colleague spent about 3 months of his life with creating it and that's not why he is a lamer in reports ;-)) so it's very hard to give you a repcase, but if anyone knows some advice like "edit the <repservername>.conf; append 'DO NEVER EVER PARALLELYZE QUERYS' to the config" or something this would be very useful ;-).
    many thanks
    best regards
    Christian

    I've now located the problem:
    The report consists of several querys based on a ref cursor; and this cursors are opend and not closed in 10g...
    I'll open a SR on metalink....
    best regards
    Christian

  • Is it worth creating secondary index on BKPF table ?

    Hello,
    One of my clients is using ECC version 5.0. I have a requirement wherein I need to fetch the data from BKPF table based on AWKEY, BUKRS and GJAHR. There is no standard secondary index available.
    I have decided to create a secondary index on these fields in the following order:
    1) MANDT
    2) AWKEY
    3) BUKRS
    4) GJAHR
    I know that creating secondary indexes does improve performance during data retrieval. But when I checked the total number of entries in BKPF table in production system, there are more than 20 lac 2 million records.
    I am worried that creation of secondary index will create another table of such a large size in production that has data sorted on the above fields. Also, the RAM of production system is 6 GB.
    Please suggest if creation of secondary index is a good measure OR should I recommend the client to increase the system RAM?
    Regards,
    Danish.
    Edited by: Thomas Zloch on Oct 3, 2011 3:01 PM

    Hi,
    Secondary Index on BKPF-AWKEY has been successfully created in production. The report which used to timeout in foreground as well as in background is now executing in less than 10 seconds !!
    Client is very much satisfied with this. But, there is one problem that we are facing now is that when the user is changing an existing billing document via VF02, on SAVE, system takes a very long time to save the changes done.
    We monitored the processes via SM50 and found that there was a sequential read on BKPF table.
    Before transporting the index in production, system approximately took not more than 5 seconds to save the Billing Document. But now system takes more than 20 minutes just to save the billing document via VF02.
    I really don't know what has gone wrong. I can't figure out if I have missed any step while creating the index.
    I did the following,
    1) Created a Secondary index on BKPF, saved it in the transport request and activated it. Since the index was not existing in database ORACLE, I activated and adjusted the table via SE14. Now, index exists on database as well. Working perfectly in development.
    2) Imported the transport request to Production. Checked in SE11. Index was existing and active. Also, index existed in database ORACLE.
    Have I missed anything ? Is it required to activate and adjust the database via SE14 in production too ?
    Regards,
    Danish.

Maybe you are looking for

  • Problem in Adobe forms

    Hi experts I am trying the tutorial on SDN - 'How to Execute an RFC Model with Input from Interactive Forms'. When I click on submit on the adobe form and the plug is fired using, wdThis.wdFirePlugOutToFlightDetail(); the browser closes without any e

  • Java Editor with the HelloWorldServlet does not open

    I am following the Getting Started guide lines. When choosing Finish in step 6 of "Create a HelloWorld Servlet" (https://help.hana.ondemand.com/help/frameset.htm?e5a8b1d3bb571014a0f89bb4706d4e0b.html) then the Java Editor should open. Unfortunately t

  • Reader doesn't work in Internet Explorer

    Greetings, When I click on a PDF link in Internet Explorer 11, I get the following error: This webpage wants to run 'Adobe PDF Reader' which isn't compatible with Internet Explorer's enhanced security features. If you trust this site, you can disable

  • Which ODDs can i use on my Satalite M40-276?

    Hi. I have Satellite M40-276. After 5-6 year DVD drive UJ-841 Mat****a cant readd any more DVD, cant burn.. ok I buy a new DVD drive from a friend but Toshiba can not recognize a new drive, a try several LG, samsung, toshiba drive!? Have someone a ma

  • How to fetch a package's commit messages as text?

    I use a set of my own scripts for building everything from abs/aur from source.  I track dependencies, including makedepends, package groups, package splits, etc by scanning PKGBULDs to extract the info into my database.  My build script attempts to