如何使用 exp 及 imp 來匯入/匯出資料
 
以下介紹常用指令
 
exp
1. 匯出整個DB資料庫至 C:\test.dmp
exp account/password@DB file=C:\test.dmp full=y
2. 匯出DB資料庫中 tableA 與 tableB 至 C:\test.dmp
exp account/password@DB file=C:\test.dmp tables=(tableA, tableB)
 
imp
1. 自 C:\test.dmp 匯入整個DB資料庫 ( ignore=y 表示若 Table 已存在則忽略,簡單的說就是 Table 若存在還是會匯入資料,不會中斷 )
imp account/password@DB file=C:\test.dmp ignore=y
2. 自 C:\test.dmp 匯入 tableA
imp account/password@DB file=C:\test.dmp tables=(tableA)
 
account 帳號
password 密碼
DB 資料庫名稱
文章標籤
全站熱搜
創作者介紹
創作者 流風羽 的頭像
流風羽

流風羽的部落格

流風羽 發表在 痞客邦 留言(1) 人氣(13,448)