Ask a Question related to Coldfusion Database Access, Design and Development.
-
romain_soco #1
java.sql.SQLException CLOB
I use a <CFSTOREDPROC with an Oracle 9i(R1) database and CFM MX7 standart
edition (So i use a jdbc driver, oracle driver is only available in a
enterprise version)
The procedure return a clob.
When the clob has a small len, the resultset is ok.
When the clob is more big, I have a cfm error : java.sql.SQLException (see as
under).
I dont' have this bug with an enterprise version with jdbc driver using.
I 've download the Updated DataDirect JDBC drivers (version 3.5) and the
option Enable long text retrieval (CLOB) is enabled in the cfide administrator
We can find the call as under :
<CFSTOREDPROC procedure="PS_FACADE" datasource="#cnxCimsaDB#">
<cfprocparam type = "inout" CFSQLType = "CF_SQL_CHAR" value="#strData#"
VARIABLE="xmlResult">
</CFSTOREDPROC>
java.sql.SQLException: ORA-06502: PL/SQL : erreur num?rique ou erreur sur une
valeur ORA-06512: ? ligne 1 at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:134) at
oracle.jdbc.ttc7.TTIo
romain_soco Guest
-
How to access SQLException.getNextException?
Hi, I'm getting this error occasionally in a production environment: Error Executing Database Query. Exception generated during defered local... -
java.sql.SQLException Error when Creating New DSN inCFMX Administrator
I'm having a similar issue...did you ever get any news on how this was solved? Thanks, Heather -
java.sql.SQLException: ERROR: Relation 38868974 does not exist
I've come across a problem which is only happening intermittently, and having a difficult time finding information to help me determine what is the... -
java.sql.SQLException: Could not position within a table
Hi, I have an application running on Tomcat on Windows 2000 and the database is Informix running on a HP-UX box. Once in a while i get this... -
occasional SqlException 'a severe error occured...'
Hello all, I face the problem that occasional in one WebApplication the following error occures: System.Data.SqlClient.SqlException: A severe... -
jonwrob #2
Re: java.sql.SQLException CLOB
CF does not support connecting to Oracle with anything other than the
Enterprise version. It has to do with the way the Oracle thin client driver
defines CLOB columns.
You will get no help from technical support either. All the more reason to
use something other that CF if you ask me.
JR
jonwrob Guest
-
romain_soco #3
Re: java.sql.SQLException CLOB
You 're right. I 've read the article a guide to Using Stored Procedures with
ColdFusion.
[url]http://www.macromedia.com/devnet/coldfusion/articles/beg_storedproc_06.html[/url]
I have the same problem in cfm standart 6 and I use the cfquery and oracle
function to return the result set in a xml string. I'm going too do the same.
Thanks
romain_soco Guest
-
sdittbrenner #4
Re: java.sql.SQLException CLOB
<cfprocparam type = "inout" CFSQLType = "CF_SQL_CHAR" value="#strData#"
????????????????????
you want to gather a CLOB? up to 4000 Characters i would expect that there is
no problem - more then 4000 in a char type? Never!!
Try CFSQLType = "CF_SQL_CLOB"
sdittbrenner Guest
-
sdupre #5
Re: java.sql.SQLException CLOB
I think sdittbrenner is right about the 4000 chars and CF_SQL_CLOB.
Enterprise version<<>> CF does not support connecting to Oracle with anything other than the
This statement is false. Thin, ODBC, alternative JDBC drivers like Inet are
all acceptable with Standard version.
Stephen Dupre
Macromedia QA
sdupre Guest
-
jonwrob #6
Re: java.sql.SQLException CLOB
>> CF does not support connecting to Oracle with anything other than the
Enterprise version<<
This statement is not false. CF does not support drivers other than the one
that comes with enterprise. Try using one and reporting a problem to tech
support. You'll find out just how much they don't support them.
CF cannot use the thin client driver to return CLOB's greater than 64K. Talk
to tech support about this and they will tell you they do not support 3rd party
drivers. I have the email to prove it.
JR
jonwrob Guest
-
romain_soco #7
Re: java.sql.SQLException CLOB
In the documentation, cfm standart can connect to oracle throught a jdbc
driver. It less efficient than the entreprise cfm driver.
I use standart cfm with jdbc driver and an oracle function return a string
more than 4000 char with the cfquery
<cfquery name="query" datasource="#cnxCimsaDB#">
select FN_ENTREE_XML('#strData#') return_value from dual
</cfquery>
I don't read a contraindication about it. Right ?
romain_soco Guest
-
sdittbrenner #8
Re: java.sql.SQLException CLOB
to jonwrob
Try using one and reporting a problem to tech support. You'll find out just how>>CF does not support drivers other than the one that comes with enterprise.
much they don't support them.
CF cannot use the thin client driver to return CLOB's greater than 64K. <<
CF supports the Oracle JDBC driver from 10g R2 and R1 and also CLOB greater
then 64K! We have used it to store base64-converted PDF (like Oracle
references with 12MB) and other files up to 85MB.
We have only a little problem to query a Oracle "date" column. CF doesn't
return the time component (Hello Macromedia support ;-))
sdittbrenner Guest
-
jonwrob #9
Re: java.sql.SQLException CLOB
I sense some difference of opinion on the meaning of the word "support." CF
Professional may work with the JDBC driver, but it is not supported. Talk to
Macromedia support about your date issue. If you tell them you're using CF
Professional, rather than CF Enterprise, and using an Oracle provided driver,
they will not help you. That is what not supported means.
What I said about the thin client JDBC driver was true a few months ago when
last I tried it. Perhaps there is a new version available from Oracle. I'll
give it a try.
JR
jonwrob Guest



Reply With Quote

