文章詳情頁
Oracle數(shù)據(jù)庫不同版本間用exp來導(dǎo)數(shù)據(jù)
瀏覽:120日期:2023-11-26 12:29:14
公司內(nèi)的一個(gè)項(xiàng)目系統(tǒng)的數(shù)據(jù)庫從Oracle 8i 升級(jí)到 9i。 機(jī)器t1 安裝 Oracle 8.16 機(jī)器t2 安裝 Oracle 8.17 機(jī)器t3 安裝 Oracle 9i 現(xiàn)在為了將t1數(shù)據(jù)庫中的某一個(gè)用戶的數(shù)據(jù)導(dǎo)入到t3的9i中去, 在t3機(jī)器執(zhí)行:E:>eXP system/manager@t1owner=wlBTst file=c:emp0805wlbtst.dmp log = c:emp0805wlbtst.log compress=n Export: Release 9.0.1.1.1 - ProdUCtion on 星期二8月 5 13:47:08 2003 (c) Copyright 2001 Oracle Corporation. All rights reserved. 連接到: Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production With the Partitioning option JServer Release 8.1.6.0.0 - Production EXP-00056: 碰到 ORACLE 錯(cuò)誤 942 ORA-00942: 表或視圖不存在 EXP-00000: 導(dǎo)出終止失敗 E:> 所以只有在t1或t2的機(jī)器上執(zhí)行exp,然后再用t3的imp將數(shù)據(jù)導(dǎo)入t3的9i庫中, 當(dāng)時(shí)我感到很納悶,為什么不能用9i中的exp去把8i的數(shù)據(jù)導(dǎo)出來呢? 以下介紹兩個(gè)規(guī)則: 規(guī)則一:從Oracle 低版本的Export數(shù)據(jù)可以Import到Oracle高版本中,但限于Oracle的相鄰版本,如從Oracle 7 到 Oracle 8。對(duì)于兩個(gè)不相鄰版本間進(jìn)行轉(zhuǎn)換,如從Oracle 6 到 Oracle 8,則應(yīng)先將數(shù)據(jù)輸入到中間版本—Oracle 7,再從中間數(shù)據(jù)庫轉(zhuǎn)入更高版本。 規(guī)則二:Oracle的Export/Import工具只能連接到擁有更高或者一樣的Export/Import版本的數(shù)據(jù)庫。如Oracle 8.0.5的Export/Import(版本8.0.5.0.0)可連接到Oracle 8.1.6數(shù)據(jù)庫(版本8.1.6.0.0);高版本的Export導(dǎo)出來的轉(zhuǎn)儲(chǔ)文件,低版本的Import讀不了;低版本的Export導(dǎo)出來的轉(zhuǎn)儲(chǔ)文件,高版本的Import可以進(jìn)行讀取。
標(biāo)簽:
Oracle
數(shù)據(jù)庫
排行榜
