扫描数据库
./dul
scan database;
exit;
bootstrap unloading
./dul
bootstrap;
exit;
bootstrap generate
./dul
bootstrap generate;
@dict.ddl
exit
导出数据
unload database --全库导出
unload user rock --按用户导出
unload table city --按表导出
DUL> unload user dark;
About to unload DARK's tables ...
. unloading table CITY 2 rows unloaded
DUL>
服务器本机imp导入数据
[oracle@node1 soft]$ imp dark/dark file=DARK_CITY.dmp full=y
Import: Release 11.2.0.4.0 - Production on Sun Dec 1 15:26:25 2013
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, OLAP, Data Mining and Real Application Testing options
Export file created by EXPORT:V07.00.07 via conventional path
Warning: the objects were exported by Bernard's DUL, not by you
. importing Bernard's DUL's objects into DARK
. importing Bernard's DUL's objects into DARK
. . importing table "CITY" 2 rows imported
Import terminated successfully without warnings.
验证数据
SQL> select * from city;
ID CITY
---------- --------------------
1 a
2 b
end/