What kind of foods, herbal medication good for ulcer?

Nothing. Avoid the insult (ie nsaid). Treat hpylori if present. Use an acid suppression medication.