Index On CLOB Column [message #51476] |
Fri, 24 May 2002 06:37 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Kasthuri Ilankamban
Messages: 1 Registered: May 2002
|
Junior Member |
|
|
I have a question about creating index on CLOB
column.
When I try to create index on CLOB, I get:
ERROR at line 1:
ORA-02327: cannot create index on expression
with
datatype LOB
We don't have license for Oracle Context. What
kind of
index can I create on CLOB datatype?
Thank you,
Kasthuri
|
|
|
|
|
Re: Index On CLOB Column [message #51484 is a reply to message #51482] |
Fri, 24 May 2002 10:30 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/42800.jpg) |
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
if you are actually looking for CONTEXT OPTIONS
the following link will be helpful for you.
http://www.orafaq.net/faqctx.htm
else
When a table is created with a LOB column, Oracle automatically creates an index for the LOB locator. This auto-created index, which has a name of the form SYS_IL<#>$, takes on the tablespace default storage parameters if an index clause with a storage clause is not supplied in the lob clause of the CREATE TABLE command.
SQL> create table emp_lob (empno number, resume clob);
Table created.
SQL> insert into emp_lob values (2000, 'Frank Naude''s resume...');
1 row created.
1* select index_name,index_type,table_name from user_indexes
SQL> /
INDEX_NAME INDEX_TYPE TABLE_NAME
------------------------------ --------------------------- ------------------------------
SYS_IL0000028217C00002$$ LOB EMP_LOB
|
|
|