OBIEE 11g: Error: "Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P ... [nQSError: 17001] Oracle Error code: 997, message: ORA-00997: illegal use of LONG datatype" when Reurning Data of type Long (Doc ID 1494004.1)

Last updated on JANUARY 30, 2017

Applies to:

Business Intelligence Server Enterprise Edition - Version 11.1.1.6.0 and later
Business Intelligence Suite Enterprise Edition - Version 11.1.1.6.0 and later
Information in this document applies to any platform.

Symptoms

In OBIEE 11g, you are unable to report a Long data type field.  You can add this longvarchar field in the repository.  But if you try and display it in a report, you get the following error:

View Display Error
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 17001] Oracle Error code: 997, message: ORA-00997: illegal use of LONG datatype at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
SQL Issued: SELECT 0 s_0, "Opportunity Life Cycle"."Opportunity"."Note Description" s_1 FROM "Opportunity Life Cycle" FETCH FIRST 500001 ROWS ONLY


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms