oracle的exp、imp命令
1、EXP
1 a>完全模式 full=y 2 3 EXP USER/PASSWORD@DB (AS ROLE) BUFFER=64000 FILE=C:\FULL.DMP FULL=Y 4 5 b>用户模式 owner=user 6 7 EXP USER/PASSWORD@DB BUFFER=64000 FILE=C:\USER.DMP OWNER=USER 8 9 c>表模式 tables=tab_* 10 11 EXP USER/PASSWORD@DB BUFFER=64000 FILE=C:\TAB_*.DMP TABLES=(TAB_1, TAB_2) 12 13 对tab_1导出加条件 14 15 EXP USER/PASSWORD@DB BUFFER=64000 FILE=C:\TAB_*.DMP TABLES=(TAB_1) QUERY=\"WHERE NAME LIKE 'JION%'\"
2、IMP
1 a>完全模式 full=y 2 3 IMP USER/PASSWORD@DB (AS ROLE) BUFFER=64000 FILE=C:\FULL.DMP FULL=Y 4 5 b>用户模式 owner=user 6 7 IMP USER/PASSWORD@DB BUFFER=64000 FILE=C:\USER.DMP OWNER=USER 8 9 c>表模式 tables=tab_* 10 11 IMP USER/PASSWORD@DB BUFFER=64000 FILE=C:\TAB_*.DMP TABLES=(TAB_1, TAB_2)