I am trying to avoid oracle's plain to be calculated at every dynamic SQL use.
Using REPLACE and then a EXECUTE IMMEDIATE without USING leads to overhead, as the string is different at every use, Oracle always seems to search a new plain.
But reading about EXECUTE IMMEDIATE statement a found the following:
Is that? Does USING bind forces Oracle to recalculate every dynamic string? If so, how to avoid it?
a) querytoselect = REPLACE( querytoselect, 'pattern', 'var' );
EXECUTE IMMEDIATE querytoselect.
b) EXECUTE IMMEDIATE querytoselect USING var
Thanks.