导出/导入数据时不会对统计信息产生影响
2013-03-14 18:55
531 查看
--导出/导入数据时统计信息不会发生变化 scott@ORCL> create table t as select * from dba_objects; 表已创建。 scott@ORCL> create directory dump2 as 'd:/dump1'; 目录已创建。 scott@ORCL> exec dbms_stats.gather_table_stats(user,'T'); PL/SQL 过程已成功完成。 scott@ORCL> select to_char(last_analyzed,'yyyy-mm-dd hh24:mi:ss') from user_tables where table_name='T'; TO_CHAR(LAST_ANALYZ ------------------- 2013-03-14 18:41:36 --expdp语句不加; C:\Users\Administrator>expdp scott/tiger@ORCL dumpfile=1.dmp directory=dump2 tables=T Export: Release 11.2.0.1.0 - Production on 星期四 3月 14 18:50:21 2013 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. 连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options 启动 "SCOTT"."SYS_EXPORT_TABLE_01": scott/********@ORCL dumpfile=1.dmp directory=dump2 tables=T 正在使用 BLOCKS 方法进行估计... 处理对象类型 TABLE_EXPORT/TABLE/TABLE_DATA 使用 BLOCKS 方法的总估计: 10 MB 处理对象类型 TABLE_EXPORT/TABLE/TABLE 处理对象类型 TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS . . 导出了 "SCOTT"."T" 7.853 MB 81756 行 已成功加载/卸载了主表 "SCOTT"."SYS_EXPORT_TABLE_01" ****************************************************************************** SCOTT.SYS_EXPORT_TABLE_01 的转储文件集为: D:\DUMP1\1.DMP 作业 "SCOTT"."SYS_EXPORT_TABLE_01" 已于 18:50:41 成功完成 --导入dmp文件 C:\Users\Administrator>impdp scott/tiger@orcl directory=dump2 dumpfile=1.dmp remap_schema=scott:sh Import: Release 11.2.0.1.0 - Production on 星期四 3月 14 18:53:33 2013 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. 连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options 已成功加载/卸载了主表 "SCOTT"."SYS_IMPORT_FULL_01" 启动 "SCOTT"."SYS_IMPORT_FULL_01": scott/********@orcl directory=dump2 dumpfile=1.dmp remap_schema=scott:sh 处理对象类型 TABLE_EXPORT/TABLE/TABLE 处理对象类型 TABLE_EXPORT/TABLE/TABLE_DATA . . 导入了 "SH"."T" 7.853 MB 81756 行 处理对象类型 TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS 作业 "SCOTT"."SYS_IMPORT_FULL_01" 已于 18:53:43 成功完成 sh@ORCL> select to_char(last_analyzed,'yyyy-mm-dd hh24:mi:ss') from user_tables where table_name='T'; TO_CHAR(LAST_ANALYZ ------------------- 2013-03-14 18:41:36
相关文章推荐
- dbms_stats包更新、导出、导入、锁定统计信息
- dbms_stats 导入导出 schema 级别统计信息
- oracle数据泵导入分区表统计信息报错(五)
- SQL Server统计信息更新时采样百分比对数据预估准确性的影响详解
- Oracle统计信息的导出、导入
- expdp impdp 排除统计信息 导入导出 性能对比
- secure_file_priv 配置项对数据导入导出的影响
- 数据导入:从文本文件导入用户信息。 数据导出:将用户信息导出到文本文件。
- dbms_stats 导入导出 表级别 统计信息
- dbms_stats 导入导出表统计信息
- 数据导入:从文本文件导入用户信息。数据导出:将用户信息导出到文本文件。 带参数的写法 适合登陆使用
- 另类获取ORACLE导入导出(imp/exp)数据的进度信息
- sql server数据导入导出方法统计
- 分词统计(三)导入导出数据
- dbms_stats包更新、导出、导入、锁定统计信息
- mysql启动参数--secure_file_priv 数据导入导出的影响
- Oracle数据导入导出没有想像的难吧只要做对了这些就不会出错
- 关于统计信息的导入导出
- oracle数据泵导入分区表统计信息报错(一)