expdp匯出報ORA-31693、ORA-02354、ORA-01466
1 使用expdp匯出資料,報如下錯誤
[oracle@HOST_A expdir]$ expdp \'/ as sysdba\' JOB_NAME=xsc1 directory=FKFQ_EXP tables=USER_A.TABLE_A:A09_20220616 dumpfile=TABLE_A0616_1.dmp
logfile=TABLE_A0616_1.log CLUSTER=N FLASHBACK_SCN=15905125660849
Export: Release 11.2.0.4.0 - Production on Thu Jun 16 19:50:02 2022
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, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
Starting "SYS"."XSC1": "/******** AS SYSDBA" JOB_NAME=xsc1 directory=FKFQ_EXP tables=USER_A.TABLE_A:A09_20220616 dumpfile=TABLE_A0616_1.dmp
logfile=TABLE_A0616_1.log CLUSTER=N FLASHBACK_SCN=15905125660849
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 234 MB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/COMMENT
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
ORA-31693: Table data object "USER_A"."TABLE_A":"A09"."A09_20220616" failed to load/unload and is being skipped due to error:
ORA-02354: error in exporting/importing data
ORA-01466: unable to read data - table definition has changed
Master table "SYS"."XSC1" successfully loaded/unloaded
******************************************************************************
Dump file set for SYS.XSC1 is:
/backup/expdir/TABLE_A0616_1.dmp
2 檢視官方文件,說是由於表定義發生變化導致的,可以忽略。
3 使用如下語句,查詢表是否發生變化,經查,確實發生變化
SQL> ALTER SESSION SET nls_date_format='yyyy-mm-dd HH24:MI:SS';
Session altered.
SQL> set linesize 300
SQL> col OWNER for a20
SQL> col OBJECT_NAME for a20
SQL> select a.OWNER,a.OBJECT_NAME,a.CREATED,a.LAST_DDL_TIME from dba_objects a
where a.OBJECT_NAME='TABLE_A' and a.LAST_DDL_TIME > sysdate -1 ;
OWNER OBJECT_NAME CREATED LAST_DDL_TIME
-------------------- -------------------- ------------------- -------------------
USER_A TABLE_A 2021-04-28 21:51:28 2022-06-16 17:41:41
4 採取官方文件的第二個建議,不要新增scn,因為匯出的scn值為2022-06-16 9:10分的,進行匯出,沒有發生報錯,如下:
[oracle@HOST_A expdir]$ expdp \'/ as sysdba\' JOB_NAME=xsc1 directory=FKFQ_EXP tables=USER_A.TABLE_A:A09_20220616,
USER_A.TABLE_A:A08_20220616,USER_A.TABLE_A:A06_20220616,USER_A.TABLE_A:A12_20220616,USER_A.TABLE_A:A10_20220616,
USER_A.TABLE_A:A07_20220616,USER_A.TABLE_A:A11_20220616 dumpfile=TABLE_A0616_2.dmp logfile=TABLE_A0616_2.log CLUSTER=N
Export: Release 11.2.0.4.0 - Production on Fri Jun 17 08:57:13 2022
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, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
Starting "SYS"."XSC1": "/******** AS SYSDBA" JOB_NAME=xsc1 directory=FKFQ_EXP tables=USER_A.TABLE_A:A09_20220616,
USER_A.TABLE_A:A08_20220616,USER_A.TABLE_A:A06_20220616,USER_A.TABLE_A:A12_20220616,USER_A.TABLE_A:A10_20220616,
USER_A.TABLE_A:A07_20220616,USER_A.TABLE_A:A11_20220616 dumpfile=TABLE_A0616_2.dmp logfile=TABLE_A0616_2.log CLUSTER=N
Estimate in progress using BLOCKS method... Processing object type TABLE_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 1.091 GB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/COMMENT
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "USER_A"."TABLE_A":"A08"."A08_20220616" 145.0 MB 646132 rows
. . exported "USER_A"."TABLE_A":"A09"."A09_20220616" 151.9 MB 670802 rows
. . exported "USER_A"."TABLE_A":"A06"."A06_20220616" 137.8 MB 603644 rows
. . exported "USER_A"."TABLE_A":"A12"."A12_20220616" 90.18 MB 393310 rows
. . exported "USER_A"."TABLE_A":"A07"."A07_20220616" 78.79 MB 339139 rows
. . exported "USER_A"."TABLE_A":"A10"."A10_20220616" 82.03 MB 367017 rows
. . exported "USER_A"."TABLE_A":"A11"."A11_20220616" 19.86 MB 80143 rows
Master table "SYS"."XSC1" successfully loaded/unloaded
******************************************************************************
Dump file set for SYS.XSC1 is: /backup/expdir/TABLE_A0616_2.dmp
Job "SYS"."XSC1" successfully completed at Fri Jun 17 09:02:14 2022 elapsed 0 00:04:56
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69996316/viewspace-2901259/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- EXPDP 時報錯ORA-31693,ORA-02354,ORA-01555
- EXPDP匯出報ORA-31693 ORA-29913 ORA-01861錯誤
- ORACLE 資料匯出LOB欄位報錯ORA-31693,ORA-02354,ORA-22924Oracle
- expdp匯出報錯ORA-39127
- oracle 11g expdp匯出報ORA-24001Oracle
- expdp 匯出時指定節點
- Oracle資料泵匯出匯入(expdp/impdp)Oracle
- Oracle 12c expdp和impdp匯出匯入表Oracle
- Oracle expdp資料泵遠端匯出Oracle
- 基於flashback_scn的expdp匯出
- [oracle] expdp 匯出分割槽表的分割槽Oracle
- oracle按照表條件expdp匯出資料Oracle
- Oracle使用資料泵expdp,impdp進行資料匯出匯入Oracle
- ORACLE 資料泵impdp匯入報錯之ORA-31693 ORA-04098Oracle
- 如何確定一個dmp檔案是exp匯出的還是expdp匯出的?
- Oracle 11g 透過expdp按日期匯出表Oracle
- 【資料泵】EXPDP匯出表結構(真實案例)
- expdp在匯出時對資料大小進行評估
- 【ASK_ORACLE】一眼判斷出Oracle的dmp檔案是用expdp匯出還是exp匯出Oracle
- [重慶思莊每日技術分享]-expdp按日期匯出表
- exp和expdp的filesize引數的使用--匯出多個檔案
- oracle10g expdp資料泵的bug,按schema匯出,匯入impdp時無jobOracle
- 使用Exp和Expdp匯出資料的效能對比與最佳化
- [重慶思莊每日技術分享]-expdp匯出報錯LRM-00104: '32;' 不是 'parallel' 的合法整數Parallel
- expdp報錯ORA-39181
- Oracle 12.1.0.2 expdp匯出分割槽表資料遇到BUG慢的原因和解決方法Oracle
- RAC單個節點執行expdp提示ORA-31693 ORA-31617 ORA-19505 ORA-27037錯誤
- 終止expdp正在執行中的匯出任務
- [重慶思莊每日技術分享]-expdp導資料時評估匯出檔案大小
- 服務端指南 | 報表匯出服務端
- 資料泵expdp匯出遇到ORA-01555和ORA-22924問題的分析和處理
- poi報表匯出 複雜匯出 指定合併列和對比重複列合併行動態匯出
- POI的使用及匯出excel報表Excel
- 記一次expdp匯出任務中某張大表報錯問題的解決過程
- Activity 流程模型匯入匯出-activity流程模型匯入匯出模型
- esayExcel匯入匯出Excel
- doris匯入匯出
- Mysql匯入&匯出MySql