In the Oracle Database (Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production) I have a table like this:
CREATE TABLE testing_text (testing_text_id NUMBER (9), test_text CLOB);
If I manually insert data from the SQL prompt it is fine. When I query that data on the from level using the store procedures it is fine (the forms defaults to a LONG data type).
The issue comes about when inserting or updating from the from through the stored procedure to the table. I can not insert/update data as the LONG data type on the form does not correspond to data type in the reference cursor (CLOB) in the stored procedure. (Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle forms DOES NOT support all PL/SQL database types (does not natively support CLOB or NCLOB). AND oracle strongly recommends NOT using the LONG data type in tables. So what to do?
If I change my record group in my stored procedure to a LONG instead of a CLOB it seems to work. Oracle Forms supports the LONG data type and is able to pass the known data type to the stored procedure.
TYPE rec_def IS RECORD
(
testing_text_id testing_text.testing_text_id%TYPE,
test_text long -- testing_text.test_text%TYPE
);
I would like to get away from using (or declaring) the LONG data type as it appears Oracle it trying to phased this data type out. Is there any work around solution that would allow Forms to use CLOB columns from a store procedure while avoiding any references to the LONG data types on the form and stored procedure?