impdp時parallel=4導致的錯誤
ORA-39121: Table "JUSTIN_a" can't be replaced, data will be skipped. Failing error is:
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
ORA-00955: name is already used by an existing object
ORA-39121: Table "JUSTIN_b" can't be replaced, data will be skipped. Failing error is:
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
ORA-00955: name is already used by an existing object
匯入時候 遇到這兩個表報錯
SQL> select object_id,object_name from user_objects where object_name in('JUSTIN_a','JUSTIN_b');
OBJECT_ID OBJECT_NAME
---------- --------------------------------------------------------------------------------------------------------------------------------
49194 JUSTIN_b
49754 JUSTIN_a
SQL> select session_id,locked_mode, object_id from v$locked_object where object_id in (49194,49754);
SESSION_ID LOCKED_MODE OBJECT_ID
---------- ----------- ----------
386 3 49754
258 3 49194
發現給這兩個表上加了mode=3的鎖,
接著把這兩個表上的鎖的會話刪掉,其中JUSTIN_b可以正常匯入,可是另外一個表仍然不行
[oracle@rac03 admin]$ impdp justin/justin directory=pump remap_schema=justindev:justin dumpfile=full_justindev_1228.dmp parallel=4 nologfile=y table_exists_action=append tables=justindev.JUSTIN_a
Import: Release 11.2.0.1.0 - Production on Wed Dec 29 14:17:14 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYS_IMPORT_TABLE_01" successfully loaded/unloaded
Starting "SYS_IMPORT_TABLE_01": justin/******** directory=pump remap_schema=justindev:justin dumpfile=full_justindev_1228.dmp parallel=4 nologfile=y table_exists_action=append tables=justindev.JUSTIN_a
Processing object type SCHEMA_EXPORT/TABLE/TABLE
ORA-39152: Table "JUSTIN_a" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
ORA-31693: Table data object "JUSTIN_a" failed to load/unload and is being skipped due to error:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Job "SYS_IMPORT_TABLE_01" completed with 2 error(s) at 14:17:19
Google一大堆,有建議將parallel改為1的,嘗試一下即可成功
[oracle@rac03 admin]$ impdp justin/justin directory=pump remap_schema=justindev:justin remap_tablespace=devdb1_01:justin_data,justin:justin_data,justin_index:justin_index dumpfile=full_justindev_1228.dmp parallel=1 nologfile=y table_exists_action=append tables=justindev.JUSTIN_a
Import: Release 11.2.0.1.0 - Production on Wed Dec 29 14:31:26 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYS_IMPORT_TABLE_01" successfully loaded/unloaded
Starting "SYS_IMPORT_TABLE_01": justin/******** directory=pump remap_schema=justindev:justin remap_tablespace=devdb1_01:justin_data,justin:justin_data,justin_index:justin_index dumpfile=full_justindev_1228.dmp parallel=1 nologfile=y table_exists_action=append tables=justindev.JUSTIN_a
Processing object type SCHEMA_EXPORT/TABLE/TABLE
ORA-39152: Table "JUSTIN_a" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "JUSTIN_a" 854.1 MB 6185955 rows
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Job "SYS_IMPORT_TABLE_01" completed with 1 error(s) at 14:32:21
至此,所有import工作均已結束,檢視錶dba_datapump_jobs
SQL> select d.owner_name,d.job_name,d.operation,d.state from dba_datapump_jobs d;
OWNER_NAME JOB_NAME OPERATION STATE
------------------------------ ------------------------------ --------------------------------------------------------------------------------
justin SYS_IMPORT_SCHEMA_01 IMPORT NOT RUNNING
justin SYS_IMPORT_SCHEMA_03 IMPORT NOT RUNNING
justin SYS_EXPORT_SCHEMA_01 EXPORT NOT RUNNING
嘗試手工kill這幾個job
[oracle@rac03 admin]$ impdp justin/justin attach=SYS_IMPORT_SCHEMA_01
Import: Release 11.2.0.1.0 - Production on Wed Dec 29 14:55:52 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Job: SYS_IMPORT_SCHEMA_01
Owner: justin
Operation: IMPORT
Creator Privs: TRUE
GUID: 986F775165E56B74E040007F010065A1
Start Time: Wednesday, 29 December, 2010 14:55:54
Mode: SCHEMA
Instance: yhddb1
Max Parallelism: 1
EXPORT Job Parameters:
IMPORT Job Parameters:
Parameter Name Parameter Value:
CLIENT_COMMAND justin/******** parfile=impdp.par
State: IDLING
Bytes Processed: 0
Current Parallelism: 1
Job Error Count: 0
Worker 1 Status:
Process Name: DW00
State: UNDEFINED
Object Schema: justin
Object Name: JUSTIN_b
Object Type: SCHEMA_EXPORT/TABLE/TABLE_DATA
Completed Objects: 1
Total Objects: 1,281
Worker Parallelism: 1
Import> status
Job: SYS_IMPORT_SCHEMA_01
Operation: IMPORT
Mode: SCHEMA
State: IDLING
Bytes Processed: 0
Current Parallelism: 1
Job Error Count: 0
Worker 1 Status:
Process Name: DW00
State: UNDEFINED
Object Schema: justin
Object Name: JUSTIN_b
Object Type: SCHEMA_EXPORT/TABLE/TABLE_DATA
Completed Objects: 1
Total Objects: 1,281
Worker Parallelism: 1
Import> kill_job
Are you sure you wish to stop this job ([yes]/no): yes
該job被成功kill
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15480802/viewspace-688841/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- impdp導致主鍵索引的變化索引
- 動態建立 @ViewChild 導致執行時錯誤的原因分析View
- Lombok 的@ToString導致的Maven編譯錯誤LombokMaven編譯
- 升級Xcode10導致的編譯錯誤XCode編譯
- 12.2.0.1bug導致的Failed to register in OCRLOCAL group.錯誤AI
- ORA-04031錯誤導致當機案例分析
- PostgreSQL DBA(29) - Backup&Recovery#2(日期格式導致的錯誤)SQL
- Session物件改變請求頭值導致的401錯誤Session物件
- 記錄一次homestead意外關閉導致的錯誤
- [譯] RxJS: 避免因濫用 switchMap 而導致錯誤JS
- Apache Solr錯誤預設配置導致的RCE(CVE-2019-12409)ApacheSolr
- laravel Route RESTful 因路由先後順序導致的解析錯誤LaravelREST路由
- smt加工這些失誤會導致smt加工出錯
- 【Oracle】表空間誤刪除導致startup啟動時提示ORA-01110和ORA-01157錯誤Oracle
- impdp匯入報ORA-00001 ORA-04088錯誤
- 解決 PBootCMS 中因資料庫名稱錯誤導致的“執行 SQL 發生錯誤!錯誤:no such table: ay_config”問題boot資料庫SQL
- 什麼會導致HTTP代理出現400錯誤請求HTTP
- 什麼會導致HTTP出現429請求過多錯誤?HTTP
- 又見想當然導致的誤譯
- 因為 int32 溢位導致的 peewee.IntegrityError 錯誤事故記錄Error
- 一次錯誤使用 go-cache 導致出現的線上問題Go
- 新增ijkplayer-java 導致的報錯Java
- java由於越界導致的報錯Java
- sql最佳化-錯誤強制型別轉換導致索引失效SQL型別索引
- ntp導致的時鐘回撥
- php輸出json資料,導致前端js判斷錯誤的分析及解決PHPJSON前端
- html的開始與結束標籤巢狀錯誤會導致哪些問題?HTML巢狀
- 事務未完成導致關閉物件審計時出現[-6407]:Lock timeout.錯誤的處理記錄物件
- 蘋果iOS 11.3/11.4曝bug:“黑點錯誤”導致裝置崩潰蘋果iOS
- Spring Redis開啟事務支援錯誤用法導致服務不可用SpringRedis
- Linux 時間錯誤的修正Linux
- win10系統提示dcom遇到錯誤1068導致當機的解決步驟Win10
- 記錄一個由於倉庫層錯誤導致軟刪除失效的問題
- 記一次 hosts 檔案配置錯誤導致應用卡頓的奇葩問題
- 如何解決非同步介面請求快慢不均導致的資料錯誤問題? - DevUI非同步devUI
- 如何使用 jMeter Parallel Controller - 並行控制器以及一些常犯的錯誤JMeterParallelController並行
- git合併丟失程式碼問題分析與解決(錯誤操作導致)Git
- MySQL 網路導致的複製報錯案例MySql
- 【故障處理】如何避免在執行impdp後出現ORA-00001錯誤