Load data from Oracle CLOB datatype to XMLTYPE datatype

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sureshreddy_i
Participant
Posts: 2
Joined: Wed Jun 16, 2010 3:19 pm

Load data from Oracle CLOB datatype to XMLTYPE datatype

Post by sureshreddy_i »

I have the source column as Oracle CLOB datatype and Target is Oracle XMLTYPE datatype.
Source CLOB column contains XML data which i need to extract and load into Target Oracle column with XMLTYPE datatype using Datastage 8.1 Parallel Job.
I was able to read the source CLOB data using Dynamic RDBMS stage but was not able to load this data into Target Oracle table with XMLTYPE datatype.
Can anyone guide me how to do this ???
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

What error do you get? Are you even able to import the metadata? Exactly which Oracle Stage are you using? I haven't talked to a site who has done this...perhaps others here in the forum have. There is new xml datatype support for various databases inside of the Connectors in 8.5, but again, I haven't encountered it. Please share any details you have.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
sureshreddy_i
Participant
Posts: 2
Joined: Wed Jun 16, 2010 3:19 pm

Post by sureshreddy_i »

I tried using Dynamic RDBS or OCI stage to load into target Oracle table with XMLTYPE datatype. But the job was aborting. When i imported the table definition for this oracle table, for XMLTYPE datatype, it imported as unknown datatype.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It might help if you posted the actual abort message.

XMLTYPE is not supported, at least not directly, except perhaps in the new Connector stage as Ernie mentioned. IMHO, you are better off with a PL/SQL procedure for this and there are lots of resources out there for that, for example here. Or you could try the syntax noted in the link as user-defined sql, if you haven't tried that already.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply