Usa estas opções no imp:

SKIP_UNUSABLE_INDEXES=y
IGNORE=y

Depois faz o seguinte, usa INDEXFILE=script.sql para você pegar o comando de
criação do índice e recria manualmente.

Não sei se esta é a melhor abordagem para a tarefa, mas acredito que vai
funcionar corretamente.

Atenciosamente,

Marcos Fontana

2009/10/11 simonegurita <[email protected]>

>
>
>
> Olá.
> Fiz um export do meu owner, dropei ele e tentei importar denovo.
> Acho que alguns index estavam unusabled.
> No import da o erro abaixo. A tabela é importada, mas a PK e FK não é.
>
> Alguém sabe o que devo fazer para importar corretamente?
>
> Obrigada desde já.
>
> erro: *----------------*
> Import: Release 10.2.0.4.0 - Production 32bits
> . . importing table "BSC_CFOP_DIGITO"
> 67 rows imported
> IMP-00017: following statement failed with ORACLE error 14063:
> "ALTER TABLE "BSC_CFOP_DIGITO" ADD CONSTRAINT "PK_BSC_CFOP_DIGITO" PRIMARY
> "
> "KEY ("BCD_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
> STORAGE(INITI"
> "AL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE
> "TS_"
> "DAT_01" LOGGING"
> IMP-00003: ORACLE error 14063 encountered
> ORA-14063: Unusable index exists on unique/primary constraint key
> IMP-00017: following statement failed with ORACLE error 14048:
> "ALTER INDEX "PK_BSC_CFOP_DIGITO" UNUSABLE ENABLE "
> IMP-00003: ORACLE error 14048 encountered
> ORA-14048: a partition maintenance operation may not be combined with other
> oper
> ations
>
> 
>


[As partes desta mensagem que não continham texto foram removidas]

Responder a