I need to query data from SQL Server in Oracle using an ODBC database link. I have created the necessary configuration in Oracle to allow me to access the SQL Server database and query the data.
When I do:
select * from table@ODBC_LINK
i get all rows returned.
When I do:
select * from table@ODBC_LINK WHERE [Field] = 'Some Value'
I get an
ORA-000904 error; "Field" invalid identifier.
The field name is a valid field in the SQL-source database/table but it does not matter what I do, I am unable to use a WHERE clause as this always gives me the same ORA-error.
Using Oracle XE 11g and SQL Server 2012.
What is causing my problem?