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

歡迎訪問 生活随笔!

生活随笔

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

编程问答

oracle 备份导出,oracle 怎么备份或导入导出表

發布時間:2023/12/20 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle 备份导出,oracle 怎么备份或导入导出表 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

exp/imp

下面介紹的是導入導出的實例,向導入導出看實例基本上就可以完成,因為導入導出很簡單。

數據導出:

1 將數據庫TEST完全導出,用戶名system 密碼manager 導出到D:\daochu.dmp中

exp system/manager@TEST file=d:\daochu.dmp full=y

2 將數據庫中system用戶與sys用戶的表導出

exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)

3 將數據庫中的表table1 、table2導出

exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)

4 將數據庫中的表table1中的字段filed1以"00"打頭的數據導出

exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\" where filed1 like '00%'\"

上面是常用的導出,對于壓縮我不太在意,用winzip把dmp文件可以很好的壓縮。

不過在上面命令后面 加上 compress=y 就可以了

數據的導入

1 將D:\daochu.dmp 中的數據導入 TEST數據庫中。

imp system/manager@TEST file=d:\daochu.dmp

上面可能有點問題,因為有的表已經存在,然后它就報錯,對該表就不進行導入。

在后面加上 ignore=y 就可以了。

2 將d:\daochu.dmp中的表table1 導入

imp system/manager@TEST file=d:\daochu.dmp tables=(table1)

基本上上面的導入導出夠用了。

下面介紹的是導入導出的實例,向導入導出看實例基本上就可以完成,因為導入導出很簡單。

數據導出:

1 將數據庫TEST完全導出,用戶名system 密碼manager 導出到D:\daochu.dmp中

exp system/manager@TEST file=d:\daochu.dmp full=y

2 將數據庫中system用戶與sys用戶的表導出

exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)

3 將數據庫中的表table1 、table2導出

exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)

4 將數據庫中的表table1中的字段filed1以"00"打頭的數據導出

exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\" where filed1 like '00%'\"

上面是常用的導出,對于壓縮我不太在意,用winzip把dmp文件可以很好的壓縮。

不過在上面命令后面 加上 compress=y 就可以了

數據的導入

1 將D:\daochu.dmp 中的數據導入 TEST數據庫中。

imp system/manager@TEST file=d:\daochu.dmp

上面可能有點問題,因為有的表已經存在,然后它就報錯,對該表就不進行導入。

在后面加上 ignore=y 就可以了。

2 將d:\daochu.dmp中的表table1 導入

imp system/manager@TEST file=d:\daochu.dmp tables=(table1)

基本上上面的導入導出夠用了。

(導出服務器的請使用exp exps/exps123@10.7.1.23:1521/expsdb file=d:\daochu123.dmp owner=(exps))

不同用戶之間導入需添加? ?fromuser=fcs touser=fcsdb

總結

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

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