OLEDB APPLICATION THROWS ACCESS VIOLATION EXCEPTION (Doc ID 1952451.1)

Last updated on JULY 05, 2017

Applies to:

Oracle Provider for OLE DB - Version 11.2.0.3 to 11.2.0.3 [Release 11.2]
Information in this document applies to any platform.
Issue is specific to 11.2.0.3 Patch Bundle 34 on Windows.

Symptoms

After installing the 11.2.0.3 patch bundle 34, Oracle database using ADO fails.

_ConnectionPtr m_Connection;
CursorTypeEnum cursorType = adOpenForwardOnly;
LockTypeEnum locktype = adLockReadOnly;

// _bstr_t strCommandText contains the SQL we wish to execute and is obviously dependent on our schema and data

_RecordsetPtr objRecordset;
objRecordset.CreateInstance("ADODB.Recordset"); // this seems to work
objRecordset->Open(strCommandText, _variant_t((IDispatch *)m_Connection,true), cursorType,lockType,adCmdText); // This call fails with Access Violation error


No problems connecting through SQL Plus.

Changes

 Applied Windows 11.2.0.3 Patch Bundle 34

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