Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Index question
THANKS!!!
I run the next queries and I found the
information that I need.
select * from ALL_INDEXESwhere
table_name='ITEMLOC'
select * from all_ind_columnswhere
table_name='ITEMLOC'
The only problem that I have was that I
was trying to find ALL_INDEXES and
all_ind_columns on the wrong places they was
on the views tab.
About the item, yes it is char(32),
thanks for the advice is really important to know this kind of
things.
>>> [EMAIL PROTECTED] 06/24/03 06:24PM
>>>Hi,There are a couple of tables to help you
out...user_indexes (or all_indexes) will show you the indexes and
theirassociated tables.user_ind_columns (or all_ind_columns) will show
the columns containedwithin the index (multiple rows per index
potentially).In your example, an index on the item column is the only
thing which willhelp.Try:create index ind_itemloc_item on
itemloc(item);Then issue:analyze table itemloc estimate
statistics;Look at the manuals for additional info on the above
statements - you mightwant to add a tablespace clause to the "create index"
statement forexample. The analyze command will provide Oracle with
information aboutthe index so that it knows when to use or not use the
index.Finally, is the itemloc column a number or string column. If
it's a numbercolumn then don't wrap quotes around the supplied number - the
implicitdatatype conversion can cause Oracle to ignore the
index.Regards, Mark.
"Teresita Castro"
<[EMAIL PROTECTED]>
martmx.com> cc:
by: Subject: Index question
[EMAIL PROTECTED]
om
09:44
toHi!I am new using Oracle, and what to ask some doubt about indexesHow can I see how many fields of a table have indexes?I am trying to do an update but is too slow, so what I am trying to find isthe way to uses an index that can help to do this update more quickly.This is the query example:Update ITEMLOCSET AVERAGE_COST=5.5WHERE ITEM='0010096'I will like to find the way to set and index that have the item filedinclude to do this update quicker. Right now it takes like 30 seconds peritem and we have to update like 9,000
ORACLE-L
items.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<---->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Privileged/Confidential information may be contained in this message. If you are
of
it.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<---->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--Please see the official ORACLE-L FAQ: <A href="http://www.orafaq.net">http://www.orafaq.net-- Author: Mark Richard INET: [EMAIL PROTECTED]Fat City Network Services -- 858-538-5051 <A
services---------------------------------------------------------------------ToREMOVE yourself from this mailing list, send an E-Mail messageto: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and inthe message BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing list you want to be removed from). You mayalso send the HELP command for other information (like subscribing). Received on Tue Jun 24 2003 - 20:25:23 CDT