Index Rebuild Online Failed Oracle 11gR2: ORA-01450: maximum key length (3215) exceeded

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World

Problem Description: Index creation or rebuild with online clause failed with following error in Oracle 11gR2.

ORA-00604: error occurred at recursive SQL level 1
ORA-01450: maximum key length (3215) exceeded


SQL> alter index SCOTT.M_DEPART_A1 rebuild online;
alter index SCOTT.M_DEPART_A1 rebuild online
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-01450: maximum key length (3215) exceeded

SQL> CREATE INDEX SCOTT.M_DEPART_A1 ON SCOTT.M_SCOART  (SCO_PARENT_DOCNAME, SCO_PARENT_LOCALREF, SCO_HIGH_CN, SCO_PARTITION_ID, SCO_TOCHILD_ROLE) online;
CREATE INDEX SCOTT.M_DEPART_A1 ON SCOTT.M_DEPART  (SCO_PARENT_DOCNAME, SCO_PARENT_LOCALREF, SCO_HIGH_CN, SCO_PARTITION_ID, SCO_TOCHILD_ROLE) online
                                                        *
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-01450: maximum key length (3215) exceeded

Solution Description:
Index rebuild online command internally creates a journal table to track of inserts and updates. This journal table size is limited to particular extent and you get this error when it crosses.

In this particular situation you have to rebuild your index without online clause.

SQL>   CREATE INDEX SCOTT.M_DEPART_A1 ON SCOTT.M_DEPART  (SCO_PARENT_DOCNAME, SCO_PARENT_LOCALREF, SCO_HIGH_CN, SCO_PARTITION_ID, SCO_TOCHILD_ROLE);

Index created.

SQL>  alter index SCOTT.M_DEPART_A1 rebuild;

Index altered.

_____________________________________________________________________________________________________________________

A visitor from Delhi viewed 'How to Find out / Check SGA and PGA size of Oracle' 4 hrs ago
A visitor from Bayonne viewed 'How to Increase, Decrease or Resize FRA(Flash Reco' 6 hrs 22 mins ago
A visitor from India viewed 'How to Increase, Decrease or Resize FRA(Flash Reco' 7 hrs 38 mins ago
A visitor from Frankfurt am main viewed 'enq: TM - contention Wait Event , Cause, Related S' 8 hrs 1 min ago
A visitor from Verkhnyaya salda viewed 'How to Increase, Decrease or Resize FRA(Flash Reco' 8 hrs 9 mins ago

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-25 All Rights Reserved | Site Map | Contact | Disclaimer