Thursday, December 20, 2007

Identifying Unused Indexes with the ALTER INDEX MONITORING USAGE Command

Checked for relevance on 03-July-2007

This document explains how to identify unused indexes in order to remove them.

DBAs must be aware that unused indexes:
* consume storage space
* degrade performance by unnecessary overheads during DML operations


Note 144070.1 Identifying unused indexes in Oracle9i

How to Identify Unused Indexes in Order to Remove Them:
The examples below work if the user logged is the owner of the index.

1. Set the index under MONITORING:

SQL> alter index I_EMP monitoring usage;
Index altered.

SQL> select * from v$object_usage;

--------------- --------------- --- ---- ------------------- -------------------
I_EMP EMP YES NO 03/14/2001 09:17:19

2. Check if the monitored indexes are used or not through the USED column in

SQL> select sal from emp where ename='SMITH';


Execution Plan

The explain plan indicates the index is used.

SQL> select * from v$object_usage;

--------------- --------------- --- ---- ------------------- -------------------
I_EMP EMP YES YES 03/14/2001 09:17:19

If the index was not used, the DBA could drop this unused index.

3. To stop monitoring an index, use the following SQL statement:

SQL> alter index i_emp nomonitoring usage;
Index altered.

SQL> select * from v$object_usage;

--------------- --------------- --- ---- ------------------- -------------------
I_EMP EMP NO YES 03/14/2001 09:17:19 03/14/2001 09:55:24

As soon as you turn monitoring on again for the index, both columns
MONITORING and USED are reset.

SQL> alter index i_emp monitoring usage;
Index altered.

SQL> select * from v$object_usage;

--------------- --------------- --- ---- ------------------- -------------------
I_EMP EMP YES NO 03/14/2001 09:57:27


Anonymous said...

Hello all - vardenafil 20mg
Patients who have used this tablet confessed to having a better erection and therefore an improved sex life.
[url=]levitra cost[/url]
Levitra is sublingually taken and must be strictly taken with a prescription from your doctor.
levitra cost

For men, the inability to have an erection is indeed a big disappointment not just for them but to both partners.

Anonymous said...

Hi, - generic klonopin
Through the use of therapy, both medicinal and social, one can formulate a plan to rid their mind of anxiety once and for all.
[url=]buy clonazepam[/url]
Klonopin has been around for nearly two decades now, and has already helped millions of individual anxiety sufferers worldwide deal with their problem.
generic clonazepam
Klonopin is meant to be a short term anxiety solution(2-4 months), as continued use can lead to dependency.

Anonymous said...

Amiable brief and this fill someone in on helped me alot in my college assignement. Thanks you on your information.

Anonymous said...

Sorry for my bad english. Thank you so much for your good post. Your post helped me in my college assignment, If you can provide me more details please email me.

viagra said...

Wow, nice post,there are many person searching about that now they will find enough resources by your post

Anonymous said...

gt , cialis cost , free cialis , free viagra , , viagra reviews

Anonymous said...

buy cialis [url=] Cialis[/url]
Vicodin [url=] Buy Vicodin Online[/url]
Hydrocodone [url=] Buy Hydrocodone[/url]

Anonymous said...

Payday Loans Online Fundpopog [url=]Payday Loans Online[/url] Stype Payday Loans fast payday loans online They value giving you excellent customer service since other loans you are not high interest rates in the future.The check cashing service is so quick and simple that as that there to begin to repair loan in a nature.

Anonymous said...

teds woodworking , ted woodworking

Anonymous said...

3##$$ Cialis ^^&& [url=]Cialis sfsd [/url] **//
(()) Viagra *&&^ [url=]viagra online without prescription[/url] **//* (())g

Anonymous said...

viagra[url=] buy viagra [/url]

Xia Zhang said...

oakleyses said...

tory burch outlet, polo ralph lauren, ugg boots, chanel handbags, tiffany jewelry, longchamp outlet, longchamp pas cher, gucci handbags, sac longchamp pas cher, uggs on sale, jordan pas cher, michael kors pas cher, ray ban sunglasses, oakley sunglasses, polo outlet, louboutin pas cher, longchamp outlet, burberry pas cher, louis vuitton, cheap oakley sunglasses, replica watches, replica watches, longchamp outlet, christian louboutin outlet, prada handbags, oakley sunglasses wholesale, louis vuitton outlet, oakley sunglasses, ray ban sunglasses, louis vuitton, prada outlet, nike outlet, louis vuitton outlet, christian louboutin, nike free run, nike roshe, ugg boots, nike air max, polo ralph lauren outlet online, kate spade outlet, christian louboutin uk, tiffany and co, nike free, oakley sunglasses, jordan shoes, louis vuitton outlet, nike air max, ray ban sunglasses

oakleyses said...

nike tn, ralph lauren uk, true religion outlet, nike air max uk, burberry handbags, michael kors, abercrombie and fitch uk, nike blazer pas cher, oakley pas cher, timberland pas cher, hogan outlet, uggs outlet, michael kors outlet online, replica handbags, sac vanessa bruno, true religion outlet, converse pas cher, guess pas cher, ray ban pas cher, ray ban uk, true religion outlet, michael kors outlet, mulberry uk, nike roshe run uk, hollister uk, coach outlet, kate spade, nike air max, new balance, true religion jeans, north face, coach outlet store online, uggs outlet, michael kors outlet online, polo lacoste, michael kors outlet, lululemon canada, nike air force, vans pas cher, michael kors outlet, hollister pas cher, michael kors outlet online, sac hermes, michael kors, burberry outlet, michael kors outlet online, north face uk, nike air max uk

oakleyses said...

converse, louboutin, soccer jerseys, ferragamo shoes, hermes belt, longchamp uk, p90x workout, north face outlet, baseball bats, instyler, nike trainers uk, babyliss, mont blanc pens, soccer shoes, nfl jerseys, valentino shoes, oakley, hollister clothing, abercrombie and fitch, chi flat iron, ralph lauren, nike air max, north face outlet, gucci, ray ban, vans, beats by dre, herve leger, jimmy choo outlet, giuseppe zanotti outlet, mac cosmetics, ghd hair, reebok outlet, nike roshe run, hollister, mcm handbags, timberland boots, nike air max, lululemon, bottega veneta, insanity workout, nike huaraches, vans outlet, hollister, iphone cases, wedding dresses, new balance shoes, converse outlet, asics running shoes, celine handbags

oakleyses said...

marc jacobs, ugg,uggs,uggs canada, louis vuitton, swarovski, barbour uk, montre pas cher, moncler outlet, louis vuitton, canada goose outlet, louis vuitton, pandora charms, wedding dresses, juicy couture outlet, moncler, canada goose outlet, louis vuitton, canada goose uk, ugg uk, canada goose, ugg pas cher, coach outlet, hollister, moncler, canada goose outlet, ugg, pandora jewelry, moncler outlet, karen millen uk, pandora jewelry, links of london, louis vuitton, canada goose, canada goose, swarovski crystal, moncler uk, moncler, moncler, doudoune moncler, juicy couture outlet, canada goose jackets, thomas sabo, replica watches, ugg,ugg australia,ugg italia, barbour, pandora uk, supra shoes, lancel, toms shoes