Did you stay for 6 months or more all together in Dubai? If yes then you need to obtain a police certificate!
Copied from CIC website: For example, if you visited, worked or lived in a country for two months, left for a few years, then returned for four months, that counts as spending six months there. In this case, you would need a certificate.
All the best,