Linking

Capturing Life & Tech

  • 主页
  • 随笔
  • 关于我
所有文章 外链

Linking

Capturing Life & Tech

  • 主页
  • 随笔
  • 关于我

Oracle数据导入导出

阅读数:次 2019-09-18
字数统计: 297字   |   阅读时长≈ 1分

命令行输出 dmp

Windows

1
expdp test/test@192.168.100.1/sid schemas=test dumpfile=test20190912.dmp directory=DATA_PUMP_DIR logfile=20190912.log

Linux

1
expdp test/test@192.168.100.1/sid schemas=test dumpfile=test0912.DMP directory=DATA_PUMP_DIR logfile=impdp0912.log

导入dmp

Windows

1
impdp test/test@127.0.0.1/sid directory=dump_dir dumpfile=xxx.dmp remap_schema=test:test remap_tablespace=test:test table_exists_action_action=skip
  • test: 依次为数据库用户、密码
  • sid
  • directory:目录名

可用select * from dba_directories;查看,没有的话可自己创建,命令如下

1
2
# 创建逻辑目录,该命令不会在硬盘中创建真正的目录,最好使用system等管理员账户创建:
create or replace directory mydump as 'E:\oracle\dump';
  • dumpfile:directory下的dmp文件
  • remap_schema:导出的dmp文件与导入的库,schema不一样时,需指定源和目标schema
  • remap_tablespace: 数据库名称转移
  • table_exists_action_action: 已存在的表处理方式
1
2
3
4
5
TABLE_EXISTS_ACTION=[SKIP | APPEND | TRUNCATE | REPLACE]
1. SKIP: 直接跳过,进行下一个对象操作。(默认)
2. APPEND: 在原有数据基础上继续追加
3. TRUNCATE: 先TRUNCATE,再完成数据插入
4. REPLACE: 先DROP表,然后创建表,最后完成数据插入

参考

  • impdp 将数据导入数据库中报错:ORA-39002: invalid operation ,ORA-39165: Schema XXX was not found.
  • impdp时报ORA-39083、ORA-00959错误
  • 本文作者: Linking
  • 本文链接: https://linking.fun/2019/09/18/Oracle数据导入导出/
  • 版权声明: 版权所有,转载请注明出处!
  • Oracle
  • CS

扫一扫,分享到微信

pip2-or-pip3调用不同Python版本的pip
Linux下Oracle数据库基本操作
  1. 1. 命令行输出 dmp
  2. 2. 导入dmp
  • 参考
  • © 2015-2026 Linking
    GitHub:hexo-theme-yilia-plus by Litten
    本站总访问量次 | 本站访客数人
    • 所有文章
    • 外链

    tag:

    • weather
    • 需求
    • essay
    • basketball
    • olympic
    • nginx
    • APPScan
    • SQl盲注
    • xss
    • Ajax
    • ajax
    • ai
    • agent
    • openclaw
    • ccf
    • Nginx
    • HTML5
    • html5
    • hmtl5
    • sse
    • JavaScriptCore
    • Oracle
    • operation
    • Linux
    • deploy
    • Mac Office
    • markdown
    • ListView
    • GridView
    • MySQL
    • 慢查询
    • mongodb
    • 转置
    • thought
    • network
    • ubuntu
    • NetworkManager
    • RFKill
    • Netplan
    • avatar
    • cocoa
    • blog
    • Gitalk
    • container
    • macvlan
    • docker
    • oracle
    • cookie
    • patch
    • gitea
    • git
    • iOS
    • https
    • 多线程
    • bundle
    • 兼容性
    • HTTP
    • 绘图
    • cs
    • java
    • 效率
    • 快捷键
    • route
    • nodejs
    • pip
    • arcgis
    • arcgis 建模
    • 标识
    • redis
    • read
    • bookList
    • running
    • showdoc
    • disk
    • unit-test
    • D.Wade
    • thoughts
    • duoduo
    • Python
    • python
    • tomcat
    • 读书节
    • session
    • jdk
    • war
    • 加班
    • Android onclick事件监听
    • 正则
    • 手机品牌匹配
    • ntp
    • OpenLayers
    • Geoserver
    • wechat
    • 微信公众号
    • 爬虫
    • WeChat
    • 张靓颖
    • 动漫
    • vpn
    • PPT
    • MarkDown
    • plan
    • 朱赟
    • 极客时间专栏
    • 极客邦
    • 模块化
    • MVC
    • excel
    • NBA
    • kobe
    • team
    • crawler
    • 进度条
    • ssl
    • book
    • anti-stealing-link
    • Agentic Engineering
    • Vibe Coding
    • Software 3.0
    • Andrej Karpathy
    • LLM
    • Programming

      缺失模块。
      1、请确保node版本大于6.2
      2、在博客根目录(注意不是yilia-plus根目录)执行以下命令:
      npm i hexo-generator-json-content --save

      3、在根目录_config.yml里添加配置:

        jsonContent:
          meta: false
          pages: false
          posts:
            title: true
            date: true
            path: true
            text: false
            raw: false
            content: false
            slug: false
            updated: false
            comments: false
            link: false
            permalink: false
            excerpt: false
            categories: false
            tags: true
      

    • GitHub Trending
    • OpenAI ChatGPT
    • Gitee码云
    • 简书
    • CSDN