Ora-00936: Missing Expression using Oracle OleDB Provider with OpenQuery

(Doc ID 1353577.1)

Last updated on JULY 05, 2017

Applies to:

Oracle Provider for OLE DB - Version: and later   [Release: and later ]
Microsoft Windows (32-bit)
Microsoft Windows x64 (64-bit)


Using the Oracle OleDb Provider with SQLServer may result in "ORA-00936: missing expression" when the following syntax is used with OpenQuery:

select * from openquery (SCOTTLINK,'SELECT [SYSDATE] FROM DUAL')

Error message:
OLE DB provider "OraOLEDB.Oracle" for linked server "SCOTTLINK" returned message "ORA-00936: missing expression".
Msg 7321, Level 16, State 2, Line 1
An error occurred while preparing the query "SELECT [SYSDATE] FROM DUAL" for execution against OLE DB provider "OraOLEDB.Oracle" for linked server "SCOTTLINK".


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