3 回答

TA貢獻(xiàn)1772條經(jīng)驗(yàn) 獲得超5個(gè)贊
通過exp函數(shù)導(dǎo)出dmp文件:
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ù)庫中的表table1 、table2導(dǎo)出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)
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%'\"

TA貢獻(xiàn)1895條經(jīng)驗(yàn) 獲得超7個(gè)贊
1. 文件名用雙引號(hào)"引起來
2. 如果有換行,每行最后要有 \分隔
3. 建議不要換行
4. 用exp help=y,查看exp命令幫助,如果默認(rèn)就是你條件的值,可以不寫,比如grants=yes(Y)
這樣可以簡化些命令

TA貢獻(xiàn)1943條經(jīng)驗(yàn) 獲得超7個(gè)贊
file = d:\databuk\orcl%CURRENT_DATE%.dmp這句話有問題,file代表存放路徑,你自己把數(shù)據(jù)存放在以.dmp為后綴名的文件中,能得到.log的文件才怪
- 3 回答
- 0 關(guān)注
- 122 瀏覽
添加回答
舉報(bào)