怎样将db2数据库中的数据 to oracle中

馒头王子 2015-12-18 03:04:19
本人遇到个难题,各位大侠帮忙解决一下:
问题如下:本人要把DB2数据库中的数据(包括二进制流的数据) to oracle数据库中,各位大侠有办法么?
...全文
449 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
文修 2015-12-19
  • 打赏
  • 举报
回复
楼主你好 我只知道如何把DB2的表单数据导入到Oracle中,供你参考 实现思路:   1、将DB2数据导出为CSV格式;   2、将CSV格式数据导入到Oracle中。 实现方法:   1、--[DB2导出]--     db2cmd     db2 connect to fgws user db2admin using bitservice     db2 export to c:\temp\descartes.csv of del select * from estate.descartes   2、--[Oracle导入]--     host sqlldr userid=pubr/bitservice@ttonline control=c:\temp\descartes.ctl   3、--[Oracle导出]--     exp system/bitservice@ttonline tables=(pubr.descartes) file=c:\descartes_xy_20111018.dmp log=c:\descartes_xy_20111018.log buffer=655000 compress=y 附录(descartes.ctl): load data infile "c:\temp\descartes.csv" into table descartes fields terminated by "," optionally enclosed by '"' trailing nullcols ( de_id , dpid , ipid , ac_id , ac_cat_biz , ac_name_biz , og_id , og_category , og_name , og_idcard , og_idcardno , og_regstatus , ps_id , ps_category , ps_name , ps_idcard , ps_idcardno , ps_nationality , ps_place , ps_buyer_kind , ps_regstatus , hs_id , hs_code , dv_name_province , dv_name_city , dv_code_district , dv_name_district , bd_cat_street , bd_cat_project , bd_code_planning_security_ci , hs_startfloor , hs_endfloor , hs_code_unit , hs_code_planning_security_ci , bd_floors , hs_planning_use , hs_structure , bd_completetime , hs_regstatus , re_category , re_housebookcode , re_housebooktime date "yyyy-mm-dd hh24:mi:ss", re_housecertificatecode , re_cat_house , re_coownershiptype , re_shareproportion , re_houseacquirementtype , re_payment , re_loanmethod , re_housepropertystartdate date "yyyy-mm-dd hh24:mi:ss", re_housepropertyenddate date "yyyy-mm-dd hh24:mi:ss", re_landcertificatecode , re_statelandacquirementtype , re_collectivelandacquirementt , re_parcelpropertytype , re_landpropertystartdate date "yyyy-mm-dd hh24:mi:ss", re_landpropertyenddate date "yyyy-mm-dd hh24:mi:ss", re_regstatus , re_completetime date "yyyy-mm-dd hh24:mi:ss", hs_buildarea , hs_usearea , re_quality )

5,889

社区成员

发帖
与我相关
我的任务
社区描述
IBM DB2 是美国IBM公司开发的一套关系型数据库管理系统,它主要的运行环境为UNIX(包括IBM自家的AIX)、Linux、IBM i(旧称OS/400)、z/OS,以及Windows服务器版本
社区管理员
  • DB2
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧