$ expdp exam/abc123 TABLES=test DUMPFILE=dpump_dir1:table.dmp NOLOGFILE=y
Export: Release 10.2.0.1.0 - Production on Saturday, 11 July, 2009 8:47:48
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Starting "EXAM"."SYS_EXPORT_TABLE_01": exam/******** TABLES=test DUMPFILE=dpump_dir1:table.dmp NOLOGFILE=y
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "EXAM"."TEST" 5.242 KB 2 rows
Master table "EXAM"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for EXAM.SYS_EXPORT_TABLE_01 is:
/home/oracle/dpump/table.dmp
Job "EXAM"."SYS_EXPORT_TABLE_01" successfully completed at 08:48:31
SQL> select * from exam.test;
ID NAME
---------- ----------
4 jkl
5 mno
SQL> drop table exam.test;
Table dropped.
SQL> purge recyclebin;
Recyclebin purged.
SQL> select * from exam.test;
select * from exam.test
*
ERROR at line 1:
ORA-00942: table or view does not exist
impdpコマンドの実行
複数テーブルはカンマで区切る
$ impdp exam/north123 directory=dpump_dir1 DUMPFILE=table.dmp TABLES=test
Import: Release 10.2.0.1.0 - Production on Saturday, 11 July, 2009 9:18:33
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Master table "EXAM"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
Starting "EXAM"."SYS_IMPORT_TABLE_01": exam/******** directory=dpump_dir1 DUMPFILE=table.dmp TABLES=test
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
. . imported "EXAM"."TEST" 5.242 KB 2 rows
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Job "EXAM"."SYS_IMPORT_TABLE_01" successfully completed at 09:18:50
データの確認
SQL> select * from exam.test;
ID NAME
---------- ----------
4 jkl
5 mno