DG4ODBC Returns ORA-904 Selecting From SQL*Server Using FreeTDS ODBC Driver

(Doc ID 978055.1)

Last updated on JUNE 26, 2012

Applies to:

Oracle Server - Enterprise Edition - Version 11.1.0.6 to 11.2.0.1 [Release 11.1 to 11.2]
Information in this document applies to any platform.


***Checked for relevance on 26-Jun-2012***

Symptoms


A query to SQL*Server 2005 using Database Gateway for ODBC (DG4ODBC) 11.2 on Linux x86-64
using unixODBC 2.2.14 driver manager with FreeTDS version 8.0 is returning an error -

ORA-00904 invalid identifier


with the following shown in the gateway trace file -

Entered hgopcda at 2009/12/09-13:15:20
Column:13(ety_date_opened): dtype:11 (???), prc/scl:23/3, nullbl:1, octet:40, sign:1, radix:10
Column 13 (ety_date_opened): dtype 11 (???): this datatype is not supported.
Entered hgopcda at 2009/12/09-13:15:20
Column:13(ety_date_closed): dtype:11 (???), prc/scl:23/3, nullbl:1, octet:40, sign:1, radix:10
Column 13 (ety_date_closed): dtype 11 (???): this datatype is not supported.
Entered hgopcda at 2009/12/09-13:15:20
Column:13(ety_1st_office_phone_area_code): dtype:1 (CHAR), prc/scl:3/3, nullbl:1, octet:3, sign:1, radix:10
Exiting hgopcda, rc=0 at 2009/12/09-13:15:20

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