Skip to Main Content

DevOps, CI/CD and Automation

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!

XMLtype to CLOB conversion

Azhar HusainMar 11 2010 — edited Mar 12 2010
Hi Gurus,

I am trying to convert XML file stored into XMLtype datatype into CLOB through getClobVal function but its not able to write complete text (which is around 1 MB ) into CLOB. When I am checking my XML file after conversion the TEXT tag is not same as it was in the original XML file. In other words-

I have a table TEST_TABLE(TEST_COL XMLtype)
I wrote following function(just pasting the part of code, though I can use getclobval() directly into query) to convert XML store into TEXT_TABLE

CREATE OR REPLACE FUNCTION getvalue_clob_post(p_xmldata XMLtype)
RETURN clob IS
v_xmldata XMLtype;
BEGIN
v_xmldata:=p_xmldata;
RETURN v_xmldata.getClobVal();
EXCEPTION WHEN OTHERS THEN
raise_application_error (-20102, 'Exception occurred in getAccountsHTML :'||SQLERRM);
END getvalue_clob_post;
/

My problem is that I dont want to use getClobVal() becuase it is not working for the tags which contains very large text or different character set.
Does any one has any idea how I can convert data(XML files) stored into XMLtype column into CLOB without using getClobVal() function?
thanks in advance

Comments

Dude!

Your client will probably want to update to 19c (12.2.0.3).

What you might want to consider is updating the database to 11.2.0.4, so you have a direct DB upgrade path. Other than that your question is too vague and you need to ask more specifically. 

d.candeloro

According to Oracle Support the 19c version is not certified for working with Siebel IP2016.

The last certified version is 12.2.0.1.0:

Siebel is running on Oracle Database 11.2.0.3.0 now. So, suppose that we create a new instance of the database with version 12.2.0.1.0 and we copy the Siebel schema from the current db instance to the new one. What are the other steps to perform in order to let the Siebel works on the new instance of the DB?

If my question is too vague, please let me know how I can help you understand my doubt.

Best Regards,

Davide

Dude!

You're asking in the database upgrade forum. Upgrading the database is complex task.

If your question is more about Siebel than DB specific, why aren't you asking in the Siebel forum:

d.candeloro

Thanks Dude!

1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 9 2010
Added on Mar 11 2010
3 comments
118,494 views