Orabase is available over the counter and i find it effective at treating mouth ulcers.
However, mouth ulcers may not heal for 7-14 days. Usually they are not painful as they start healing. If you have many ulcers or you have severe discomfort, there are prescription mouthrinses your dentist can prescribe for you. If you have frequent outbreaks, vitamin b-12 is a good supplement.