I am trying to insert a large xml file with length 43000 into clob
.
asktom remcomanded using bind variables but its links was broken.
so my question how to insert large xml file in a bind variable . this is my procedure
CREATE OR REPLACE PROCEDURE sp_insert_xml
(
p_id IN INT,
p_xml IN clob
)
AS
BEGIN
declare x clob;
y number(10);
begin
SELECT FILE into x from PROCESS_D where PROCESS_ID =1;
select dbms_lob.getlength(x) into y from dual;
DBMS_OUTPUT.PUT_LINE(y);
end;
--INSERT INTO TEST_ID VALUES (p_id, p_xml);
END;
I want to split the length so I can insert them into a table