2
我想從一個Oracle轉儲導入特定的表,爲了避免任何父鍵找不到異常,我想按照一定的順序導入表。例如,如果表X依賴於表A和B,我想導入A和B第一:是從Oracle轉儲導入時相關的表的順序?
imp user/[email protected] tables=(A,B,X) rows=y ignore=Y
請問這個命令保證A和B X之前進口?
我想從一個Oracle轉儲導入特定的表,爲了避免任何父鍵找不到異常,我想按照一定的順序導入表。例如,如果表X依賴於表A和B,我想導入A和B第一:是從Oracle轉儲導入時相關的表的順序?
imp user/[email protected] tables=(A,B,X) rows=y ignore=Y
請問這個命令保證A和B X之前進口?
exp userid=ronr tables=COMM_SCHEDULE_DELIVERY,COMM_SCHEDULE_DETAIL,COMM_SCHEDULE_HEADER file=z.dmp
...
...
imp userid=imp fromuser=ronr touser=imp tables=COMM_SCHEDULE_HEADER,COMM_SCHEDULE_DETAIL,COMM_SCHEDULE_DELIVERY file=z.dmp
Import: Release 11.2.0.3.0 - Production on Tue Aug 7 16:53:34 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Tes
Export file created by EXPORT:V11.02.00 via conventional path
Warning: the objects were exported by RONR, not by you
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing RONR's objects into IMP
. . importing table "COMM_SCHEDULE_DELIVERY" 0 rows imported
. . importing table "COMM_SCHEDULE_DETAIL" 0 rows imported
. . importing table "COMM_SCHEDULE_HEADER" 0 rows imported
Import terminated successfully without warnings.
不,imp上指定的順序不能保證表導入的順序,而是按它們的導出順序完成。
感謝您的詳細解釋! – Wael 2012-08-08 10:26:08
這是一個恥辱,忽略進口訂單。我需要分別加載每個表,因爲我原先不關心出口訂單(( – gavenkoa 2018-02-05 13:52:28