老「EXP」工具確實提供了很多選擇,可以讓你的表的備份和只觸發(不序列或任何其他類型的對象)。
請使用高級'expdp'(數據泵)以獲得更好的選擇。您可以使用'INCLUDE或EXCLUDE'對象切換來實現您的目標。
INCLUDE and EXCLUDE
The INCLUDE and EXCLUDE parameters can be used to limit the export/import to specific objects. When the INCLUDE parameter is used, only those objects specified by it will be included in the export/import. When the EXCLUDE parameter is used, all objects except those specified by it will be included in the export/import. The two parameters are mutually exclusive, so use the parameter that requires the least entries to give you the result you require. The basic syntax for both parameters is the same.
INCLUDE=object_type[:name_clause] [, ...]
EXCLUDE=object_type[:name_clause] [, ...]
The following code shows how they can be used as command line parameters.
expdp scott/[email protected] schemas=SCOTT include=TABLE:"IN ('EMP', 'DEPT')" directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log
expdp scott/[email protected] schemas=SCOTT exclude=TABLE:"= 'BONUS'" directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log
請檢查出更多的細節......
http://www.oracle-base.com/articles/10g/oracle-data-pump-10g.php#IncludeExclude