What ulcer are you talking about? I presume it's Stomach ulcer, in that case you need to take proton pump inhibitors, avoid smoking and alcohol, take regular meals, avoid being empty stomach for long times, take less fried food.
Next Steps
if the ulcer was seen on endoscopy, an RUT might have been done from the biopsy. if it shows H.pylori then eradication treatment needs to be started.