【发布时间】:2014-10-03 00:47:02
【问题描述】:
我有一个 oracle 程序,它将“table1 Partition (P1)”中的所有行插入到 table2 中。我更新 table2 中的一个字段,然后将分区交换回 table1:
Alter Table table1 Exchange Partition P1 WITH TABLE table2 Including Indexes Without Validation;
这行得通。
问题:之后我需要收集表格统计信息吗?代码:
EXECUTE Dbms_Stats.Gather_Table_Stats (Ownname => 'MySchema', Tabname => 'Table1', Partname
=> 'P1, Granularity => 'ALL', Degree => 32);
需要很长时间才能运行,并且还涉及一些其他问题。
非常感谢,我用谷歌搜索并找不到明确的答案
- 史蒂夫
Oracle 数据库 11g 企业版版本 11.2.0.3.0 - 64 位生产
【问题讨论】:
标签: oracle partitioning