ORACLE 11.2.0.4版本EXPDP不會匯出回收站中資料
結論:
在ORACLE 11.2.0.4版本資料庫中,清理回收站與否,不影響EXPDP匯出檔案的大小-即EXPDP不會匯出回收站中資料。
1.正常匯出
SQL> select segment_name,bytes/1024/1024 mb from user_segments;
SEGMENT_NAME MB
------------------------------ ----------
T1 .0625
T2 38
PK_T .0625
SQL> show user
USER is "BYS"
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE 11.2.0.4.0 Production
TNS for Linux: Version 11.2.0.4.0 - Production
NLSRTL Version 11.2.0.4.0 - Production
SQL> show recyclebin;
SQL>
SQL> select sysdate from dual;
SYSDATE
-------------------
2016/10/11 10:52:52
[oracle@bys1 ~]$ expdp system/oracle DUMPFILE=test.dmp DIRECTORY=MY_DIR SCHEMAS=bys
Export: Release 11.2.0.4.0 - Production on Tue Oct 11 10:53:03 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
FLASHBACK automatically enabled to preserve database integrity.
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** DUMPFILE=test.dmp DIRECTORY=MY_DIR SCHEMAS=bys
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 38.06 MB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "BYS"."T2" 32.02 MB 152180 rows
. . exported "BYS"."T1" 5.437 KB 5 rows
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
/home/oracle/test.dmp
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at Tue Oct 11 10:53:17 2016 elapsed 0 00:00:12
##########################
2.刪除表至回收站,繼續匯出
SQL> drop table t2;
Table dropped.
SQL> show recyclebin;
ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME
---------------- ------------------------------ ------------ -------------------
T2 BIN$Po7wBVOlB17gU9M5qMDlPg==$0 TABLE 2016-10-11:10:53:43
SQL>
SQL> select segment_name,bytes/1024/1024 mb from user_segments;
SEGMENT_NAME MB
------------------------------ ----------
T1 .0625
BIN$Po7wBVOlB17gU9M5qMDlPg==$0 38
PK_T .0625
[oracle@bys1 ~]$ expdp system/oracle DUMPFILE=test1.dmp DIRECTORY=MY_DIR SCHEMAS=bys
Export: Release 11.2.0.4.0 - Production on Tue Oct 11 10:54:10 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
FLASHBACK automatically enabled to preserve database integrity.
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** DUMPFILE=test1.dmp DIRECTORY=MY_DIR SCHEMAS=bys
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "BYS"."T1" 5.437 KB 5 rows
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
/home/oracle/test1.dmp
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at Tue Oct 11 10:54:23 2016 elapsed 0 00:00:11
[oracle@bys1 ~]$ du -sh tes*
208K test1.dmp
4.0K test1.log
33M test.dmp
在ORACLE 11.2.0.4版本資料庫中,清理回收站與否,不影響EXPDP匯出檔案的大小-即EXPDP不會匯出回收站中資料。
1.正常匯出
SQL> select segment_name,bytes/1024/1024 mb from user_segments;
SEGMENT_NAME MB
------------------------------ ----------
T1 .0625
T2 38
PK_T .0625
SQL> show user
USER is "BYS"
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE 11.2.0.4.0 Production
TNS for Linux: Version 11.2.0.4.0 - Production
NLSRTL Version 11.2.0.4.0 - Production
SQL> show recyclebin;
SQL>
SQL> select sysdate from dual;
SYSDATE
-------------------
2016/10/11 10:52:52
[oracle@bys1 ~]$ expdp system/oracle DUMPFILE=test.dmp DIRECTORY=MY_DIR SCHEMAS=bys
Export: Release 11.2.0.4.0 - Production on Tue Oct 11 10:53:03 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
FLASHBACK automatically enabled to preserve database integrity.
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** DUMPFILE=test.dmp DIRECTORY=MY_DIR SCHEMAS=bys
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 38.06 MB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "BYS"."T2" 32.02 MB 152180 rows
. . exported "BYS"."T1" 5.437 KB 5 rows
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
/home/oracle/test.dmp
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at Tue Oct 11 10:53:17 2016 elapsed 0 00:00:12
##########################
2.刪除表至回收站,繼續匯出
SQL> drop table t2;
Table dropped.
SQL> show recyclebin;
ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME
---------------- ------------------------------ ------------ -------------------
T2 BIN$Po7wBVOlB17gU9M5qMDlPg==$0 TABLE 2016-10-11:10:53:43
SQL>
SQL> select segment_name,bytes/1024/1024 mb from user_segments;
SEGMENT_NAME MB
------------------------------ ----------
T1 .0625
BIN$Po7wBVOlB17gU9M5qMDlPg==$0 38
PK_T .0625
[oracle@bys1 ~]$ expdp system/oracle DUMPFILE=test1.dmp DIRECTORY=MY_DIR SCHEMAS=bys
Export: Release 11.2.0.4.0 - Production on Tue Oct 11 10:54:10 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
FLASHBACK automatically enabled to preserve database integrity.
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** DUMPFILE=test1.dmp DIRECTORY=MY_DIR SCHEMAS=bys
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "BYS"."T1" 5.437 KB 5 rows
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
/home/oracle/test1.dmp
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at Tue Oct 11 10:54:23 2016 elapsed 0 00:00:11
[oracle@bys1 ~]$ du -sh tes*
208K test1.dmp
4.0K test1.log
33M test.dmp
相關文章
- Oracle資料泵匯出匯入(expdp/impdp)Oracle
- Oracle expdp資料泵遠端匯出Oracle
- oracle按照表條件expdp匯出資料Oracle
- Oracle使用資料泵expdp,impdp進行資料匯出匯入Oracle
- Oracle 12c expdp和impdp匯出匯入表Oracle
- Oracle 資料匯入匯出Oracle
- Oracle資料匯入匯出Oracle
- [oracle] expdp 匯出分割槽表的分割槽Oracle
- oracle10g expdp資料泵的bug,按schema匯出,匯入impdp時無jobOracle
- ORACLE---Aix7.1 安裝Oracle11.2.0.4版本資料庫OracleAI資料庫
- oracle 11g expdp匯出報ORA-24001Oracle
- Oracle 12.1.0.2 expdp匯出分割槽表資料遇到BUG慢的原因和解決方法Oracle
- 【資料泵】EXPDP匯出表結構(真實案例)
- oracle資料匯出匯入(exp/imp)Oracle
- Oracle 11g 透過expdp按日期匯出表Oracle
- expdp在匯出時對資料大小進行評估
- oracle資料庫的impdp,expdpOracle資料庫
- Oracle資料泵的匯入和匯出Oracle
- 【ASK_ORACLE】一眼判斷出Oracle的dmp檔案是用expdp匯出還是exp匯出Oracle
- Oracle 資料匯出注意事項Oracle
- Oracle資料庫匯入匯出。imp匯入命令和exp匯出命令Oracle資料庫
- Oracle資料庫——資料匯出時出現匯出成功終止, 但出現警告。Oracle資料庫
- oracle 備份資料庫,匯出資料庫Oracle資料庫
- expdp 匯出時指定節點
- Oracle匯出資料庫與還原Oracle資料庫
- oracle資料庫11.2.0.3升級到11.2.0.4Oracle資料庫
- expdp匯出報錯ORA-39127
- 使用Exp和Expdp匯出資料的效能對比與最佳化
- 基於flashback_scn的expdp匯出
- Oracle資料庫 11.2.0.4 EMON程式持續消耗CPUOracle資料庫
- Oracle資料庫的邏輯備份工具-expdp資料泵Oracle資料庫
- MongoDB--Mongodb 中資料匯出與匯入MongoDB
- Oracle 資料匯入ExcelOracleExcel
- 資料庫 MySQL 資料匯入匯出資料庫MySql
- sqoop資料匯入匯出OOP
- 資料泵匯出匯入
- phpMyAdmin匯入/匯出資料PHP
- 將資料庫中資料匯出為excel表格資料庫Excel
- 【Datapump】Oracle資料泵遷移資料命令參考(expdp/impdp說明)Oracle