Skip to Main Content

SQL & PL/SQL

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!

Need to get view source into a clob column

766869Aug 2 2011 — edited Aug 2 2011
Hi ,

I am trying to get the data by this following query and trying to insert into a table.
SELECT text FROM ALL_VIEWS WHERE TEXT_LENGTH = 43798;

I am trying to get it by this script , but the whole view source is not coming.
---------------------------------------------
DECLARE
C1 CLOB;
BEGIN
C1 := DBMS_XMLGEN.GETXMLTYPE('SELECT text FROM ALL_VIEWS WHERE TEXT_LENGTH = 43798').EXTRACT('//text()').GETCLOBVAL();
--TRUNCATE TABLE XXMNP.Temp;
INSERT INTO XXMNP.Temp values(C1);COMMIT;
END;


Please suggest.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2011
Added on Aug 2 2011
1 comment
374 views