oracle compatible substr function

oracle compatible substr function