參考自
exp userid=user_name/passwd@orcl owner=user_name file=c:\user_name.dmp [rows=n]
eg:
exp userid=zlhis/his@orcl owner=zlhis file=c:\zlhis.dmp full=y
匯出屬於zlhis使用者的所有表資料
exp userid=zlhis/his@orcl owner=zlhis file=c:\zlhis.dmp rows=n log=d:\daochulog.txt
匯出表結構
exp zlhis/his@orcl rows=y indexes=y compress=n buffer=65536 feedback=100000 full=y file=d:\daochu.dmp log=d:\daochulog.txt owner=zlhis
匯出zlhis使用者下的所有表
exp parfile=c:/parfile.txt
c:/parfile.txt內容:
userid=zlhis/his@orcl
file=c:\zlhis.dmp
log=c:\zlhis.log
owner=zlhis
匯出資料,引數從c:/parfile.txt中讀取
parfile 引數檔案,裡面寫匯出引數,會自動讀取引數檔案進行匯出
table
imp test/test@orcl fromuser=test touser=test rows=y indexes=n commit=y buffer=65536 ignore=n file=exp.dmp log=imp.log
解釋:rows 匯入資料行,預設y
indexes 匯入索引,預設y
commit 提交陣列插入,預設n
ignore 忽略建立錯誤,預設n
buffer 資料緩衝區大小
eg:
imp zlhis/his@orcl fromuser=zlhis touser=zlhis rows=y buffer=65536 ignore=n file=c:\zlhis.dmp log=imp.log
Oracle(exp imp)匯入匯出
直接進入系統命令行執行即可。exp命令 1 exp username psw test file d test.dmp full y 2 exp username psw test file d test.dmp owner ly 3 exp username psw test file d tes...
oracle exp imp實現匯出匯入
一.說明 oracle 的exp imp命令用於實現對資料庫的匯出 匯入操作 exp命令用於把資料從遠端資料庫伺服器匯出至本地,生成dmp檔案 imp命令用於把本地的資料庫dmp檔案從本地匯入到遠端的oracle資料庫中。二.下面介紹的是匯入匯出的例項。資料匯出 sql view plain cop...
Oracle exp imp 資料匯入匯出
rem 按表名匯出資料 exp 使用者名稱 密碼 ip 資料庫名稱 tables 表名 file 表名.dmp log 表名.log compress n rem 按表名 查詢條件匯出資料 exp 使用者名稱 密碼 ip 資料庫名稱 tables 表名 file 表名.dmp log 表名.log ...