Almost every medication is harsh to the stomach so I don't think so .
It's best to just take drugs that lower gastric acidity... H2 blockers and Proton Pump Inhibitors... Less acid=Less pain.
I was diagnosed with ulcers in Nov. 08. They did give me pain medicine as well as nausea medication, but you have to be careful. Follow doctor's orders and be sure to eat then take the medication, and watch every thing you eat and watch what pills you take. Tylenol, Ibprofin, and other asprin products, as well as anti-inflamatory medicine will tear up your stomach. Be careful and good luck!