基础知识之expdp与impdp是否更新统计信息

--分两种情况测试(不删除表只导入导出)
create table t as select * from dba_objects
SQL> select count(*) from t;

  COUNT(*)
----------
     73076

SQL> exec dbms_stats.gather_table_stats('YWBZ','T');

PL/SQL 过程已成功完成。

SQL> select num_rows,blocks from user_tables where table_name='T';

  NUM_ROWS     BLOCKS
---------- ----------
     73076       1066
--expdp
C:\>expdp ywbz/ywbzwater dumpfile=t.dmp directory=expdp tables=T

Export: Release 11.2.0.1.0 - Production on 星期日 1月 20 22:54:12 2013

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Produc
tion
With the Partitioning, OLAP, Data Mining and Real Application Testing options
启动 "YWBZ"."SYS_EXPORT_TABLE_01":  ywbz/******** dumpfile=t.dmp directory=expdp
 tables=T
正在使用 BLOCKS 方法进行估计...
处理对象类型 TABLE_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值