導(dǎo)入數(shù)據(jù)庫
#imp 用戶名/密碼@SID file=數(shù)據(jù)庫文件路徑 full=y
例如:imp oa_ncsoa/password@orcl_192.168.2.62 file=F:\nc.dmp full=y
exp 數(shù)據(jù)庫帳號(hào)/密碼@sid_IP file=e:\database\XXX.dmp
imp 數(shù)據(jù)庫帳號(hào)/密碼@sid_ip file=e:\database\XXX.dmp fromuser=用戶
本機(jī)數(shù)據(jù)庫導(dǎo)入導(dǎo)出表
導(dǎo)出:
exp cltest/password@cl-PC:1521/orcl file=d:\account.dmp tables=(account)
導(dǎo)入
imp cltest/password@localhost/orcl file=文件存放位置 tables=(account)
注:tables=后面的表要用括號(hào)且不能有;如果有;會(huì)提示
導(dǎo)出庫
exp cltest/password@cl-PC:1521/orcl file=d:\d1.dmp
公司232上導(dǎo)入表(比如辦公廳)
imp oa_bgt_0824/password@192.168.2.232:1521/orcl file=文件位置(可直接拖進(jìn)來) tables=t_oa_infopublish_template不用括號(hào),待驗(yàn)證是不是linux環(huán)境的原因