This question does not clarify the intent of the request for oral medications. Both bacterial and yeast vaginitis are usually treated with vaginal topical medications.
Some women prefer pills by mouth just because of the messiness of vaginal preparations.
In other cases, the vaginal treatments may not have worked and the questioner is asking about 2nd choice therapeutic regimens to take by mouth. It may also be that some oral medications are not tolerated due to side effects and the purpose of the question is to discover alternative oral medicines effective against the organisms. Finally the questioner may not be clear about the diagnosis since bacterial vaginosis and yeast vaginitis do not occur together very often. Thus it is mandatory to be sure of the diagnosis before initiating treatment. Therefore the environments of yeast vaginitis and bacterial vaginitis are substantially different and thus they do not often occur together.