Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

DEFINE no longer working when querying DB2 database after upgrading to 21.4.0.346

Joe GrantFeb 3 2022

We upgraded to the Oracle SQL Developer version 21.4.0.346 recently, and now our queries towards DB2 no longer seem to function as they did in 3.2.20.09 ( I know, huge jump)
It appears that script execution is sending everything to DB2 rather than doing variable substitution as it did in the previous version, so it no longer allows DEFINE to work.
For example, I was formerly able to execute the below code.
DEFINE SVC_ID = '1234';
SELECT *
FROM DEV.TEST
WHERE S.SVC_ID = '&SVC_ID';
Is there a way to change this in settings?

Comments
Post Details
Added on Feb 3 2022
5 comments
222 views