Jetec said:
Is there a rule of thumb on how to create indexes?
Are you asking:
Q1) Is there special syntax?
A1) Yes. Does the syntax not appear in your Oracle reference manuals?
Q2) Are there particular situations for which one should create indexes?
A2) Yes:
a) If you declare either a Primary Key or Unique constraint, Oracle automatically creates indexes.
b) You should explicitly create indexes for Foreign Keys
c) You should seriously consider creating indexes for columns that appear as operands in WHERE clauses.
Jetec said:
Should indexes have their own tablespace?
In days before disk striping, placing indexes in a tablespace separate from table data could yield performance savings by avoiding disk-head contention while simultaneously accessing index blocks and table blocks.
Striping, however, typically eliminates the need for positioning indexes in a separate tablespace from table data. I, personally, place table data and indexes in the same tablespace, grouped by application, since striping avoids disk-head contention.
Let us konw if this answers your questions.
![[santa] [santa] [santa]](/data/assets/smilies/santa.gif)
Mufasa
(aka Dave of Sandy, Utah, USA)
[I can provide you with low-cost, remote Database Administration services: see our website and contact me via
www.dasages.com]