i also had the same problem couple of years back.
i would suggest a very good homemade recipie which helped me.
first thing in the morning as soon as you get up, Squeeze one lime in a glass of warm water add a pinch of salt and drink on empty stomach, do this every morning for at least 15-20 days you'll start feeling the difference,
for the time being apply some JOGEL gel(available in any pharmacy) on the ulcers