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)

 

posted on 2014-05-06 22:22  it_code  阅读(826)  评论(0编辑  收藏  举报