I take sour things, and my best and favorite are tangerines. Mor sour they are better for ulcer and they always go away for me. I also try pomegranates and they work. Yeah it hurts when they are sour and you have ulcers.
But doctors recommend to clean with brine solution. Read more here http://en.wikipedia.org/wiki/Mouth_ulcer