With treatment, an esophageal ulcer takes a few weeks or longer to heal. A follow-up endoscopy may be done to check the ulcer's healing. Let your doctor know if your symptoms don't get better or if they come back again. If you have GERD, work with your doctor to manage it. You can take steps to help keep your esophagus healthy and prevent future problems.