index [message #454058] |
Mon, 03 May 2010 23:56  |
lokeshsurana
Messages: 212 Registered: April 2010 Location: India
|
Senior Member |
|
|
I want enable index?
I try as:
alter index reg_id_pk enable
but getting error as....
ORA-02243: invalid ALTER INDEX or ALTER MATERIALIZED VIEW option
I want disable the index while inseration of data in table......
Current status of Index is as:
Index_name Index_type compression
REG_ID_PK NORMAL DISABLED
What should need::::
|
|
|
|
Re: index [message #454061 is a reply to message #454060] |
Tue, 04 May 2010 00:07   |
lokeshsurana
Messages: 212 Registered: April 2010 Location: India
|
Senior Member |
|
|
alter index emp_id disable
I try that but giving error as
ORA-02243: invalid ALTER INDEX or ALTER MATERIALIZED VIEW option
|
|
|
|
|
Re: index [message #454076 is a reply to message #454075] |
Tue, 04 May 2010 00:57   |
 |
Michel Cadot
Messages: 68765 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Its_me_ved wrote on Tue, 04 May 2010 07:53Index can not be disabled; drop it instead.
Thanks
Ved
Hmmm.
SQL> create table t (val varchar2(10));
Table created.
SQL> create index i on t (upper(val));
Index created.
SQL> insert into t values ('michel');
1 row created.
SQL> commit;
Commit complete.
SQL> alter index i disable;
Index altered.
@OP this is how you should post your session.
Regards
Michel
[Updated on: Tue, 04 May 2010 00:57] Report message to a moderator
|
|
|
|
Re: index [message #454091 is a reply to message #454090] |
Tue, 04 May 2010 01:21   |
lokeshsurana
Messages: 212 Registered: April 2010 Location: India
|
Senior Member |
|
|
when there is function based index then only we can ble to disable the index
in other type of index we need to use unsable and after use we need to rebuild
Am I Right::::?
Regard
Lokesh
|
|
|
index [message #454093 is a reply to message #454091] |
Tue, 04 May 2010 01:25   |
lokeshsurana
Messages: 212 Registered: April 2010 Location: India
|
Senior Member |
|
|
after creation of Index
I want see or use index like
select * from emp
or
select index_name,ename from emp
like that
how we can use index to retrieve data::::?
|
|
|
|
Re: index [message #454097 is a reply to message #454095] |
Tue, 04 May 2010 01:27   |
lokeshsurana
Messages: 212 Registered: April 2010 Location: India
|
Senior Member |
|
|
I already try that but getting errors
not getting proper way
thats why asking solution
how to use index for retrial of data::::::::::::?
|
|
|
|
|
|
Re: index [message #454103 is a reply to message #454097] |
Tue, 04 May 2010 01:39   |
 |
Michel Cadot
Messages: 68765 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
lokeshsurana wrote on Tue, 04 May 2010 08:27I already try that but getting errors
not getting proper way
thats why asking solution
how to use index for retrial of data::::::::::::?
Once again: COPY AND PASTE WHAT YOU DID.
We can't know what you did, we can't know what to answer but pointing you to the documentation.
Do you really want to be helped more?
Regards
Michel
[Updated on: Tue, 04 May 2010 01:43] Report message to a moderator
|
|
|
|
Re: index [message #454108 is a reply to message #454093] |
Tue, 04 May 2010 01:58   |
Its_me_ved
Messages: 979 Registered: October 2009 Location: India
|
Senior Member |
|
|
Quote:
after creation of Index
I want see or use index like
select * from emp
or
select index_name,ename from emp
like that
how we can use index to retrieve data::::?
Index is basicaly used to retrieve data fast.One way we make table access faster is to create an index on that table. You are probably very familiar with indexes and there is an index at the end of the book. If you want to find out about Oracle tables, you go to the end of the book, look in the index, and it tells you which page to read for information on Oracle indexes. Without this index, finding a topic would be much more difficult. Now imagine if we asked you to find every instance of the word 'the' in the book. How long would it take you?
Please go through the link provided to you. It will help you to understand
Thanks
Ved
[Updated on: Tue, 04 May 2010 02:00] Report message to a moderator
|
|
|
|
|
|