错误现象:
今天发布脚本时,一个表插入数据时报如下错误
ORA-01502: index ‘index_name' or partition of such index is in unusable state ORA-06512: at line 168
错误原因:
这个错误一般是因为索引状态为UNUSABLE引起的。
Bitmap Index Scan
数据库里面的表的扫描方式主要是以下几种方式:sequential scans, index scans, and bitmap index scans,当然还有index only scan,这种算是index scans中比较特殊的一种,需要的信息在索引中都能找到,扫描索引即可,不需要去扫描表。