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