Some of the medicines your health care provider may prescribe are used to reduce stomach acid and protect the lining of your stomach and duodenum. These medicines will stop the pain and help heal the ulcers. Pepto Bismol  is an example of this kind of medicine.