I've never seen a raccoon dig holes, but armadillos are famous for that. I've stopped armadillos by sprinkling blood meal where they dig. I assume it would work for any digger. You can get it at garden centers and it's a great fertilizer. It doesn't smell great which is probably what the armadillos don't like about it.