BR0301E SQL error -14063 at location tab_onl_reorg-10


Problema

BR0301E SQL error -14063 at location tab_onl_reorg-10, SQL statement:
'ALTER TABLE "SAPR3"."CDCLS" ADD PRIMARY KEY ("MANDANT", "OBJECTCLAS", "OBJECTID", "CHANGENR", "PAGENO")'
ORA-14063: Unusable index exists on unique/primary constraint key
BR0280I BRSPACE time stamp: 2013-12-06 13.54.55
BR1106E Reorganization of table SAPR3.CDCLS failed


Solução
- Identificando o nome do index.
select index_name,index_type,status,table_owner from dba_indexes
where  table_name='RFBLG' and table_owner='SAPR3';


INDEX_NAME                     INDEX_TYPE                  STATUS
------------------------------ --------------------------- --------
TABLE_OWNER
------------------------------
SYS_IL0000437505C00008$$       LOB                         VALID
SAPR3

RFBLG~0                        NORMAL                      UNUSABLE
SAPR3


- Faça um rebuild no index com status UNUSABLE.

SQL> connect sapr3
Enter password:
Connected.
SQL> alter index SAPR3."RFBLG~0" rebuild online;

Index altered.


- Repita o comando da brspace para reorganização da tabela.

Postar um comentário

Obrigado por comentar.
Aguarde a moderação.