zoukankan      html  css  js  c++  java
  • 通过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/password@orcl 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/password@orcl directory=data_pump_dir dumpfile=expdp11g_123101.dmp logfile=impdp11g_123101.log  version=10.2.0.1.0 schemas=JCISAPP

    注意:

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

  • 相关阅读:
    hash算法
    TCP/IP四层与OSI七层模型
    di
    VSCode安装程序——java开发
    java中的多线程
    C#ThreadPool类—多线程
    学习-思考
    DataTable通过Select进行过滤
    javascript遍历对象属性
    WebClient 与HttpClient 的区别
  • 原文地址:https://www.cnblogs.com/ShaYeBlog/p/10277146.html
Copyright © 2011-2022 走看看