Skip to Main Content
  • Questions
  • Can interMedia index creation be done in parallel?

Breadcrumb

Question and Answer

Tom Kyte

Thanks for the question, Daryl.

Asked: June 26, 2002 - 11:24 am UTC

Last updated: April 18, 2005 - 9:59 am UTC

Version: 8.1.7

Viewed 1000+ times

You Asked

According to the syntax diagrams for CREATE INDEX, if domain index parameters are specified, the PARALLEL clause can't be used. Is there any way to parallelize index creation of interMedia indexes (interMedia Text in particular) so that additional CPUs can actually be brought in to get it done. For some of our tables, the creation of this index takes several hours, with much of the delay caused by waiting for the INSO filter timeout to expire (in the event of unindexable documents). Parallelizing this would seem to help with this problem. Do you agree?

and Tom said...

see
</code> http://docs.oracle.com/cd/A87860_01/doc/inter.817/a77063/csql5.htm#19446 <code>

it supports parallel create index.


Rating

  (9 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Doh.

Daryl, June 26, 2002 - 12:50 pm UTC

Well, I've searched and searched Technet and couldn't find that link. Very helpful. Thanks.

For a domain index?

Claudius, December 12, 2002 - 8:07 am UTC

how can i use the index attributes in a domain index clause?

Tom Kyte
December 12, 2002 - 10:05 am UTC

sometimes wish I could put stars in here too....

0 stars to you for providing really no details about anything. which attributes, which domain index. if it is interMedia/Text -- have you read the documentation (which has examples and such). it is all online.

Ups...

Claudius, January 07, 2003 - 6:46 am UTC

Sorry,

i tried it and got this message

ORA-29850 invalid option for creation of domain indexes

Cause: The user specified an invalid option like ASC, DESC, SORT or a parallel clause, partitioning clause or physical attributes
clause.
Action: Choose one of the valid clauses for creation of domain indexes.

But it was my fault... I used also the NOLOGGING clause.



Just for the record

Daryl, April 09, 2003 - 2:55 pm UTC

Parallel CREATE INDEX for interMedia in 8.1.7 requires the underlying table to be partitioned.

partitioned MV & Parallel Domain Index

Saminathan Seerangan, February 25, 2004 - 3:55 pm UTC

Dear Tom,

Thanks for all your help.

My Oracle Vetsion 8.1.7.3

I like to create a PARTITIONED meterialized view(Snapshot) based on a NON-PARTITION table which is located on remote DB(using db link SOURCE_DB_LNK).

I need partitioned MV because I have to use Parallel Domain Indexing (otherwise it is taking 22 Hrs)

CREATE SNAPSHOT mv2
STORAGE (INITIAL 1M NEXT 1M PCTINCREASE 0)
TABLESPACE noncrm_data
LOB(Y) STORE AS (TABLESPACE NONCRM_INDEX)
build IMMEDIATE USING INDEX TABLESPACE noncrm_index
STORAGE (INITIAL 1M NEXT 1M PCTINCREASE 0)
REFRESH fast
AS SELECT * FROM tab1@SOURCE_DB_LNK;


Questions
1) is it possible. If so kindly provide me an example.


Tom Kyte
February 25, 2004 - 7:13 pm UTC

on easy way is to use "on prebuilt table"

that is, create the MV table as you like it...

then create the mv on top of it...

then full refresh it to get it "caught up" so it can be incrementally refreshed.

(hint -- use LMTS and forget about initial, next, pctincrease forever)....




NOLOGGING workaround for DOMAIN index

Sami, March 09, 2004 - 8:53 am UTC

Dear Tom,

I like to use the NOLOGGING workaround for DOMAIN index provided by metalink.
</code> http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=135046.1 <code>
We are using one tablespace for all indexes (B-Tree,Domain,etc) and one tablespace for data.

After creating DOMAIN index, is it possible to set the tablespace back to logging?



Tom Kyte
March 09, 2004 - 12:19 pm UTC

yes. but it is only an attribute assigned to newly created objects in that tablespace -- it does not affect redo generation at all.

NOLOGGING -Space is saved in the redo log files

Sami, March 09, 2004 - 9:52 pm UTC

Dear Tom,
<AskTom>
NOLOGGING does not affect redo generation at all.
</AskTom>


but... the below document says
<Doc>
Creating an index with NOLOGGING has the following benefits:
Space is saved in the redo log files.
</Doc>

</code> http://download-west.oracle.com/docs/cd/B12037_01/server.101/b10739/indexes.htm#sthref2127 <code>

Kindly enlighten me

Tom Kyte
March 09, 2004 - 10:47 pm UTC

taken out of context, you can make anything mean anything.

they were asking about the nologging attribute of a tablespace and changing it. I pointed out that "it will not affect redo generation for any existing objects one way or the other -- it is simply a default attribute"

OK

Mathew, August 24, 2004 - 9:38 am UTC

Hi Tom,
I tried to create a domain index but it throws errors.How to
fix this problem?

SQL> desc mytab
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------
 X                                                  CLOB
 
I have data in it in the form of 5 rows. 


SQL> create index myindx on mytab(x) indextype is ctxsys.ctxcat

create index myindx on mytab(x) indextype is ctxsys.ctxcat
*
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: Oracle Text error:
DRG-10509: invalid text column: X
ORA-06512: at "CTXSYS.DRUE", line 157
ORA-06512: at "CTXSYS.CATINDEXMETHODS", line 100

Do I have to start any server process?
Please do reply.
Bye!
 

Tom Kyte
August 24, 2004 - 10:22 am UTC

ops$tkyte@ORA9IR2> create table t ( x clob, y varchar2(4000) );
 
Table created.
 
ops$tkyte@ORA9IR2>
ops$tkyte@ORA9IR2> create index t_idx_x on t(x) indextype is ctxsys.ctxcat;
create index t_idx_x on t(x) indextype is ctxsys.ctxcat
*
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: Oracle Text error:<b>
DRG-10509: invalid text column: X</b>
ORA-06512: at "CTXSYS.DRUE", line 157
ORA-06512: at "CTXSYS.CATINDEXMETHODS", line 100
 
 
ops$tkyte@ORA9IR2> create index t_idx_y on t(y) indextype is ctxsys.ctxcat;
 
Index created.
 
ops$tkyte@ORA9IR2>

http://docs.oracle.com/docs/cd/B10501_01/text.920/a96518/csql.htm#25834

<quote>
The column you specify when you create a CTXCAT index must be of type CHAR or VARCHAR2. No other types are supported for CTXCAT.
</quote>
 

Intermedia Indexes???

Sree, April 18, 2005 - 9:53 am UTC

Tom,
I have heard many times and read some info about intermedia indexes on your site, but really do not know what are they and what they are used for? Can you give me some insights on what exactly is this and why we use it (examples could be helpful) or if you have answered it many times before, can you provide me that link (so you do not have to repeat again?).

Thanks ,




Tom Kyte
April 18, 2005 - 9:59 am UTC