Fix dynamic SQL used to query ODI 11g tables