oracle可以使用exp/imp進(jìn)行邏輯導(dǎo)出和導(dǎo)入。
例:exp導(dǎo)出
exp username/password@database file=xxx/xxx/xx.dmp
imp導(dǎo)入
imp username/password@database file=xxx/xxx/xxx.dmp FULL=y
以上的例子是對(duì)整個(gè)數(shù)據(jù)庫(kù)進(jìn)行的導(dǎo)出導(dǎo)入,除了以數(shù)據(jù)庫(kù)外,還可以導(dǎo)出表,表空間。
注意在導(dǎo)入是如果遇到imp-00015提示following statement failed because the objiect already exits時(shí),只需對(duì)該信息后面的所存在的對(duì)象刪除,再次導(dǎo)入即可。
例:exp導(dǎo)出
exp username/password@database file=xxx/xxx/xx.dmp
imp導(dǎo)入
imp username/password@database file=xxx/xxx/xxx.dmp FULL=y
以上的例子是對(duì)整個(gè)數(shù)據(jù)庫(kù)進(jìn)行的導(dǎo)出導(dǎo)入,除了以數(shù)據(jù)庫(kù)外,還可以導(dǎo)出表,表空間。
注意在導(dǎo)入是如果遇到imp-00015提示following statement failed because the objiect already exits時(shí),只需對(duì)該信息后面的所存在的對(duì)象刪除,再次導(dǎo)入即可。