今天在用impdp导数据时出现卡住的现象,开始我以为是数据量过大导致的,过了两个小时还是卡住,看警告日志得到下面的错误信息:
GATHER_STATS_JOB encountered errors. Check the trace file.
Errors in file d:appzydiag
dbmsmydevmydev racemydev_j000_265128.trc:
ORA-20000: index "CWUSER"."PK_ACCARTICLECODEMAPPING" or partition of such index is in unusable state
进入cwuser查看该index的状态
SQL> select status from dba_indexes where index_name='PK_ACCARTICLECODEMAPPING'; STATUS -------- N/A
重建该索引
SQL> alter index PK_ACCARTICLECODEMAPPING rebuild online; Index altered