My Oracle Support Banner

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 NOVEMBER 19, 2020

Applies to:

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


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
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


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.