当前位置: 首页 > news >正文

可以开发哪些网站/免费友情链接

可以开发哪些网站,免费友情链接,seo优化排名易下拉程序,wordpress 分类文章列表分页2019独角兽企业重金招聘Python工程师标准>>> 数据泵(expdp/impdp)跨版本导入 本文讲述了数据泵(expdp/impdp)怎么从高版本导入到低版本。以及数据泵(expdp/impdp)在导出时需要注意到问题。 一、起因 数据泵(expdp/impdp)在Oracle数据库10g时,跨版本导入和…

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

数据泵(expdp/impdp)跨版本导入

本文讲述了数据泵(expdp/impdp)怎么从高版本导入到低版本。以及数据泵(expdp/impdp)在导出时需要注意到问题。

一、起因

数据泵(expdp/impdp)在Oracle数据库10g时,跨版本导入和导出的问题还不太明显,但是到了Oracle数据库11g和Oracle数据库11gR2的版本时,数据泵(expdp/impdp)在跨版本导入和导出时体现的问题,越来越明显。

二、问题演示

我来演示一下,从Oracle数据库11g用数据泵(expdp)导出数据库内容,然后用数据泵(impdp)导入到Oracle数据库10g当中。

从11.2.0.4版本的Oracle数据库中,用expdp导出:

[orcl@prod ~]$ expdp test/test dumpfile=d_tmp:new.exp TABLES=new

Export: Release 11.2.0.4.0 - Production ON Mon JAN 16 15:31:20 2012

Copyright (c) 1982, 2011, Oracle AND/OR its affiliates. ALL rights reserved.

Connected TO: Oracle DATABASE 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

WITH the Partitioning, OLAP, DATA Mining AND REAL Application Testing options

Starting "TEST"."SYS_EXPORT_TABLE_01": test/******** dumpfile=d_tmp:new.exp tables=new

Estimate in progress using BLOCKS method...

Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 64 KB

Processing object type TABLE_EXPORT/TABLE/TABLE

Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

. . exported "TEST"."NEW" 6.593 KB 63 rows

Master table "TEST"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded

 

Dump file set for TEST.SYS_EXPORT_TABLE_01 is:

/tmp/new.exp

Job "TEST"."SYS_EXPORT_TABLE_01" successfully completed at 15:32:01

1234567891011121314151617 [orcl@prod ~]$ expdp test/test dumpfile=d_tmp:new.exp TABLES=new Export: Release 11.2.0.4.0 - Production ON Mon JAN 16 15:31:20 2012 Copyright (c) 1982, 2011, Oracle AND/OR its affiliates. ALL rights reserved. Connected TO: Oracle DATABASE 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production WITH the Partitioning, OLAP, DATA Mining AND REAL Application Testing options Starting "TEST"."SYS_EXPORT_TABLE_01": test/******** dumpfile=d_tmp:new.exp tables=new Estimate in progress using BLOCKS method... Processing object type TABLE_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 64 KB Processing object type TABLE_EXPORT/TABLE/TABLE Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS . . exported "TEST"."NEW" 6.593 KB 63 rows Master table "TEST"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded Dump file set for TEST.SYS_EXPORT_TABLE_01 is: /tmp/new.exp Job "TEST"."SYS_EXPORT_TABLE_01" successfully completed at 15:32:01

然后导入到10.2.0.4

[orcl2@prod2 ~]$ impdp test/test directory=d_tmp dumpfile=new.exp

Import: Release 10.2.0.4.0 - 64bit Production ON Monday,16 JAN, 2012 15:51:40

Copyright (c) 2003, 2007, Oracle. ALL rights reserved.

Connected TO: Oracle DATABASE 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production

WITH the Partitioning, OLAP, DATA Mining AND REAL Application Testing options

ORA-39001: invalid argument VALUE

ORA-39000: bad dump file specification

ORA-39142: incompatible version NUMBER 3.1 IN dump file "/tmp/new.exp"

12345678 [orcl2@prod2 ~]$ impdp test/test directory=d_tmp dumpfile=new.exp Import: Release 10.2.0.4.0 - 64bit Production ON Monday,16 JAN, 2012 15:51:40 Copyright (c) 2003, 2007, Oracle. ALL rights reserved. Connected TO: Oracle DATABASE 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production WITH the Partitioning, OLAP, DATA Mining AND REAL Application Testing options ORA-39001: invalid argument VALUE ORA-39000: bad dump file specification ORA-39142: incompatible version NUMBER 3.1 IN dump file "/tmp/new.exp"

出现了因为版本过高无法导入的错误。

三、解决办法

在用expdp导出时,加入特定参数”VERSION=”后面跟上参数的版本。比如我要导入到的Oracle数据库版本为10.2.0.1 则这样写:VERSION=10.2.0.1 即可。

[orcl@prod ~]$ expdp test/test dumpfile=d_tmp:newtest.exp TABLES=new version=10.2.0.4

Export: Release 11.2.0.3.0 - Production ON Mon JAN 16 16:22:40 2012

Copyright (c) 1982, 2011, Oracle AND/OR its affiliates. ALL rights reserved.

Connected TO: Oracle DATABASE 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

WITH the Partitioning, OLAP, DATA Mining AND REAL Application Testing options

Starting "TEST"."SYS_EXPORT_TABLE_01": test/******** dumpfile=d_tmp:newtest.exp tables=new version=10.2.0.4

Estimate in progress using BLOCKS method...

Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 64 KB

Processing object type TABLE_EXPORT/TABLE/TABLE

Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

. . exported "TEST"."NEW" 6.406 KB 63 rows

Master table "TEST"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded

 

Dump file set for TEST.SYS_EXPORT_TABLE_01 is:

/tmp/newtest.exp

Job "TEST"."SYS_EXPORT_TABLE_01" successfully completed at 16:28:40

1234567891011121314151617 [orcl@prod ~]$ expdp test/test dumpfile=d_tmp:newtest.exp TABLES=new version=10.2.0.4 Export: Release 11.2.0.3.0 - Production ON Mon JAN 16 16:22:40 2012 Copyright (c) 1982, 2011, Oracle AND/OR its affiliates. ALL rights reserved. Connected TO: Oracle DATABASE 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production WITH the Partitioning, OLAP, DATA Mining AND REAL Application Testing options Starting "TEST"."SYS_EXPORT_TABLE_01": test/******** dumpfile=d_tmp:newtest.exp tables=new version=10.2.0.4 Estimate in progress using BLOCKS method... Processing object type TABLE_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 64 KB Processing object type TABLE_EXPORT/TABLE/TABLE Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS . . exported "TEST"."NEW" 6.406 KB 63 rows Master table "TEST"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded Dump file set for TEST.SYS_EXPORT_TABLE_01 is: /tmp/newtest.exp Job "TEST"."SYS_EXPORT_TABLE_01" successfully completed at 16:28:40

正常导入:

[orcl2@prod2 ~]$ impdp test/test directory=d_tmp dumpfile=newtest.exp

Import: Release 10.2.0.4.0 - 64bit Production ON Monday, 16 JAN, 2012 16:35:30

Copyright (c) 2003, 2007, Oracle. ALL rights reserved.

Connected TO: Oracle DATABASE 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production

WITH the Partitioning, OLAP, DATA Mining AND REAL Application Testing options

Master TABLE "TEST"."SYS_IMPORT_FULL_01" successfully loaded/unloaded

Starting "TEST"."SYS_IMPORT_FULL_01": test/******** directory=d_tmp dumpfile=newtest.exp

Processing object type TABLE_EXPORT/TABLE/TABLE

Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

. . imported "TEST"."NEW" 6.406 KB 63 rows

Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

Job "TEST"."SYS_IMPORT_FULL_01" successfully completed at 16:45:20

123456789101112 [orcl2@prod2 ~]$ impdp test/test directory=d_tmp dumpfile=newtest.exp Import: Release 10.2.0.4.0 - 64bit Production ON Monday, 16 JAN, 2012 16:35:30 Copyright (c) 2003, 2007, Oracle. ALL rights reserved. ConnectedTO: Oracle DATABASE 10g Enterprise Edition Release 10.2.0.4.0 - 64bit ProductionWITH the Partitioning, OLAP, DATA Mining AND REAL Application Testing options Master TABLE "TEST"."SYS_IMPORT_FULL_01" successfully loaded/unloaded Starting "TEST"."SYS_IMPORT_FULL_01": test/******** directory=d_tmpdumpfile=newtest.exp Processing object type TABLE_EXPORT/TABLE/TABLE Processing object type TABLE_EXPORT/TABLE/TABLE_DATA . . imported "TEST"."NEW" 6.406 KB 63 rows Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS Job "TEST"."SYS_IMPORT_FULL_01" successfully completed at 16:45:20

转载于:https://my.oschina.net/u/3635497/blog/3047612

http://www.jmfq.cn/news/4729807.html

相关文章:

  • 广州设计网站公司/百度提交收录
  • 奥维网络高端网站建设公司/网络推广seo怎么做
  • 沈阳市网站建设报价/企业网站模板免费下载
  • 河北省质监站网址/求老哥给几个靠谱的网站
  • 学做电商的网站有哪些/海外推广营销平台
  • 甘肃网站建设推广服务/seo技术自学
  • 口腔医院网站做优化/百度投诉中心24人工
  • 自己做APP需要网站吗/今日头条seo
  • 有哪个网站做正品港货/沧州seo公司
  • 做网站 能挣钱吗/企业网站的作用
  • 南京网站建设网站设计/搜狗引擎搜索
  • 无锡优化网站业务/百度推广销售员好做吗
  • 那个网站做扑克牌便宜/排名优化工具下载
  • 局域网网站建设工具/下载百度语音导航地图
  • 长沙建站公司哪有/社群营销的具体方法
  • 郑州app软件定制/seo优化顾问服务阿亮
  • 建设工程行业招工信息网站/百度客服怎么转人工电话
  • 开发网站公司名称/怎么让网站快速收录
  • 吉安市网站制作/上海免费关键词排名优化
  • 临沂企业网站建设/深圳网络推广的公司
  • 阜南县城乡建设局官方网站/网站怎么优化到首页
  • 网站建设及营销方案/91关键词排名
  • 做私活 网站/注册公司网上申请入口
  • dw做网站注册页代码/百度贴吧网页入口
  • 公安机关网站规范化建设应用/百度推广和优化哪个好
  • 如何做后台网站增删改/东莞网站seo推广
  • 学院网站信息化建设总结/网络广告电话
  • 设计app的软件有哪些/关键词排名优化易下拉霸屏
  • 成都企业网站建设公司/电商网站排名
  • 上海做高端网站制/运营培训班