Oracle匯入匯出方法

2021-04-02 02:10:25 字數 1071 閱讀 6491

匯出表:

exp scott/tiger@mycon tables=(dept,emp) file=tab1.dmp

匯出使用者:

exp system/manager@mycon owner=scott file=usr1.dmp

匯出資料庫:

1.完全匯出

exp system/manager@mycon full=y inctype=complete    file=full1.dmp

2.增量匯出

exp system/manager@mycon full=y inctype=incremental file=inc1.dmp

3.累積匯出

exp system/manager@mycon full=y inctype=cumulative file=cum1.dmp

imp example:

匯入表:

imp system/manager@mycon file=c:/tab1.dmp tables=(dept,emp) touser=scott

匯入使用者:

imp system/manager@mycon file=usr1.dmp fromuser=scott touser=scott

匯入資料庫:

1.全庫匯入

imp system/manager@mycon file=full1.dmp full=y

2.增量匯入

1)匯入資料庫最新資訊

imp system/manager@mycon inctype=system full=y file=inc7.dmp

2)匯入最近完全匯出檔案

imp system/manager@mycon inctype=restore full=y file=full1.dmp

3)匯入所有累積匯出檔案

imp system/manager@mycon inctype=restore full=y file=cum1.dmp

4)匯入最近一次增量匯出的檔案

imp system/manager@mycon inctype=restore full=y file=inc1.dmp

Oracle匯入匯出

最簡單 exp duser duser remote localinstancename owner duser file file path dmp imp duser duser remote localinstancename file file path dmp 詳細出處參考 win10下o...

oracle匯出,匯入

匯出,在dos下執行 1.exp username userpassword databasename 可以是資料庫也可是遠端的,如username userpassword caac135 2.enter array fetch buffer size 4096 回車 3.export file ...

oracle匯入匯出

sqlplus system system egov create directory dump dir as d dbback exit expdp system system egov directory dump dir dumpfile urbanyw.dmp schemas urbanyw...

oracle 匯入匯出

oracle下匯出某使用者所有表的方法 scott tiger是使用者名稱和密碼,orcl是匯出的例項名 按使用者方式匯出資料 owner當中寫的是使用者名稱 exp scott tiger orcl file scott back owner scott 按表方式匯出資料 talbes當中寫的是全...

oracle 匯出匯入

sql是sql語句形式的 dmp是資料檔案 如果你表中的資料包含大欄位 用sql是導不出資料的 另外想建表的話不要用匯出資料的檔案來建 可以用 export user object 的檔案來建立 system預設 manager sys預設 change on install 使用sql plus登...