Inserting values > 4000 characters into CXC_* tables

Question Recieved: We are encountering the following Error:
Error encountered when trying to build a particular SQL statement. The output of the error message is as follows:


SQLException in com.oracle.ugbu.cc.run.builder.SqlBuildStatementRow
Message: ORA-01461: can bind a LONG value only for insert into a LONG column

SQLState: 72000
ErrorCode: 1461
Statement causing error:
INSERT INTO CXC_SQL_BUILD_STMT ( CXC_SQL_BUILD_ID ,CXC_STEP_SEQ ,CXC_TOP_DOWN_SEQ ,CXC_STATEMENT_SEQ ,STMT_EXEC_CLASS ,CXC_SQL_TEXT ,ROW_VERSION ) VALUES (?,?,?,?,?,?,?)
Answer: This error occurs if the SQL value being inserted into CXC_SQL_BUILD_STMT exceeds 4000 characters, consider using pre-compiled PL/SQL functions or Temporary staging tables to ensure that individual SQL statements are not overly complex.
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Stuart Ramage

I am a Consulting Technical Manager for Oracle Corporation, and a member of the OU Black Belt Team, based in Hobart Tasmania.
I have worked in the Utility arena since 1999 on the Oracle UGBU product line, in a variety of roles including Conversion, Technical and Functional Architect.

Contact me on:

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today