I'm trying to use the SQL tuning advisor with SQL Developer (versions 4.1.3.20 and 17.2.0.188). Queries using more than one instance of a bind variable, for example:
select * from dual where :one = :one;
are causing an error in the SQL Tuning Advisor:
-------------------------------------------------------------------------------
ERRORS SECTION
-------------------------------------------------------------------------------
- ORA-01008: not all variables bound
-------------------------------------------------------------------------------
Is there a workaround or some other method to get the same SQL tuning info for queries that have multiple instances of one or more bind variables?
Not sure why you want to use ":one = :one", you can replace it as "1 = 1", or add one more variable assigned by the same value, select * from dual where :one = :two;