Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
Rebuild Indexes

Rebuild Indexes

2004-02-13       - By Niall Litchfield

Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Bear in mind that there are probably no *general* rules - including the one I am about to give.

In general non-bitmap indexes should be rebuilt approximately never. There is little or no benefit in the *general* case to rebuilding a standard index, andd there is nearly always an associated cost while the rebuild happens (especially on std edition where you can 't do online rebuild).

In addition as well as the 'distinctiveness ' of an index you should consider carefully the volume of dml on the underlying table as bitmap indexes imply significant locking when dml happens. I believe this is getting better the higher the version number of the database that you are running.

You will get a *slightly* different (and much more thoroughly argued than one can do in an email) view from http://www.dbazine.com/jlewis14.shtml

If you have the idea that indexes become unbalanced over time then http://www.dbazine.com/jlewis13.shtml ought to dispell that one for you.

Niall Litchfield
Oracle DBA
Audit Commission
+44 117 975 7805
> -- --Original Message-- --
> From: vidya.kalyanaraman@(protected)
> Sent: 13 February 2004 08:45
> To: oracle-l@(protected); vidya.kalyanaraman@(protected)
> Subject: Rebuild Indexes
>
>
> Hi
> It may be a silly thing to ask, but I am stuck right now.
> I have been given a task to find out the indexes which need to be
> rebuilt. There are around 3000 Indexes. I know I can run
> the following
> command
> "analyze index <Index > VALIDATE STRUCTURE "
>
> for a single index and then find the rows from index_state based on
> del_lf_rows_len/lf_rows_len > 20%.
> Does anyone have a script for dynamically finding out the
> indexes that
> are the candidates for rebuilding? How do you normally handle
> situations like this?
>
> TIA
> Vidya
>
>
>
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe send email to: oracle-l-request@(protected)
> put 'unsubscribe ' in the subject line.
> --
> Archives are at http://www.freelists.org/archives/oracle-l/
> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>
>



**********************************************************************
This email contains information intended for
the addressee only. It may be confidential
and may be the subject of legal and/or
professional privilege. Any dissemination,
distribution, copyright or use of this
communication without prior permission of
the sender is strictly prohibited.
**********************************************************************

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe ' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --