從oracle 12c 備份(expdp)出來的包,還原到11g里,想想都知道會(huì)有兼容性問題。
果不其然,報(bào)錯(cuò)了:
ORA-39142: 版本號 4.1 (在轉(zhuǎn)儲(chǔ)文件 “叉叉叉.expdp” 中) 不 兼容
之類
后來才知道,在12C中備份出來時(shí),應(yīng)指定版本信息,例如我要導(dǎo)進(jìn)11g的庫(具體版本為11.1.0.6.0,打開sqlplus就能看到),則version=11.1.0.6.0
語句:
在12C備份
<code class="hljs livecodeserver">expdp system/password@SID12c directory=dbbak dumpfile=20160321.expdp logfile=20160321.log schemas=leftfist version=11.1.0.6.0</code>
在11g中還原
<code class="hljs livecodeserver"><code class="hljs livecodeserver">impdp sys/password@SID11g directory=dbbak dumpfile=20160321.expdp logfile=20160321.log schemas=leftfist table_exists_action=replace</code></code>
當(dāng)然這里面忽略了創(chuàng)建備份文件存放目錄dbbak,創(chuàng)建表空間、用戶等細(xì)節(jié)。后續(xù)有時(shí)間會(huì)持續(xù)給大家?guī)硐嚓P(guān)知識(shí)介紹,希望本文給大家介紹的Oracle12c的數(shù)據(jù)庫向11g導(dǎo)進(jìn)的方法對大家有所幫助!



















