Peptic ulcer is an open sore or raw area in the lining of the stomach or intestine. There are two types of peptic ulcers: Gastric ulcer -- occurs in the stomach. Duodenal ulcer -- occurs in the first part of the small intestine.