Stomach ulcers, also known as gastric ulcers, are open sores that form on the stomach lining. They can also develop in the small intestine, which is known as a duodenal ulcer. Duodenal ulcers are also known as peptic ulcers.