Ora-00936: Missing Expression using Oracle OleDB Provider with OpenQuery
(Doc ID 1353577.1)
Last updated on NOVEMBER 15, 2019
Applies to:
Oracle Provider for OLE DB - Version 9.2.0.4.0 and laterMicrosoft Windows (32-bit)
Microsoft Windows x64 (64-bit)
Symptoms
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".
Cause
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
Symptoms |
Cause |
Solution |