You can use Mucopain, B complex medicine other factors like stress ,sleep, digestion should be taken care of but if still persist should get check up done by dentist as long non healing ulcers may have some pathology .so better visit your near by oral surgeon.