日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

oracle导出导入emp,oracle导入导出操作

發(fā)布時間:2025/3/15 编程问答 45 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle导出导入emp,oracle导入导出操作 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

PS 在11g中執(zhí)行導入導出時有的選項可能不需要加()!

PS2,導入導出命令請在shell下運行非sql/plus環(huán)境!

***數(shù)據(jù)庫邏輯備份與恢復**

導出:

導出具體分為:導出表,導出方案,導出數(shù)據(jù)庫三種方式.

導出使用exp命令完成的:

userid:用于指定執(zhí)行導出操作的用戶名,口令,連接字符串

tables:用于指定執(zhí)行導出操作的表

owner:用于指定執(zhí)行導出操作的[方案].

full=y;用于指定執(zhí)行導出操作的[數(shù)據(jù)庫].

inctype:用于指定執(zhí)行導出操作的[增量類型]

rows:用于指定導出操作[是否要導出表中的數(shù)據(jù)]

file:用于指定導出[文件名]

=============== a.導出表:

(在導入和導出的時候,要到oracle目錄的bin下C:\Java\oracle\product\10.2.0\db_1\bin)

(1)導出自己的表

exp userid=scott/yuyang@orcl talbes=(emp) file=d:\1.dmp;

(2)導出其他方案的表(需要dba權限或是exp_full_database的權限)

exp userid=scott/yuyang@orcl talbes=(scott.emp) file=d:\1.dmp;

====================b.導出表

(3)導出表單的結構

exp userid=scott/yuyang@orcl tables=(emp) file=d:\1.dmp rows=n;

(4)使用直接導出方式

exp userid=scott/yuyang@orcl talbes=(emp) file=d:\1.dmp direct=y

這種方式比默認導出速度要快,當數(shù)據(jù)量大時,可以考慮使用這樣的方法

這時候需要數(shù)據(jù)庫的字符串要與客戶端字符集完全一致.否則會報錯

c.導出數(shù)據(jù)庫

exp userid=system/yuyang@orcl full=y inctype=complete file=d:\x.dmp;

====================c.導出方案(還是在bin目錄下cmd)

(1)導出自己的方案

exp scott/yuyang@orcl owner=(emp) file=d:\1.dmp ;

(2)導出其他方案

exp userid=system/yuyang@orcl owner=(system,scott) file=d:\system.dmp ;

-----------------------------------導入數(shù)據(jù)-------------------------------

導入:

導入也分三種導入表,導入方案,導入數(shù)據(jù)庫

...userid,tables,file,full=y;inctype,rows

formuser:用于指定源用戶.

touser:用于指定目標用戶

ignore:如果表存在,則只導入數(shù)據(jù)

a.導入表

1.導入自己的表

imp userid=scott/yuyang@orcl tables=(emp) file=d:\x.dmp;

2.導入其他用戶的表(dba或imp_fulll_database)

imp userid=scott/yuyang@orcl table=(emp) file=d:\xx.dmp touser=scott

3.導入表的結構(導入表結構,不導入數(shù)據(jù))

imp userid=scott/yuyang table=(emp) file=d:\xx.dmp rows=n;

4.導入數(shù)據(jù)

如果是對象,(比如表)已經存在可以只導入表的數(shù)據(jù)

imp userid=soctt/yuyang@orcl tables=(emp) file=d:\xxx.dmp ignore=y;

b.導入方案

導入一個或多個方案,如果要導入其他方案,該球該用戶具有dba的權限,或是imp_full_database

(1)導入自身的方案

imp userid=scott/yuyang file=d:\xx.dmp;

(2)導入其他方案(要求該用戶具有dba的權限)

imp userid=system/yuyang file=d:\xx.dmp formuser=system touser=scott

c.導入數(shù)據(jù)庫

導入所有對象結構和數(shù)據(jù)

imp userid=system/yuyang full=y file=d:\xx.dmp;

總結

以上是生活随笔為你收集整理的oracle导出导入emp,oracle导入导出操作的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。