Jose:
OK, so the setting has taken (I always like to check the "dumb" stuff). The "directives=1" you see in the onstat -g ses output shows that the session is supposed to follow directives. So, the next step would be to run the query as one of the users that are getting a different query plan under SET EXPLAIN and see if the directives are being specifically ignored. If it is not being ignored explicitly then something is not right.
One possibility would be if these sessions are connected to a different database than the one into which you added the directive (external directives are stored in the sysdirectives catalog table in each database). In that case the session would not be able to "see" the directive in the "remote" database.
Art
------------------------------
Art S. Kagel, President and Principal Consultant
ASK Database Management Corp.
www.askdbmgt.com------------------------------
Original Message:
Sent: 08/26/26 04:17 AM
From: Jose Manuel Ruiz Gallud
Subject: external optimizer directives not working
Hi Art,
I am getting:
cf_id 232
cf_name EXT_DIRECTIVES
cf_flags 163906
cf_original 2
cf_effective 2
cf_default 0
1 row(s) retrieved.
Thanks!
------------------------------
Jose
------------------------------
Original Message:
Sent: 08/26/26 04:01 AM
From: Art Kagel
Subject: external optimizer directives not working
Jose:
What are you seeing from this query?
dbaccess sysmaster -
> select * from sysconfig where cf_name = 'EXT_DIRECTIVES';
cf_id 234
cf_name EXT_DIRECTIVES
cf_flags 163906
cf_original 1
cf_effective 1
cf_default 0
1 row(s) retrieved.
What is cf_effective showing?
Art
------------------------------
Art S. Kagel, President and Principal Consultant
ASK Database Management Corp.
www.askdbmgt.com
------------------------------