Moving XML over a DBLink

后端 未结 5 1899
不知归路
不知归路 2021-01-22 17:24

I am trying to move some data over a dblink and one of the columns is an XMLType column. The code looks like this:

begin
    delete from some_schema.some_remote_         


        
5条回答
  •  悲哀的现实
    2021-01-22 18:26

    Try to do this the other way around. That is log into the remote db, create a dblink to the local db, and do an insert like this

    INSERT INTO remote_schema.some_remote_tab(id, code, gen_date, xml_data) 
    SELECT id, code, gen_date, xml_data
        FROM local_table@dblink_to_local_db;
    

提交回复
热议问题