Oracle 创建index时 自动收集index 统计信息 但partition index要特别注意

Index drop 后重建可以自动收集index 统计信息

但如果  unusable index,如果这个index是partition 的,在rebuild index partition时 有个重大的问题,只是gather 了索引  partition上的statistics,没有gather 索引的 global statistics,导致在enable constraint使用global index statistics 出现问题。

由于Foreign Key上 global statistics为0 ,所以estimated的cost是1,而实际是xM行,loop过多了。

EXCLUDE=STATISTICS Or EXCLUDE=INDEX_STATISTICS During Datapump Import Still Analyzes The Indexes (Doc ID 793585.1)

Symptoms

You are using Data Pump import (impdp) using the following parameters:

EXCLUDE=STATISTICS

- OR -

EXCLUDE=INDEX_STATISTICS
EXCLUDE=TABLE_STATISTICS

Tables are not being analyzed in both cases, however, it is still analyzi

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值