温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

ORACLE 11G XMLTYPE 迁移切换

发布时间:2020-08-06 19:59:05 来源:ITPUB博客 阅读:132 作者:wg0411 栏目:关系型数据库
xmltype 迁移切换的过程 着实让我郁闷了很久,但是最终解决还是好的,方案已经验证OK了,

针对 xmltype的表 导出的时候有诸多的限制,因为xml的内容格式还是比较多样,oracle 官方也经常修修补补,但还是有漏网之鱼,所以 以后想要迁移xmltype的表,优先建议的步骤是:
一、先转成clob字段,
    例如: create table xxx_clob_tab as select t.xmltypecol.getclobval() xxx_clob  from sourceXMLTab

二、expdp/impdp the xxx_clob

三、convert to xmltype
   注意:在转换之前必须建创建的session 设置一下:

Disable BINARY XML storage and switch to CLOB based storage. The following event can be set at the destination host:
1、alter system set events '31156 trace name context forever, level 0x400'; 

then covert it to xmltype
2 、create table xxx_xml as  select sys.xmltype.createXML(clob column)  as  xmlcol from xxx_clob_tab


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI