COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Administration and Security => Topic started by: redspark on 28 May 2020 08:34:42 AM

Title: Oracle Data Source JDBC Error with LONG Data Type
Post by: redspark on 28 May 2020 08:34:42 AM
Hi,

We have a multi-query Cognos Report that that selects on a LONG data type from Oracle. LONG data types are deprecated but still useable within Oracle 12. When the query is processed, Cognos reports the error: XQE-DAT-0001 Data source adapter error: java.sql.SQLException: Stream has already been closed.

Has anyone experienced this issue with any of your environments? If so, please tell us how was it solved or worked around or if we are SOL.  ;)

Thank you.

James
Title: Re: Oracle Data Source JDBC Error with LONG Data Type
Post by: adam_mc on 28 May 2020 09:39:43 AM
We have some CLOB columns in an Oracle data source which provided similar problems.

We got around these problems by casting the column name in Framework Manager as follows:

   cast( substring([CLOB_Column_Name], 1, 4000) , varchar(4000))

Maybe something like this will work for you?

Hope this helps,
Adam.