久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

Oracle中exp和imp怎么用

148次閱讀
沒有評論

共計(jì) 1527 個(gè)字符,預(yù)計(jì)需要花費(fèi) 4 分鐘才能閱讀完成。

這篇文章主要介紹 Oracle 中 exp 和 imp 怎么用,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!

Oracle 數(shù)據(jù)庫導(dǎo)入導(dǎo)出方法: 
    數(shù)據(jù)導(dǎo)出:
  1. 將數(shù)據(jù)庫 TEST 完全導(dǎo)出,用戶名 system 密碼 manager 導(dǎo)出到 D:\daochu.dmp 中

  exp system/manager@TEST file=d:\daochu.dmp full=y
  2. 將數(shù)據(jù)庫中 system 用戶與 sys 用戶的表導(dǎo)出
  exp system/manager@TEST file=d:\daochu.dmp owner=system,sys
  3. 將數(shù)據(jù)庫中的表 inner_notify、notify_staff_relat 導(dǎo)出
  exp aichannel/aichannel@TESTDB2 file= d:\data\newsmgnt.dmp tables=(inner_notify,notify_staff_relat)
  4. 將數(shù)據(jù)庫中的表 table1 中的字段 filed1 以 00 打頭的數(shù)據(jù)導(dǎo)出
  exp system/manager@TEST file=d:\daochu.dmp tables=(table1)query=\ where filed1 like 00% \
  上面是常用的導(dǎo)出,對于壓縮,既用 winzip 把 dmp 文件可以很好的壓縮。
  也可以在上面命令后面加上 compress= y 來實(shí)現(xiàn)。

  數(shù)據(jù)的導(dǎo)入:
  1. 將 D:\daochu.dmp 中的數(shù)據(jù)導(dǎo)入 TEST 數(shù)據(jù)庫中。
  imp system/manager@TEST file=d:\daochu.dmp
  imp aichannel/aichannel@HUST full=y file= d:\data\newsmgnt.dmp ignore=y
  上面可能有點(diǎn)問題,因?yàn)橛械谋硪呀?jīng)存在,然后它就報(bào)錯(cuò),對該表就不進(jìn)行導(dǎo)入。
  在后面加上 ignore=y 就可以了。

  2. 將 d:\daochu.dmp 中的表 table1 導(dǎo)入
  imp system/manager@TEST file=d:\daochu.dmp tables=(table1)
  2.plsql:
  數(shù)據(jù)導(dǎo)出:
  TOOLS-Export user objects(用戶對象)
  TOOLS-Export tables(表)
  數(shù)據(jù)的導(dǎo)入:
  TOOLS-Import tables
  Oracle Import(表)SQL Inserts(用戶對象)
  也可以將用戶對象的語句拷貝出來,粘貼到 Command Window 這樣的好處是可以看到執(zhí)行的過程。

EXP-00091: Exporting questionable statistics.
SQL select * from v$nls_parameters where parameter= NLS_CHARACTERSET

PARAMETER  VALUE
——————————- —————————————————————————————————
NLS_CHARACTERSET  ZHS16GBK

SQL host
lpding- export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
lpding- exp scott/scott file=/oracle/exp/scott_emp.dmp log scott_emp.log tables=emp

以上是“Oracle 中 exp 和 imp 怎么用”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關(guān)知識,歡迎關(guān)注丸趣 TV 行業(yè)資訊頻道!

正文完
 
丸趣
版權(quán)聲明:本站原創(chuàng)文章,由 丸趣 2023-07-24發(fā)表,共計(jì)1527字。
轉(zhuǎn)載說明:除特殊說明外本站除技術(shù)相關(guān)以外文章皆由網(wǎng)絡(luò)搜集發(fā)布,轉(zhuǎn)載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 汝阳县| 武城县| 广南县| 灵武市| 博客| 沁阳市| 招远市| 漠河县| 潮安县| 循化| 德昌县| 西安市| 堆龙德庆县| 拉萨市| 鞍山市| 四平市| 新安县| 遂平县| 赣榆县| 邯郸县| 新竹市| 湖南省| 莲花县| 黎川县| 彭水| 东辽县| 保靖县| 沭阳县| 锡林浩特市| 马鞍山市| 高阳县| 华容县| 包头市| 中卫市| 开平市| 宣化县| 九江县| 泰宁县| 通许县| 瑞金市| 六安市|