ORACLE 11g匯入9i dump的問題及解決
因為系統遷移,需要將一部分的9i的資料匯入11g的庫裡,
目標庫是11.2.0.3.0 64位的環境。
匯入dump的時候,有一個比較大的分割槽表,需要用匯入分割槽的方式,就寫了如下的命令。但是奇怪的是過了一會,丟擲來一個imp的錯誤就完事了。
-bash-4.1$ imp n1/n1@testdb tables=TEST_DB:TEST_DB_PAR_P1 file=TEST_DBP1.dmp ignore=Y statistics=none grants=n indexes=n buffer=9102000 log=imp_log_TEST_DB_PAR_P1_test
Import: Release 11.2.0.3.0 - Production on Wed Mar 19 17:05:33 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Data Mining and Real Application Testing options
Export file created by EXPORT:V09.02.00 via direct path
Warning: the objects were exported by SYSTEM, not by you
import done in UTF8 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
export client uses ZHT16MSWIN950 character set (possible charset conversion)
. importing SYSTEM's objects into N1
IMP-00055: Warning: partition or subpartition "TEST_DB":"TEST_DB_PAR_P1" not found in export file
Import terminated successfully with warnings.
我以為我的表名和分割槽寫的有問題,檢查了一下,都在的。
為了繼續,然後嘗試直接按表匯入,但是還是導不進去,不過報錯資訊倒是不太一樣了。
-bash-4.1$ imp n1/n1@testdb tables=TEST_DB file=TEST_DBP1.dmp ignore=Y statistics=none grants=n indexes=n buffer=9102000 log=imp_log_TEST_DB_PAR_P1_test
Import: Release 11.2.0.3.0 - Production on Wed Mar 19 17:04:11 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Data Mining and Real Application Testing options
Export file created by EXPORT:V09.02.00 via direct path
Warning: the objects were exported by SYSTEM, not by you
import done in UTF8 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
export client uses ZHT16MSWIN950 character set (possible charset conversion)
. importing SYSTEM's objects into N1
IMP-00033: Warning: Table "TEST_DB" not found in export file
Import terminated successfully with warnings.
開始懷疑是不是dump有問題了,確認了下checksum也是一樣的。
最後嘗試如下的方式,加了 fromuser ,touser選項,竟然可以了。
imp n1/n1@testdb tables=TEST_DB:TEST_DB_PAR_P1 fromuser=TEST_APPO touser=PSCNVDBO1 file=TEST_DBP1.dmp ignore=Y statistics=none grants=n indexes=n buffer=9102000 log=imp_log_TEST_DB_PAR_P1 &
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Data Mining and Real Application Testing options
Export file created by EXPORT:V09.02.00 via direct path
Warning: the objects were exported by SYSTEM, not by you
import done in UTF8 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
export client uses ZHT16MSWIN950 character set (possible charset conversion)
. importing TEST_APPO's objects into N1
. . importing partition "TEST_DB":"TEST_DB_PAR_P1" 29673834 rows imported
Import terminated successfully without warnings.
檢視metalink,也沒有發現類似的帖子。也算自己為ORACLE出了一點力吧。
目標庫是11.2.0.3.0 64位的環境。
匯入dump的時候,有一個比較大的分割槽表,需要用匯入分割槽的方式,就寫了如下的命令。但是奇怪的是過了一會,丟擲來一個imp的錯誤就完事了。
-bash-4.1$ imp n1/n1@testdb tables=TEST_DB:TEST_DB_PAR_P1 file=TEST_DBP1.dmp ignore=Y statistics=none grants=n indexes=n buffer=9102000 log=imp_log_TEST_DB_PAR_P1_test
Import: Release 11.2.0.3.0 - Production on Wed Mar 19 17:05:33 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Data Mining and Real Application Testing options
Export file created by EXPORT:V09.02.00 via direct path
Warning: the objects were exported by SYSTEM, not by you
import done in UTF8 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
export client uses ZHT16MSWIN950 character set (possible charset conversion)
. importing SYSTEM's objects into N1
IMP-00055: Warning: partition or subpartition "TEST_DB":"TEST_DB_PAR_P1" not found in export file
Import terminated successfully with warnings.
我以為我的表名和分割槽寫的有問題,檢查了一下,都在的。
為了繼續,然後嘗試直接按表匯入,但是還是導不進去,不過報錯資訊倒是不太一樣了。
-bash-4.1$ imp n1/n1@testdb tables=TEST_DB file=TEST_DBP1.dmp ignore=Y statistics=none grants=n indexes=n buffer=9102000 log=imp_log_TEST_DB_PAR_P1_test
Import: Release 11.2.0.3.0 - Production on Wed Mar 19 17:04:11 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Data Mining and Real Application Testing options
Export file created by EXPORT:V09.02.00 via direct path
Warning: the objects were exported by SYSTEM, not by you
import done in UTF8 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
export client uses ZHT16MSWIN950 character set (possible charset conversion)
. importing SYSTEM's objects into N1
IMP-00033: Warning: Table "TEST_DB" not found in export file
Import terminated successfully with warnings.
開始懷疑是不是dump有問題了,確認了下checksum也是一樣的。
最後嘗試如下的方式,加了 fromuser ,touser選項,竟然可以了。
imp n1/n1@testdb tables=TEST_DB:TEST_DB_PAR_P1 fromuser=TEST_APPO touser=PSCNVDBO1 file=TEST_DBP1.dmp ignore=Y statistics=none grants=n indexes=n buffer=9102000 log=imp_log_TEST_DB_PAR_P1 &
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Data Mining and Real Application Testing options
Export file created by EXPORT:V09.02.00 via direct path
Warning: the objects were exported by SYSTEM, not by you
import done in UTF8 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
export client uses ZHT16MSWIN950 character set (possible charset conversion)
. importing TEST_APPO's objects into N1
. . importing partition "TEST_DB":"TEST_DB_PAR_P1" 29673834 rows imported
Import terminated successfully without warnings.
檢視metalink,也沒有發現類似的帖子。也算自己為ORACLE出了一點力吧。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23718752/viewspace-1125296/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 曲折的dump匯入及問題分析
- dump 解決問題
- 解決Oracle 11g空表不能exp匯出的問題Oracle
- 解決Mysql匯入亂碼問題MySql
- excel檔案內容匯入資料庫的問題及解決Excel資料庫
- 奇怪的登入問題及解決
- Oracle使用dump匯入資料Oracle
- oracle技術_使用exp/imp 匯入11g資料到9iOracle
- 【oracle 資料匯入匯出字元問題】Oracle字元
- 關於Oracle 9i字符集問題的解決辦法FCOracle
- oracle壞塊問題及解決辦法Oracle
- linux kernel引發的oracle問題及解決LinuxOracle
- Oracle 常見的錯誤問題及解決方法Oracle
- mysql 匯入問題:Unknown command '\'' 解決辦法MySql
- 解決Excel資料匯入sqlite中的中文亂碼問題ExcelSQLite
- oracle 10g的dmp如何匯入9iOracle 10g
- 11g dmp 匯入10g 解決方案
- Oracle 錯誤總結及問題解決 ORAOracle
- oracle 鎖問題的解決Oracle
- Oracle 11g無法匯出空表的解決方案Oracle
- 關於Oracle 9i匯入/匯出效果的測試報告Oracle測試報告
- 解決用PLSQL Developer連線VMWare中的Oracle 11g問題SQLDeveloperOracle
- 解決imp匯入時,使用源DB中表空間名的問題
- ORACLE匯入遇到ORACLE錯誤959解決方法Oracle
- 土製Excel匯入匯出及相關問題探討Excel
- 【DataBase】:使用Oracle遇到的幾個問題及解決辦法DatabaseOracle
- Oracle學習遇到的問題收集及解決 - 不斷更新Oracle
- oracle壞塊問題的解決Oracle
- Oracle 11g 使用exp命令匯出表不全的解決方案Oracle
- 常見問題及解決
- 解決:ORACLE 11G使用exp無法導空出表問題Oracle
- Confluence6匯入SSL證書和問題解決
- html匯入導航欄本地檔案解決跨域問題HTML跨域
- MySQL匯入資料亂碼、出錯等問題的解決辦法MySql
- 解決MYSQL資料從高版本匯入低版本的問題(轉)MySql
- 解決SBT下載慢,dump project structure from sbt問題ProjectStruct
- ORA-31640: unable to open dump file 問題解決
- oracle 12c 匯入11gOracle