The invention discloses a method for obtaining an oligonucleotide probe. The method for obtaining the oligonucleotide probe comprises the following steps: downloading original sequences of pSc119.2, pAs1, pTa-535, pTa71, pAWRC.1 and CCS1 from a national center of biotechnology information (NCBI) website; analyzing the downloaded sequences by using bioinformatics software DNAMAN; seeking repeated core units in these sequences; returning to the NCBI website to compare by using a blastn tool for finding out a core oligonucleotide sequence of which the length is below 60bp to carry out probe synthesis; carrying out probe synthesis on a lot of oligonucleotide sequences which are primarily screened out; gradually carrying out a fluorescence in situ hybridization (FISH) test after probe synthesis; verifying the function of the probe, and verifying whether the synthetic oligonucleotide sequence can play the FISH effects of pSc119.2, pAs1, pTa-535, pTa71, pAWRC.1 and CCS1 or not, so as to obtain the oligonucleotide probe. By adopting the method disclosed by the invention, complicated procedures of the existing probe marking technique are removed, the problem of marking failure of the probe is removed, and the cost is reduced.