Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

inserting XML from remote db causes ORA-21700: object does not exist

946607Aug 29 2012 — edited Sep 6 2012
Hi.
I'm using Oracle 11.2.0 and I'm trying to write a procedure which takes some tables stored in one remote server (connected by a database link) and store them in a local server.
I've no problems with usual tables, but I get "ORA-21700: object does not exist" with a table using a registered XMLTYPE.

This is the code in my procedure:
insert into ICF.input_xml n (
ID,
FILENAME,
CREATION_DATE,
XML )
SELECT
o.ID,
o.FILENAME,
o.creationDate,
o.XML
FROM input_xml@remote o;

I get this error in SQL developer when compiling the procedure. However, if I execute this query by its own, out of the procedure, it works great.
Actually, XDB is installed and the same schema is registered with the same name in both servers, so I'm able to make XML operations with these tables in both servers.

How could avoid this compiling error (because it actually works)? Or, is there any other way to do that?

Thanks in advance

Edited by: user1592798 on 29-ago-2012 1:20
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 2 2012
Added on Aug 29 2012
8 comments
215 views