Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

loading XML into the CLOB using Oracle Forms

Avatar of tribuna33
tribuna33 asked on
Oracle Database
6 Comments1 Solution3744 ViewsLast Modified:
I have a problem loading xml data into the CLOB when it's done in Oracle Form
I'm reading XML file as a ASCII data and trying to concatinated  into the CLOB variable for inserting into the Oracle table.

v_clob          clob;
v_file           varchar2(200);
v_file_row    varchar2(32000);
in_file          Text_IO.File_Type;
end_of_file   boolean := FALSE;

and read .xml file

in_file := Text_IO.Fopen(v_file,'r');
WHILE NOT end_of_file
LOOP  
      v_clob := v_clob||v_file_row;   <--- compile error wrong number of types of arguments in call to '||'
END LOOP;
insert into xml_table (doc_clob) values (v_lob);

If I declare
v_clob          long;

it work fine, but raises error if lenght exceeds 32K.

Can Anyone provide an example for solving this issue?
ASKER CERTIFIED SOLUTION
Avatar of tribuna33
tribuna33

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answers