Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indexing Question 1

Status
Not open for further replies.

AJCG

Programmer
Jan 9, 2002
31
GB
I have a few tables, and a few indexes.... I remember an Oracle tool for checking out indexes and giving you a report on whether they are useful, and giving you suggestions on additional ones.... Anyone think of another program for this?
 
As a rule of thumb, it is usually best to add indexes only to solve a specific performance issue. If they solve the issue, they are useful.

I know this isn't a tool, but it is an approach to your problem that I would expect to work better than a tool (assuming someone is able to suggest one - which they haven't yet).

Indexes are also not all positive. Adding one MAY speed something up, but it will also DEFINITELY slow down inserts, administration, and utilise additional disk space.

My suggestion then would be to take off any that you aren't sure are serving a purpose, and experiment with any that you think might.
 
Also.

To check if your index is being used use:

Alter index my_index monitoring usage;

then when the index has been used the date will be inserted in to view v$object_usage.

If at any time you wish to stop monitoring the index use command

alter index my_index nomonitoring usage;


an example of output from : select * from v$object_usage
INDEX_NAME TABLE_NAME MON USE START_MONITORING END_MONITORING
------------------------------ ------------------------------ --- --- ------------------- -------------------
INDEX1 TEST YES NO 06/04/2003 13:39:44

which shows 'YES' in monitoring column and 'NO' in use column stating that it has not being used.

Sy UK
 
Thanks for the tip Sy!

[sup]Everywhere is within walking distance if you have the time. ~Steven Wright[/sup]
Consultant/Custom Forms & PL/SQL - Oracle 8.1.7 - Windows 2000
[sup]When posting code, please use TGML to help readability. Thanks![sup]
 
Hi Scunningham99,

I’m using Oracle 8i and the query -
select * from v$object_usage
results in ORA-00942: table or view does not exist

Any idea?
Dan
 
Hi again, just me... OK

Too the first poster here (nbateman) Yep I know been doing that one for a few years, just getting lazy I suppose and trying to find a way round it....

v$object_usage yep been using that too to keep an eye on a few indexes.. Removed six useless ones so far....

Thanks for everyones reply

Adam
 
We have an issue using Oracle 9a Client connecting to a database on a SUN box. We have noticed, that clients installed on W2K Adv Serv (SP3 or SP4) exhibit latency when issuing a TNSPING, versus when the client is installed an a Windows XP machine. We have verified the results, and they are consistent on different machines. Is this latency problem on Windows 2K a known issue? If so, is there a work around?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top