Ulcers are very difficult to treat. They can occur as a result of trauma or may develop from a viral source. Depending on the cause, there are specific medications that can shorten their duration. Left alone, ulcers will generally disappear in two weeks.