Oracle11g 數(shù)據(jù)導(dǎo)入到oracle10g 中:
1.在oracle11g 服務(wù)器命令行中用expdp 導(dǎo)出數(shù)據(jù)
expdp ts/ts@orcl directory=expdp_dir dumpfile=tianshan.dmp logfile=tianshan.log version=10.2.0.1.0 (schemas=ccense)
2.在oracle10g 服務(wù)器DOS 命令行中用IMPDP 導(dǎo)入數(shù)據(jù):
把oracle11g 的備份文件放到oracl10g 服務(wù)器的impdp_dir 目錄中,并創(chuàng)建好相應(yīng)的用戶和表空間,然后執(zhí)行下面的命令:
impdp ts/ts@orcl directory=impdp_dir dumpfile=tianshan.dmp logfile=tianshan.log version=10.2.0.1.0 (schemas=ccense)
Oracle 11g數(shù)據(jù)導(dǎo)入到10g
一、在11g服務(wù)器上,使用expdp命令備份數(shù)據(jù)
11g 導(dǎo)出語(yǔ)句:EXPDP USERID='facial/facial@orcl as sysdba' schemas=facialdirectory=DATA_PUMP_DIR dumpfile=test.dmp logfile=test.log version=10.2.0.1.0
二、在10g服務(wù)器上,使用impdp命令恢復(fù)數(shù)據(jù)
準(zhǔn)備工作:1.建庫(kù)2.建表空間3.建用戶并授權(quán)4.將test.dmp拷貝到10g的dpdump目錄下
--創(chuàng)建表空間
create tablespace TS_Facial datafile 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\Facial.DBF' size 500M autoextend on next 50M;
--創(chuàng)建用戶
create user Facial identified by Facial default tablespace TS_Facial;
--授權(quán)給用戶
grant connect,resource,dba to Facial;
test.dmp 和 test.log 放在E:\oracle\product\10.2.0\admin\orcl\dpdump目錄下
10g 導(dǎo)入語(yǔ)句:IMPDP USERID='facial/facial@orcl as sysdba' schemas=facialdirectory=DATA_PUMP_DIR dumpfile=test.dmp logfile=test.log version=10.2.0.1.0