How to create a where clause in ADF viewobject with bind variables when using DB2 database.

(Doc ID 2164576.1)

Last updated on AUGUST 05, 2016

Applies to:

Oracle JDeveloper - Version and later
Information in this document applies to any platform.


 ViewObject Where clause bind variable works fine with oracle Database connection but however the same where clause doesn't work with IBM DB2 database connection and throws below error.

[SQL0312] Variable Not Defined Or Not Usable. With A VO With A Bind Variable
oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper: [SQL0312] Variable SEARCHCRITERIA not defined or not usable.
at oracle.jbo.jbotester.ErrorHandler.displayError(
at oracle.jbo.jbotester.ErrorHandler.displayError(
at oracle.jbo.jbotester.dialog.JTDialog.displayError(
at oracle.jbo.jbotester.dialog.GenericDialog.actionPerformed(
at javax.swing.AbstractButton.fireActionPerformed(
at javax.swing.AbstractButton$Handler.actionPerformed(
at javax.swing.DefaultButtonModel.fireActionPerformed(
at javax.swing.DefaultButtonModel.setPressed(
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
at java.awt.Component.processMouseEvent(


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