Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

ORACLE 11G XMLTYPE Migration switchover

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

The process of xmltype migration and switching really depressed me for a long time, but the final solution is still good, and the solution has verified OK.

There are many restrictions on the export of xmltype tables, because the content formats of xml are still diverse, and oracle officials often tinker with them, but there are still some mistakes, so if you want to migrate xmltype tables in the future, the preferred steps are:

First, switch to the clob field.

For example: create table xxx_clob_tab as select t.xmltypecol.getclobval () xxx_clob from sourceXMLTab

II. Expdp/impdp the xxx_clob

III. Convert to xmltype

Note: the session created must be set up before conversion:

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report