Generally, ulcers can heal out in 7 to 10 days. but for symptomatic relief, you can use gums paint to relieve pain. it is also advisable to visit a dentist to find out the cause of ulceration. because if the ulcer is forming due to trauma needs to relieve the cause also.