This is the first time I\'ve dealt with Oracle, and I\'m having a hard time understanding why I\'m receiving this error.
I\'m using Oracle\'s ODT.NET w/ C# with the
You might also consider removing the need for duplicated parameter names in your Sql by changing your Sql to
table.Variable2 LIKE '%' || :VarB || '%'
and then getting your client to provide '%' for any value of VarB instead of null. In some ways I think this is more natural.
You could also change the Sql to
table.Variable2 LIKE '%' || IfNull(:VarB, '%') || '%'