Over-the-counter antacids like Maalox, Tums, or Rolaids can provide short-term relief from ulcer pain and discomfort. Other options include H2 blockers like Pepcid or proton pump inhibitors like Prilosec. Foods that provide relief include bananas, yogurt, honey, aloe vera juice, and chamomile tea. Avoid trigger foods like coffee, citrus, alcohol, and NSAIDs.