It can be confirmed after performing the examination only.
You're vague on this. How do you know you have an "ulcer" on your tonsil? Are you assuming it's and ulcer? Either way you need to have this checked out by your doctor to find out exactly what it is. We could guess but that's all it would be is guessing. See your GP and go from there.