Solved

How to move domain (CLOB) index from one tablespace to another

Posted on 2012-04-02
4
501 Views
Last Modified: 2012-04-16
Hi ,
I need to move some of the domain (CLOB) index from one tablespace to another. how can I move.
0
Comment
Question by:dba1234
  • 3
4 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 37797160
Is this an Oracle Text index?

If so you can name the tablespaces for the various pieces by creating a storage preference then using it to build the index.  See the example below.

If you mean some other index, please let us know the type.



begin
	ctx_ddl.create_preference('MY_STORAGE', 'BASIC_STORAGE');
	ctx_ddl.set_attribute('MY_STORAGE', 'I_TABLE_CLAUSE', 'tablespace ctx_objects');
	ctx_ddl.set_attribute('MY_STORAGE', 'K_TABLE_CLAUSE', 'tablespace ctx_objects');
	ctx_ddl.set_attribute('MY_STORAGE', 'R_TABLE_CLAUSE', 'tablespace ctx_objects lob (data) store as (disable storage in row cache)');
	ctx_ddl.set_attribute('MY_STORAGE', 'N_TABLE_CLAUSE', 'tablespace ctx_objects');
	ctx_ddl.set_attribute('MY_STORAGE', 'I_INDEX_CLAUSE', 'tablespace ctx_objects compress 2');
	ctx_ddl.set_attribute('MY_STORAGE', 'P_TABLE_CLAUSE', 'tablespace ctx_objects');
	ctx_ddl.set_attribute('MY_STORAGE', 'S_TABLE_CLAUSE', 'tablespace ctx_objects');
END;
/

Open in new window

0
 

Author Comment

by:dba1234
ID: 37797201
INDEXTYPE IS CTXSYS.CONTEXT  Can you please explain little bit more.
0
 
LVL 76

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 500 total points
ID: 37797214
>>INDEXTYPE IS CTXSYS.CONTEXT

That is an Oracle Text index.  It allows fast text searching using the CONTAINS SQL function.

The docs are the place to start:
Oracle® Text Reference
http://docs.oracle.com/cd/E11882_01/text.112/e24436/toc.htm

and
Oracle® Text Application Developer's Guide
http://docs.oracle.com/cd/E11882_01/text.112/e24435/toc.htm
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37852549
What part of your question did I not answer?

I'm curious why you gave me a 'B' penalty.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video shows how to recover a database from a user managed backup

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question