Party Merge ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE

Hi gurus,
i am using 11.5.10.2 on linux.
while running the party merge concurrent program , we are getting below error, please help.
Errors in Merge :
Application: Receivables_
Error: Merge failed in Receivables (HZ_STAGED_PARTY_SITES ) with the following error message:
This unexpected SQL error occurred during the merge process :
ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE
The following record was being handled when the error occurred :
Thanks
RB

Thanks Hussain, this is similer to the error i got, i will run the steps and get back to you, once again thanks for your prompt responce.
Thx
RB
Edited by: R12DBA on Jul 23, 2010 4:36 PM
Edited by: R12DBA on Jul 23, 2010 4:50 PM

Similar Messages

  • EXCEPTION: ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE

    Hello,
    I'm getting the exception when I go to run the following update statement (via PreparedStatement using JDBC):
    UPDATE my_table SET my_column_1 = ? WHERE my_column_ID = ?
    I searched google and couldn't determine the proper fix for this:
    http://ora-29861.ora-code.com/
    What I do know from SQL Developer:
    my_table has several indexes of which all have a status of "valid"
    my_column_ID has an index on it. the column type for this column is NUMBER(10,0)
    my_column_1 is a VARCHAR2(40 BYTE)
    So I'm uncertain where to go from here and any help would be great.
    Thanks,
    Jim
    Edited by: Jim Atharris on Jun 3, 2009 4:54 PM

    I guess its a problem with the index on my_table. I guess you can first drop the specific index using my_column_id and then try updating the table. After your updates are successful, you can create the index again. I may not be right, but just trying my hand.

  • ORA-29857: domain indexes and/or secondary objects exist in the tablespace

    I tried to drop tablespace APPS_TS_TX_DATA using drop tablespace APPS_TS_TX_DATA including contents and datafiles cascade constraints.
    I got error ORA-29857: domain indexes and/or secondary objects exist in the tablespace.
    After I have dropped all domain indexes, then tried to drop tablespace again, I still got the same error. I have searched metalink regarding this error, there is no hit.
    What exactly objects in the tablespace are prevenng dropping the tablespaces?

    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    ILMU88>
    ILMU88> SELECT COUNT(*)
    2 FROM dba_segments
    WHERE tablespace_name = 'APPS_TS_TX_DATA';
    3
    COUNT(*)
    14190
    drop tablespace APPS_TS_TX_DATA including contents and datafiles cascade constraints;
    drop tablespace APPS_TS_TX_DATA including contents and datafiles cascade constraints
    ERROR at line 1:
    ORA-29857: domain indexes and/or secondary objects exist in the tablespace

  • Dropping index gives ORA-29861

    Hello
    We have an application which reads data from MapInfo Spatialware using MapInfo Professional and upload this data into Oracle Spatial tables using MapInfo Easy Loader utility.
    The constraint is that tables in oracle spatial must not be dropped. So we have written a stored procedure which queries unique and spatial indexes of a feature table, then it drops them and truncates the table.
    Easy loader then uploads fresh data into these truncated tables and re creates spatial and unique indexes.
    This solution is working fine except for 1 feature table "ZONE". The stored procedure is unable to drop the indexes and error log shows error "ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE".
    I looked into discussion forums and they say to drop the indexes specifying keyword "FORCE" but how can i query whether index is corrupt and i must force drop it. Index state is all VALID which i check them...
    below is the stored procedure....
    CREATE OR REPLACE
    PROCEDURE Spa_Initializetables
         (     TNAME          IN     VARCHAR2,
         SPATIALCOL          IN     VARCHAR2,
              ERROR_CODE OUT     NUMBER,
              ERROR_MESSAGE     OUT     VARCHAR2
    IS
    CURSOR c1 IS
    SELECT * FROM user_sdo_index_info WHERE table_name LIKE UPPER(TNAME) AND column_name LIKE UPPER(SPATIALCOL);
    BEGIN
    --Truncate the given table
    EXECUTE IMMEDIATE 'TRUNCATE TABLE ' || TNAME;
    --Loop through all the indexes found and drop them one by one
    FOR cur_ts IN c1 LOOP
    --DBMS_OUTPUT.PUT_LINE(cur_ts.index_name);
    EXECUTE IMMEDIATE 'DROP INDEX '|| cur_ts.index_name;
    END LOOP;
    ERROR_CODE := 0;
    EXCEPTION
         WHEN OTHERS THEN
         ERROR_CODE          :=     1;
         ERROR_MESSAGE     := SQLERRM;     
    END Spa_Initializetables;
    please let me know what best i can do
    Regards
    Sam

    Sorry, but I can't simulate this troulbe. look:
    create table a (id number, lmao mdsys.sdo_geometry)
    INSERT INTO mdsys.sdo_geom_metadata_table (SDO_OWNER,SDO_TABLE_NAME,SDO_COLUMN_NAME,SDO_DIMINFO,SDO_SRID)
    VALUES ('GIS','A','LMAO',SDO_DIM_ARRAY(
    SDO_DIM_ELEMENT('X', -180,180, 5e-4),
    SDO_DIM_ELEMENT('Y', -180,180, 5e-4)), NULL);                         
    create index a_g_idx on a(lmao) indextype is mdsys.spatial_index;
    insert into a values (1,SDO_geometry(2003,NULL,NULL,SDO_elem_info_array(1,1003,3),SDO_ordinate_array(1,1, 2,2)));
    commit;
    truncate table a;
    insert into a values (2,SDO_geometry(2003,NULL,NULL,SDO_elem_info_array(1,1003,3),SDO_ordinate_array(1,1, 2,2)));
    drop table a;
    No errors :(
    I have 10.2.0.3
    May be i didn't understood you ?

  • ORA-29861 Error while editing or adding search keywords in a File Item

    Hi,
    We are getting the following error while editing or adding search keywords to a file item:
    ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE
    DAD name: portal30 PROCEDURE : PORTAL30.wwv_edit_tab.edititem
    Can you please tell us what went wrong.
    Thanks

    Vikas,
    From the server error messages reference:
    Cause: An attempt has been made to access a domain index that is being built or is marked failed by an unsuccessful ODCIIndexCreate or is marked unusable by a DDL operation.
    Action: Wait if the specified index is marked LOADING Drop the specified index if it is marked FAILED Drop or rebuild the specified index if it is marked UNUSABLE.
    It's possible you were loading the document while the index was being rebuilt. Search all_indexes where DOMIDX_STATUS <> 'VALID' OR DOMIDX_OPSTATUS <> 'VALID' to find the offending index and rebuild it.
    Regards,
    Jerry
    null

  • Help! ORA-29861!

    Hi, ladies and gentlemen!
    I have used oracle database 11.1.06 + WebLogice Server 10.3.0 + Agile PLM 9.3 to setup a product management system, but i can't upload attachments! It told me it was an error ORA-29861 there.
    Who can tell me how to resolve this problem?
    PS: I am a noob in this applification field.

    Hi, below is the error tips i met.
    ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE
    java.sql.SQLException: ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :125)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.
    java:185)
    at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedS
    tatement.java:633)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:1086)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep
    aredStatement.java:2984)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
    ement.java:3076)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.jav
    a:98)
    at com.agile.pc.cmserver.attachment.AttachmentDAO.appendFileRow(Attachme
    ntDAO.java:258)
    at com.agile.pc.cmserver.attachment.AttachmentServiceFiles.saveAdd(Attac
    hmentServiceFiles.java:548)
    at com.agile.pc.cmserver.attachment.AttachmentServiceFiles.saveRow(Attac
    hmentServiceFiles.java:608)
    at com.agile.pc.cmserver.attachment.AttachmentService.addFile(Attachment
    Service.java:2111)
    at com.agile.pc.cmserver.base.BaseServiceAttachment.addFile(BaseServiceA
    ttachment.java:896)
    at com.agile.pc.cmserver.base.BaseService.addFile(BaseService.java:4424)
    at com.agile.pc.cmserver.base.BaseService.addFiles(BaseService.java:4501
    at com.agile.pc.cmserver.base.CMSessionBean.addFiles(CMSessionBean.java:
    3842)
    at com.agile.pc.cmserver.item.ItemSessionBean_v9sfth_EOImpl.addFiles(Ite
    mSessionBean_v9sfth_EOImpl.java:9611)
    at com.agile.ipa.pc.CMObjectBase.wCmaddFiles(CMObjectBase.java:4460)
    at com.agile.ui.pcm.common.ObjectViewHandler.uploadFileAttachments(Objec
    tViewHandler.java:13480)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.agile.ui.web.action.ActionServlet.invokeMethod(ActionServlet.java
    :1062)
    at com.agile.ui.web.action.ActionServlet.handleRequest(ActionServlet.jav
    a:667)
    at com.agile.ui.web.action.ActionServlet.doPost(ActionServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
    (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
    tyHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:42)
    at com.agile.ui.pcm.common.filter.RemoteFSRequestFilter.doFilter(RemoteF
    SRequestFilter.java:143)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:42)
    at com.agile.ui.web.filter.LoggingFilter.doFilter(LoggingFilter.java:108
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:42)
    at com.agile.ui.pcm.common.filter.WebClientLog.doFilter(WebClientLog.jav
    a:78)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:42)
    at com.jspbook.GZIPFilter.doFilter(GZIPFilter.java:21)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:42)
    at com.agile.ui.pcm.common.filter.SSOTicketFilter.doFilter(SSOTicketFilt
    er.java:84)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
    va:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:3496)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
    ervletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
    ontext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
    ava:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

  • Local Domain Index  query fails with ora-01410: invalid rowid

    Hello!
    I have a task to implement partitioned domain index for range partitioned table.
    As I understood from reference http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28425/dom_idx.htm
    the main difference is to provide support for partitioning operations by
    implementing corresponding ODCI interface functions.
    For the first I decided to create something simple to not spend time on system partitioned
    index storage table. My problem is that domain index works correctly when it's created without
    support for partitioning and produces "*ORA-01410: INVALID ROWID*" when it's created
    with LOCAL option.
    Test query:
    SELECT /* +index(from_sample_index) */ * FROM index_in_partitioned_tbl WHERE position_between(card_no)  < 50 ORDER BY card_no DESC;
    Index creared in this way returns 3 rows:
    CREATE INDEX from_sample_index ON index_in_partitioned_tbl (card_no) INDEXTYPE IS position_indextype;
    When index has been creared with LOCAL option I got "ORA-01410: INVALID ROWID" :
    CREATE INDEX from_sample_index ON index_in_partitioned_tbl (card_no) INDEXTYPE IS position_indextype LOCAL;
    I don't post implementation's source code to reduce amount of text in post. It works for global index.
    If I copy rowid from index storage table and then put it into something like
    SELECT card_no FROM index_in_partitioned_tbl WHERE rowid = 'AAAXHGAAEAAAFERAAh';
    then it will be executed successfully without any errors.
    I suppose the error could be somehow linked with "alter index" calls that Oracle makes when local domain index is created.
    The calls are made with option "AlterIndexRebuild" - possibly they mark index as invalid (though it's shown as valid in SQL Developer)

    Solved :)
    when index is LOCAL calls for ODCIINDEXSTART - ODCIINDEXFETCH - ODCIINDEXCLOSE are executed for each partition of base table.
    In my case ODCIINDEXFETCH returns row_id's regardless of partition that are currently scanned for values. So first call returned rowid values for all partitions not only for the first partition and validation failed with "ora-01410: invalid rowid"

  • Ora-29886 feature not supported for domain indexes ??

    Could anyone tell me the reason for the following error
    ora-29886 feature not supported for domain indexes
    What are domain indexes ..??
    Thanks in advance ..

    It would have been better if you posted the statement that caused the error.
    If you are using something like MERGE INTO, it is not supported with with Domain Indexes. Workaround is to complete your insert with individual insert statements or drop the Domain Index before insert and recreate the index after insert
    Domain indexes are built for specific applications (specific domain) like Oracle text, Oracle Spatial etc. So depending on what application you are running, you might be using domain indexes. You create domain indexes as you create b-tree indexes, but the difference is that you have to define the INDEXTYPE.
    You can find domain indexes in DBA_SECONDARY_OBJECTS. Find the index on the table you are using, then check the definition of the index and see what it looks like.

  • Error during altering a domain index - 10gr2

    10.2.0.5 on RHEL-4
    I would like to reduce some redo entries to prevent huge generation of archive-logs.
    select index_name, table_owner, table_name, tablespace_name from user_indexes where index_type='DOMAIN' and logging='YES';
    SQL> alter INDEX ISE_HIST#LOC nologging;
    alter INDEX ISE_HIST#LOC nologging
    ERROR at line 1:
    ORA-29871: invalid alter option for a domain index
    Why I am unable to convert into no-logging mode ? What is the correct way of doing this?
    Thanks!

    >
    I would like to reduce some redo entries to prevent huge generation of archive-logs.
    select index_name, table_owner, table_name, tablespace_name from user_indexes where index_type='DOMAIN' and logging='YES';
    SQL> alter INDEX ISE_HIST#LOC nologging;
    alter INDEX ISE_HIST#LOC nologging
    ERROR at line 1:
    ORA-29871: invalid alter option for a domain index
    Why I am unable to convert into no-logging mode ? What is the correct way of doing this?
    >
    As the exception message says you can't use the logging/nologging clause for domain indexes. Oracle doesn't support that functionality.
    See ALTER INDEX in the SQL Language doc
    >
    index
    Specify the name of the index to be altered.
    Restrictions on Modifying Indexes The modification of indexes is subject to the following restrictions:
    •If index is a domain index, you can specify only the PARAMETERS clause, the RENAME clause, the rebuild_clause (with or without the PARAMETERS clause), the parallel_clause, or the UNUSABLE clause. No other clauses are valid.
    •You cannot alter or rename a domain index that is marked LOADING or FAILED. If an index is marked FAILED, the only clause you can specify is REBUILD.
    >
    The first bullet point above itemizes the clauses you can specify for a domain index and LOGGING/NOLOGGING is not one of them. As that point says 'No other clauses are valid'.
    There are no workarounds.

  • How to create a domain index on NCLOB Column

    hi all,
    My database version is 10.2.0.1.
    Any body know how to create a domain index on nclob column.
    SQL> alter table test add (nclob1   nclob);
    Table altered.
    SQL> CREATE INDEX test_nclob ON test (nclob1) indextype is ctxsys.context
      2  /
    CREATE INDEX test_nclob ON test (nclob1) indextype is ctxsys.context
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10509: invalid text column: NCLOB1
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364Regards
    Singh

    Any body know how to create a domain index on nclob columnNot possible per design/documentation:
    The column that you specify must be one of the following types: CHAR, VARCHAR, VARCHAR2, BLOB, CLOB, BFILE, XMLType, or URIType.
    «

  • Domain index on list-partitioned table?

    Hi,
    I have a list-partitioned table, and wanted to create a partitioned Oracle Text index on it. I keep getting an error, and am now wondering if it's possible to do. Here is my syntax:
    CREATE INDEX SCHEMA1.IDX_ALL_TEXT_LOCAL ON SCHEMA1.TABLE1(ALL_TEXT)
    INDEXTYPE IS CTXSYS.CONTEXT
    LOCAL
    (PARTITION PTN1 PARAMETERS('sync (on commit) storage ptn1'),
    PARTITION PTN2 PARAMETERS('sync (on commit) storage ptn2'),
    PARTITION PTN3 PARAMETERS('sync (on commit) storage ptn3'),
    PARTITION PTN4 PARAMETERS('sync (on commit) storage ptn4'),
    PARTITION PTN5 PARAMETERS('sync (on commit) storage ptn5'),
    PARTITION PTN6 PARAMETERS('sync (on commit) storage ptn6'),
    PARTITION PTN7 PARAMETERS('sync (on commit) storage ptn7'),
    PARTITION PTN8 PARAMETERS('sync (on commit) storage ptn8')
    PARAMETERS('section group my_group lexer new_lexer');
    ERROR at line 1:
    ORA-29850: invalid option for creation of domain indexes
    Any advice would be much appreciated.
    Thanks,
    Nora

    ... will it spread the index across the tablespaces that are associated with each partition?No, as demonstrated below.
    SCOTT@orcl_11gR2> CREATE TABLE table1
      2       ( id         NUMBER(6),
      3         all_text      VARCHAR2 (20)
      4       )
      5  PARTITION BY LIST (id)
      6   (PARTITION ptn1 VALUES (2,4) TABLESPACE example,
      7    PARTITION ptn2 VALUES (3,9) TABLESPACE example
      8   )
      9  /
    Table created.
    SCOTT@orcl_11gR2> INSERT ALL
      2  INTO table1 VALUES (2, 'test2')
      3  INTO table1 VALUES (3, 'test3')
      4  INTO table1 VALUES (4, 'test4')
      5  INTO table1 VALUES (9, 'test9')
      6  SELECT * FROM DUAL
      7  /
    4 rows created.
    SCOTT@orcl_11gR2> CREATE INDEX IDX_ALL_TEXT_LOCAL
      2  ON TABLE1 (ALL_TEXT)
      3  INDEXTYPE IS CTXSYS.CONTEXT
      4  /
    Index created.
    SCOTT@orcl_11gR2> SELECT table_name, tablespace_name
      2  FROM   user_tab_partitions
      3  WHERE  table_name = 'TABLE1'
      4  /
    TABLE_NAME                     TABLESPACE_NAME
    TABLE1                         EXAMPLE
    TABLE1                         EXAMPLE
    2 rows selected.
    SCOTT@orcl_11gR2> SELECT table_name, tablespace_name
      2  FROM   user_tables
      3  WHERE  table_name LIKE '%IDX_ALL_TEXT_LOCAL%'
      4  /
    TABLE_NAME                     TABLESPACE_NAME
    DR$IDX_ALL_TEXT_LOCAL$I        USERS
    DR$IDX_ALL_TEXT_LOCAL$R        USERS
    DR$IDX_ALL_TEXT_LOCAL$N
    DR$IDX_ALL_TEXT_LOCAL$K
    4 rows selected.
    SCOTT@orcl_11gR2>

  • Issue creating domain index

    what lob error? This is a domain index on a clob. I don't have any special settings.
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in drvxtab.create_index_tables
    ORA-22853: invalid LOB storage option specification
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364
    CREATE INDEX myind ON
    my_mv(my_text)
    INDEXTYPE IS ctxsys.context
    PARAMETERS('MEMORY 500m FILTER INSOFilterpref STORAGE bfile_storage')
    PARALLEL 4;

    I remember this error when dealing with InterMedia. Specifically with Maximo.
    I believe you need to set and define your global lexer.
    Another key was to grant 'all privileges' to ctxsys within Oracle.
    There is definitely a lot more to this than what I mentioned.
    There are entire books on setting this up and tuning it.

  • Slow Response Time Joining Multiple Domain Indexes

    Hi All,
    I am working with a schema that has several full text searchable columns along with several other convential columns. I noticed that when I join on 2 Domain Indexes, the response time for query completion nearly doubles. However, If I were to combine my 2 clob columns into 1 clob, the extra cost of finding the intersection of 2 rows sets can be saved..
    In my query, I am taking 2 sets of random high probability words (the top 1000 sorted by token_count DESC).
    NOTE: All of my query execution times are taken with words not previously used to avoid caching by the engine..
    HERE IS THE SLOW VERSION OF THE QUERY WHICH REFERENCES THE BODY CLOB TWICE:
    SELECT count(NSS_ID) FROM jk_test_2 WHERE
    CONTAINS (body, '( STANDARDS and HELP ) ' ) > 0
    AND
    CONTAINS (body, '( WORKING and LIMITED ) ' ) > 0 ;
    THE EXPLAIN PLAN shows the intersection being calculated:
    | Id | Operation               | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT          |     | 1 | 99 | 3836     (0)| 00:00:47 |
    | 1 | SORT AGGREGATE           |     | 1 | 99 |     |     |
    | 2 | BITMAP CONVERSION TO ROWIDS     |     | | |     |     |
    | 3 | BITMAP AND               |     | | |     |     |
    | 4 | BITMAP CONVERSION FROM ROWIDS|     | | |     |     |
    | 5 | SORT ORDER BY          |     | | |     |     |
    |* 6 | DOMAIN INDEX          | JK_BODY_NDX | | | 1284     (0)| 00:00:16 |
    | 7 | BITMAP CONVERSION FROM ROWIDS|     | | |     |     |
    | 8 | SORT ORDER BY          |     | | |     |     |
    |* 9 | DOMAIN INDEX          | JK_BODY_NDX | | | 2547     (0)| 00:00:31 |
    Predicate Information (identified by operation id):
    6 - access("CTXSYS"."CONTAINS"("BODY",'( PURCHASE and POSSIBLE)')>0 AND
         "CTXSYS"."CONTAINS"("BODY",'(NATIONAL and OFFICIAL)')>0)
    9 - access("CTXSYS"."CONTAINS"("BODY",'(NATIONAL and OFFICIAL)')>0)
    I RAN 3 QUERIES and got these times:
    Elapsed: 00:00:00.25
    Elapsed: 00:00:00.21
    Elapsed: 00:00:00.27
    HERE IS THE QUERY RE-WRITTEN INTO A DIFFERENT FORMAT WHICH COMBINES THE 2 PARTS INTO 1:
    SELECT count(NSS_ID) FROM jk_test_2 WHERE
    CONTAINS (body, '( ( STANDARDS and HELP ) AND ( WORKING and LIMITED ) ) ' ) > 0;
    The Plan is now:
    | Id | Operation     | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT |     | 1 | 99 | 3207     (0)| 00:00:39 |
    | 1 | SORT AGGREGATE |     | 1 | 99 |     |     |
    |* 2 | DOMAIN INDEX     | JK_BODY_NDX | 5 | 495 | 3207     (0)| 00:00:39 |
    Predicate Information (identified by operation id):
    2 - access("CTXSYS"."CONTAINS"("BODY",'( ( FORM and GIVE ) AND (WEB and AGREED) ) ')>0)
    I RAN 3 QUERIES using new words and got these times:
    Elapsed: 00:00:00.12
    Elapsed: 00:00:00.11
    Elapsed: 00:00:00.13
    Although the cost is only %15 lower, it executes twice as fast. Also, the same improvement is gained if OR's are used instead of ands:
    With --> CONTAINS (BODY,'( ( ( FORM OR GIVE ) and (WEB OR AGREED) ) ') >0
    My 2 timings are .25 and .50 with the OR'ed clause above getting the better response time..
    BASED ON THIS, On my project I am tempted to merged 2 totally seperate clob columns into 1, to get the better response time. The 2 columns are 1) Body Text and 2) Codes. They LOGICALLY DO NOT BELONG WITH ONE ANOTHER. This would be very ackward for the project as it would cause a lot of fudging of the data in many places throughout the system. I have done this testing taking averages of 500 unique queries, my indexes are up to date with full statistics computed on my tables and indexes. Response time is HIGHLY CRITICAL for this project.
    Does anyone have any advice that would allow me to obtain the good response time avoiding the ackwardness of globbing all the data into one clob ?
    Joek

    You might try adding sections and querying using within.

  • Num_rows = null for Domain Index

    Hello!
    SQL> SELECT index_name, index_type, status, num_rows FROM user_indexes WHERE table_name = 'STUFF';
    INDEX_NAME                     INDEX_TYPE                  STATUS     NUM_ROWS
    IDX_STUFF_ATTR1               NORMAL                      VALID       3004176
    IDX_GEOM_STUFF                DOMAIN                      VALID
    PK_STUFF                      NORMAL                      VALID       3268049
    SYS_IL0000091928C00016$$       LOB                         VALID
    SYS_IL0000091928C00017$$       LOB                         VALIDIs it normal that the data dictionary has no num_rows for a domain index? I googled and searched the forums but couldn't find anything relating specifically to domain indexes. There was a post mentioning that bitmap indexes will not show a correct num_rows, so I suspect it might be the same for domain indexes?
    Regards,
    Christian

    Hi Christian,
    I forgot the comma between last_analyzed and num_rows in my previous post.
    Well.... a detail called my attention, and it is the name of the index itself: IDX_GEOM_STUFF.
    I would not consider any issue on the fact that it is a Domain Index.... but most likely a Spatial Index (since i see GEOM)!
    I googled, and found a few links that you should investigate (to start with), and maybe, you could tune your question so that expert with Spatial can help you further if needed:
    http://forums.esri.com/Thread.asp?c=2&f=1720&t=233552
    http://forums.esri.com/Thread.asp?c=158&f=2291&t=230495&mc=8#msgid700335
    http://www.dbasupport.com/forums/archive/index.php/t-23029.html
    From discussion: http://forums.esri.com/Thread.asp?c=2&f=1720&t=202266
    You can read:
    SDO_GEOMETRY layers do not have spatial index statistics. Only layers with S tables can, since the statistics are calculated on the S tableSo, as you started with, mentioned Bitmap indexes... i guess the Spatial thing need a double check.
    HTH !!
    Thierry
    Edited by: Urgent-IT on Feb 9, 2011 4:12 PM
    Edited by: Urgent-IT on Feb 11, 2011 9:31 AM
    You should mark the thread as answered if the responses have provided you with an appropriate response.

  • Creating DOMAIN INDEX on INTERVAL PARTITIONING

    Hi !
    I hava a problem, and I hope someone can help me!
    Two questions are asked below:
    1. Main question: HOW CAN I SOLVE THIS PROBLEM, ARE THERE OTHER WAYS DOING THE SAME JOB (MAYBE FASTER) ?
    2. Additionally: Is there a way to accelerate the deletion process
    Step 1: Creating the table* For Information how I create the table:
    CREATE TABLE LOC_EXAMPLE
    COLUMN1 NUMBER
    COLUMN2 NUMBER
    COLUMN3 NUMBER
    COLUMN4 NUMBER
    START_TIME TIMESTAMP
    GEOLOC MDSYS.SDO_GEOMETRY,
    TABLESPACE DB_DATA
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOLOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING
    PARTITION BY RANGE (START_TIME)
    INTERVAL (NUMTODSINTERVAL(1,'DAY'))
         PARTITION PART_LOC_EXAMPLE VALUES LESS THAN (TO_DATE('01-01-2008','dd-MM-yyyy'))
    ALTER TABLE LOC_EXAMPLE
    ADD CONSTRAINT PK_LOC_EXAMPLE PRIMARY KEY (COLUMN2,COLUMN4)
    DELETE FROM USER_SDO_GEOM_METADATA VALUE WHERE TABLE_NAME = 'LOC_EXAMPLE'
    INSERT INTO USER_SDO_GEOM_METADATA VALUES ('LOC_EXAMPLE','GEOLOC', MDSYS.SDO_DIM_ARRAY( MDSYS.SDO_DIM_ELEMENT('X',-180,180,0.001111949), MDSYS.SDO_DIM_ELEMENT('Y',-90,90,0.001111949) ), 8307)
    STEP 2: I TRY TO CREATE SPATIAL INDEX (ITS A DOMAIN INDEX IF I'M NOT WRONG) ON PARTITIONED TABLE*
    (PARTITIONED TABLE is an extension of range partitioning)
    CREATE INDEX LOC_EXAMPLE_idx ON LOC_EXAMPLE'(GEOLOC)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX LOCAL;
    THE SECOND STEP IS NOT POSSIBLE AS THE ORACLE DOCUMENTATION SAYS:
    When using interval partitioning, consider the following restrictions:
    -You can only specify one partitioning key column, and it must be of NUMBER or DATE type.
    -Interval partitioning is not supported for index-organized tables.
    -You cannot create a domain index on an interval-partitioned table.
    1) I THINK IT IS IMPOSSIBLE FOR ME TO PASS ON INTERVAL PARTITIONING (AMOUNT OF DATA IS REALY BIG).
    This partitioning is also used to delete datas from database once a mounth (scheduled on the basis of the partitions).
    Is there a way to accelerate the deletion process?
    2) I NEED A SPATIAL INDEX! NO WAY TO PASS ON IT!
    HOW CAN I SOLVE THIS PROBLEM, ARE THERE OTHER WAYS DOING THE SAME JOB (MAYBE FASTER) ?
    Why is it not possible to create a domain index on interval partitioning, any reason?
    Will this be possible anytime?
    I would be grateful to read any advise ...!
    Thanking you in anticipation,
    Ali

    There is a forum here at OTN for spatial. Please delete the contents of this post and ask your question there. Thanks.

Maybe you are looking for

  • How can solve this problem?

    I want to burn a music dvd with *150 music video's* of .mpg and .avi files to a double sided 8.5mb dvd. iDVD or Toast will only let me burn *98 files at a time* and also does not let me adjust the *level of music or normalise the volume* so all track

  • DVI to HDMI or VGA to connect to HDTV

    Hi I am researching buying a 40-42" LCD or plasma TV and I would like to be able to connect my IMac to the tv. I will mostly be using the TV to watch sports and to watch videos from my IMac. 1. Will 1080p videos played from the IMac produce good 1080

  • How do I put a group of tracks into one album

    How do I put a group of songs into one album?  They copied separately into iTunes.

  • Migration from Oracle 8i

    I'm using Oracle Workflow 2.6 with Oracle 8i what is the correct procedure to migrate to Oracle 10g and Oracle Wokflow 2.6.3? Thank you in advance for your attention it 's very important for me... Silvia

  • The app said it was for iphone so when i bought it than it said it was for iPad

    the app said it was for iPhone so when i bought it for $5 it said it was for iPad Could i at least be able to get the iPhone version of the settlers?