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