從oracle 12c 備份(expdp)出來(lái)的包,還原到11g里,想想都知道會(huì)有兼容性問(wèn)題。
果不其然,報(bào)錯(cuò)了:
ORA-39142: 版本號(hào) 4.1 (在轉(zhuǎn)儲(chǔ)文件 “叉叉叉.expdp” 中) 不 兼容
之類(lèi)
后來(lái)才知道,在12C中備份出來(lái)時(shí),應(yīng)指定版本信息,例如我要導(dǎo)進(jìn)11g的庫(kù)(具體版本為11.1.0.6.0,打開(kāi)sqlplus就能看到),則version=11.1.0.6.0
語(yǔ)句:
在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)建表空間、用戶(hù)等細(xì)節(jié)。后續(xù)有時(shí)間會(huì)持續(xù)給大家?guī)?lái)相關(guān)知識(shí)介紹,希望本文給大家介紹的Oracle12c的數(shù)據(jù)庫(kù)向11g導(dǎo)進(jìn)的方法對(duì)大家有所幫助!
您可能感興趣的文章:- oracle12c安裝報(bào)錯(cuò):PRVF-0002的解決方法
- Linux下安裝Oracle(CentOS-Oracle 12c)的方法
- Oracle 12c安裝方法及一些使用問(wèn)題
- oracle 12c安裝教程(window)
- Oracle 12c新特性之如何檢測(cè)有用的多列統(tǒng)計(jì)信息詳解