LPS-31119 fix SQL wrong in Oracle