环境描述:
今天从4A远程电脑copy dmp文件,由于文件太大,copy动作无法完成,所以filesize指定输出文件大小,然后再进行压缩。
[[email protected] dpdump]$ expdpmobile/mobile directory=DATA_PUMP_DIR dumpfile=UserBoss_20160619_25%U.dmptables=mb_dw_user_data:part_20160619_14,mb_dw_user_data:part_20160620_14,mb_dw_user_data:part_20160621_14,mb_dw_user_data:part_20160622_14,mb_dw_user_data:part_20160623_14,mb_dw_user_data:part_20160624_14,mb_dw_user_data:part_20160625_14parallel=4 filesize=155096041 compression=all 采取压缩后的文件,按照filesize指定大小分配 Export: Release 11.2.0.4.0 - Production onTue Jun 28 16:20:35 2016 Copyright (c) 1982, 2011, Oracle and/or itsaffiliates. All rights reserved. Connected to: Oracle Database 11gEnterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Miningand Real Application Testing options Starting"MOBILE"."SYS_EXPORT_TABLE_01": mobile/******** directory=DATA_PUMP_DIRdumpfile=UserBoss_20160619_25%U.dmptables=mb_dw_user_data:part_20160619_14,mb_dw_user_data:part_20160620_14,mb_dw_user_data:part_20160621_14,mb_dw_user_data:part_20160622_14,mb_dw_user_data:part_20160623_14,mb_dw_user_data:part_20160624_14,mb_dw_user_data:part_20160625_14parallel=4 filesize=155096041 compression=all Estimate in progress using BLOCKS method... Processing object typeTABLE_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 1.526GB Processing object typeTABLE_EXPORT/TABLE/TABLE Processing object type TABLE_EXPORT/TABLE/COMMENT . . exported"MOBILE"."MB_DW_USER_DATA":"PART_20160619"."PART_20160619_14" 60.92 MB 1969793 rows . . exported"MOBILE"."MB_DW_USER_DATA":"PART_20160621"."PART_20160621_14" 57.32 MB 1974124 rows . . exported"MOBILE"."MB_DW_USER_DATA":"PART_20160620"."PART_20160620_14" 60.92 MB 1969793 rows . . exported"MOBILE"."MB_DW_USER_DATA":"PART_20160623"."PART_20160623_14" 57.60 MB 1975622 rows . . exported"MOBILE"."MB_DW_USER_DATA":"PART_20160625"."PART_20160625_14" 57.57 MB 1977708 rows . . exported"MOBILE"."MB_DW_USER_DATA":"PART_20160624"."PART_20160624_14" 57.66 MB 1976510 rows Processing object typeTABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS . . exported"MOBILE"."MB_DW_USER_DATA":"PART_20160622"."PART_20160622_14" 57.40 MB 1974954 rows Master table"MOBILE"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded ****************************************************************************** Dump file set forMOBILE.SYS_EXPORT_TABLE_01 is: /oracle/database/oracle/admin/mobile/dpdump/UserBoss_20160619_2501.dmp /oracle/database/oracle/admin/mobile/dpdump/UserBoss_20160619_2502.dmp /oracle/database/oracle/admin/mobile/dpdump/UserBoss_20160619_2503.dmp /oracle/database/oracle/admin/mobile/dpdump/UserBoss_20160619_2504.dmp /oracle/database/oracle/admin/mobile/dpdump/UserBoss_20160619_2505.dmp Job"MOBILE"."SYS_EXPORT_TABLE_01" successfully completed atTue Jun 28 16:21:06 2016 elapsed 0 00:00:31
expdp mobile/mobiledirectory=DATA_PUMP_DIR dumpfile=UserBoss_20160619_25%U.dmptables=mb_dw_user_data:part_20160619_14,mb_dw_user_data:part_20160620_14,mb_dw_user_data:part_20160621_14,mb_dw_user_data:part_20160622_14,mb_dw_user_data:part_20160623_14,mb_dw_user_data:part_20160624_14,mb_dw_user_data:part_20160625_14parallel=4 filesize=155096041 compression=all
使用tar –czf 再次压缩,发现效果不明显。
指定了compression参数,无需再tar –czf
[[email protected] Tmpfile]$ ll
total 1234480
-rw-r----- 1 oracle oinstall 123053127 Jun 28 17:17 2501.tgz
-rw-r----- 1 oracle oinstall 124641280 Jun 28 16:21 UserBoss_20160619_2501.dmp
时间: 2024-12-14 22:48:48