[oracle] fixed issues in dynamic sql version of DELETE scripts