SQL> conn / as sysdba
已连接。
SQL> create directory mydump as 'd:\oracle\mydump';
SQL> Grant read,write on directory mydump to test;
授权成功。
创建目录d:\oracle\mydump。
C:\Users\David>expdp test/test directory=mydump dumpfile=test.dmp logfile=test.l
og tables=t1
Export: Release 11.2.0.1.0 - Production on 星期三7月16 22:52:58 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Produc
tion
With the Partitioning, OLAP, Data Mining and Real Application Testing options
启动"TEST"."SYS_EXPORT_TABLE_01": test/******** directory=mydump dumpfile=test
.dmp logfile=test.log tables=t1
正在使用BLOCKS 方法进行估计...
处理对象类型TABLE_EXPORT/TABLE/TABLE_DATA
使用BLOCKS 方法的总估计: 64 KB
处理对象类型TABLE_EXPORT/TABLE/TABLE
处理对象类型TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . 导出了"TEST"."T1" 5.507 KB 5 行
已成功加载/卸载了主表"TEST"."SYS_EXPORT_TABLE_01"
****************************************************************************** TEST.SYS_EXPORT_TABLE_01 的转储文件集为:
D:\ORACLE\MYDUMP\TEST.DMP
作业"TEST"."SYS_EXPORT_TABLE_01" 已于22:53:09 成功完成
需要将原表删除。
C:\Users\David>impdp test/test directory=mydump dumpfile=test.dmp tables=t1
Import: Release 11.2.0.1.0 - Production on 星期三7月16 23:00:28 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Produc