What are your goals exactly?
Are you wanting to switch from dentistry to medicine and just practice medicine? In that case you'd need to get accepted to medical school, complete medical school, and then do residency training, all of which is definitely more than 2 years.
Or are you wanting to do Oral and Maxillofacial Surgery? If that's the case, it seems like you'd have to complete your dental degree and do a residency in Oral and Maxillofacial Surgery that includes two years of medical school plus 4 years of surgical training after dental school.
Have no idea how being from another country works with either of those.