windows-1252?Q52=65=3A=49=44=53=20=39=2E=34=20=61=
Posted in 2007
Topics: General Discussion
Look for the index's partnum or indexname in the sysmaster:sysptnprof table. If there's no activity there, then it's not being used. Art S. Kagel ----- Original Message ----- From: Richard Ramsower <ids@iiug.org> To: ids@iiug.org At: 11/07 13:57:35 Does anyone know how I can tell if an index is being utilized or not? I am in the process of re-orging several tables that have 6 or 7 indexes defined to them. I would like to be able to drop some of these and not create them again, but I do not know how to tell if a particular index has been used. Richard Ramsower Harris County - ITC Database Administrator wk#:713-368-0034; pager#:713-606-3511 ******************************************************************************* Forum Note: Use "Reply" to post a response in the discussion forum.
Hi,
Art is right , but three additions:
1) take care if you run regularly onstat -z (resetting statistic counters) AND
take care if you have special processes (e.g. programs
running only once a month)
2) if your database was created under IDS7 you may have attached indices
and won't have entries in sysptnprof for the different indices
3) I think TABLESPACE_STATS 1 must be set in the onconfig file
to collect the counters.
Regards
Andreas
>
-------------------------------------------
SPAR Österreichische Warenhandels-AG
Hauptzentrale
A - 5015 Salzburg, Europastrasse 3
FN 34170 a
Tel: +43 662 4470 24223
Mobile: +43 664 6259575
E-Mail: Andreas.KUTSCHE@spar.at
Internet: http://www.spar.at
Wichtiger Hinweis: Der Inhalt dieser E-Mail kann vertrauliche und rechtlich
geschützte Informationen, insbesondere Betriebs- oder Geschäftsgeheimnisse,
enthalten, zu deren Geheimhaltung der Empfänger verpflichtet ist. Die
Informationen in dieser E-Mail sind ausschließlich für den Adressaten
bestimmt. Sollten Sie die E-Mail irrtümlich erhalten haben so ersuchen wir
Sie, die Nachricht von Ihrem System zu löschen und sich mit uns in Verbindung
zu setzen.
Über das Internet versandte E-Mails können leicht manipuliert oder unter
fremdem Namen erstellt werden. Daher schließen wir die rechtliche
Verbindlichkeit der in dieser Nachricht enthaltenen Informationen aus. Der
Inhalt der E-Mail ist nur rechtsverbindlich, wenn er von uns schriftlich
bestätigt und gezeichnet wird.
Sollte trotz der von uns verwendeten Virus-Schutzprogramme durch die Zusendung
von E-Mails ein Virus in Ihre Systeme gelangen, haften wir nicht für evtl.
hieraus entstehende Schäden.
Wir danken für Ihr Verständnis.
Important notice: The contents of this e-mail may contain confidential and
legally protected information that is in particular related to operational and
trade secrets, which the recipient is obliged to treat as confidential. The
information in this e-mail is made available exclusively for use by the
addressee. In the event that the e-mail may have been sent to you in error, we
would ask you to kindly delete this communication from your system and to
contact us.
E-mails sent via the Internet can be easily manipulated or sent out under
someone else's name. We therefore do not accept legal liability for the
information contained in this communication. The contents of the e-mail are
only legally binding if they have been confirmed and signed by us in writing.
If, in spite of our using Antivirus protection software, a virus may have
penetrated your system through the sending of this e-mail, we do not accept
liability for any damage that may possibly arise as a result of this.
We trust that you appreciate our position.
-------------------------------------------
-----Ursprüngliche Nachricht-----
> Von: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] Im Auftrag von ART
> KAGEL, BLOOMBERG/ 731 LEXIN
> Gesendet: Mittwoch, 07. November 2007 20:04
> An: ids@iiug.org
> Betreff: windows-1252?Q52=65=3A=49=44=53=20=39=2E=34=20.... [10329]
>
> Look for the index's partnum or indexname in the sysmaster:sysptnprof
> table.
> If there's no activity there, then it's not being used.
>
> Art S. Kagel
>
> ----- Original Message -----
> From: Richard Ramsower <ids@iiug.org>
> To: ids@iiug.org
> At: 11/07 13:57:35
>
> Does anyone know how I can tell if an index is being utilized or not? I
> am in the process of re-orging several tables that have 6 or 7 indexes
> defined to them. I would like to be able to drop some of these and not
> create them again, but I do not know how to tell if a particular index
> has been used.
>
> Richard Ramsower
>
> Harris County - ITC
>
> Database Administrator
>
> wk#:713-368-0034; pager#:713-606-3511
>
>
> **************************************************************************
> *****
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
> **************************************************************************
> *****
> Forum Note: Use "Reply" to post a response in the discussion forum.