通过expdp和impdp将Oracle11g数据导入到Oracle10g中

Posted 沙耶

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了通过expdp和impdp将Oracle11g数据导入到Oracle10g中相关的知识,希望对你有一定的参考价值。

1 导出过程

1.1 查看目录:

select * from dba_directories;

1.2 将目录的操作权限赋值给指定的用户(不执行次步骤可能会出现权限问题):

grant read,write on directory EXPDP_DIR to username;

1.3 执行导出脚本:

expdp username/[email protected] directory=expdp_dir dumpfile=expdp11g_123101.dmp  logfile=expdp11g_123101.log  version=10.2.0.1.0 schemas=JCISAPP

2 导入过程

2.1 查看目录:

select * from dba_directories;

2.2 将通过上面1.1、1.2、1.3步骤导出的dmp拷贝到DATA_PUMP_DIR目录:

2.3 将目录的操作权限赋值给指定的用户(不执行次步骤可能会出现权限问题):

grant read,write on directory DATA_PUMP_DIR to username;

2.4 创建相应的用户和表空间:

2.5执行导入脚本:

impdp username/[email protected] directory=data_pump_dir dumpfile=expdp11g_123101.dmp logfile=impdp11g_123101.log  version=10.2.0.1.0 schemas=JCISAPP

注意:

通过以上方式导出和导入的前提是必须登录到数据库服务器,上面涉及的的目录请自行修改!

以上是关于通过expdp和impdp将Oracle11g数据导入到Oracle10g中的主要内容,如果未能解决你的问题,请参考以下文章

oracle11g expdp/impdp数据库

Oracle11g数据库迁移到Oracle12C的PDB(使用impdp/expdp)

oracle 11g expdp impdp详细使用方法

Oracle 11g 数据泵技术详解(expdp impdp)

EXPDP/IMPDP

oracle命令expdp