The human microbiome has emerged as a new potential biomarker for forensic investigations with the development of high-throughput sequencing and bioinformatic analysis during the last decade. The oral cavity has many different microbial habitats, with each habit colonized by specific and individualized microbiota. As saliva and buccal mucosa are common biological evidence in forensic science, understanding the differences of microbial communities between the two is important for forensic original identification. Moreover, the oral microbiota is individualized, whereas there are few studies on the application of forensic personal identification that need to be supplemented. In this study, Streptococcus was the most abundant genus, with an average relative abundance of 49.61% in the buccal mucosa, while in the saliva, Streptococcus, Veillonella, and Neisseria had similar proportions (20%, 15%, 16%) and were the dominant genera. The α and β diversity displayed a significant distinctness between the saliva and buccal mucosal groups. The community assembly mechanism stated that the deterministic process played a more significant effect in shaping the salivary bacterial community assembly than buccal mucosa, which explained the microbial differences. Of the test samples, 93.3% can be correctly classified with the random forest model based on the microbial differences. Targeting the low-abundance bacteria at the species level, 52% of experimental participants could be discriminated by using the observed unique bacterial species. In conclusion, the salivary bacterial community composition differed from that of the buccal mucosa and showed high richness and diversity. With the random forest model, the microbiota of saliva and buccal mucosa can be classified, which can be used in identifying the source of oral biological trace. Furthermore, each individual has a unique bacterial community pattern, and the presence or absence of unique bacteria and differences in the composition of the core oral microbiota are the key points for forensic personal discrimination that supplement the study of oral microbial application to forensic personal discrimination. Whether for original identification or personal discrimination, the oral microbiome has great potential for application.