Database Tuning (MOSC)

MOSC Banner

Script for gathering statistics gave error in one index - the other indexes where analyzed

edited Feb 18, 2010 11:55AM in Database Tuning (MOSC) 13 commentsAnswered ✓
 I don't know why the following script gave error:  all the other indexes in the script where analyzed except this one.

--creates on the fly index analyze script for existing indexes for $M_USER
@/export/home/oracle/dba/scripts/ANALYZE/idx_ercadmin_analyze.sql


EXECUTE DBMS_STATS.GATHER_INDEX_STATS(OWNNAME=> '&1', INDNAME=> 'PK_TBL_ORDER',
PARTNAME=> NULL)

BEGIN DBMS_STATS.GATHER_INDEX_STATS(OWNNAME=> 'ERCADMIN', INDNAME=> 'PK_TBL_ORDE
R', PARTNAME=> NULL); END;

*
ERROR at line 1:
ORA-00904: : invalid identifier
ORA-06512: at "SYS.DBMS_STATS", line 7807
ORA-06512: at line 1

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center