Solved

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

Posted on 2012-04-02
4
485 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.

Join & Write a Comment

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to recover a database from a user managed backup

706 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now