OIP-04122: Bind variable not fully enabled (Doc ID 1089838.1)

Last updated on JULY 07, 2017

Applies to:

Oracle Objects for OLE - Version 9.2.0.1 to 11.2.0.1 [Release 9.2 to 11.2]
Microsoft Windows (32-bit)

*** Checked for relevance on 07-Jul-2017 ***

Symptoms

Executing Oracle Objects for OLE (OO4O) code with bind variables from VBScript may result in the following error:

Oracle Automation: OIP-04122: Bind variable not fully enabled

 

The behavior can be reproduced with the following code

Set OraSession = CreateObject("OracleInProcServer.XOraSession")
Set OraDatabase = OraSession.OpenDatabase("orcl", "scott/tiger", 0)
OraDatabase.Parameters.Add "empno", 1234, ORAPARM_INPUT
OraDatabase.ExecuteSQL "insert into emp (empno) values (:empno)"

 

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