Electric fence around the horse paddock never kept our dog out of it. Even on super high, leave a burn mark on a human, he was smart enough to figure out how to make sure he didn't touch his nose or paws to it.
Also, we don't have raccoons, I didn't think there were any raccoons in Alaska.
And, the electric fence is a pain to maintain, the bottom wire gets hidden in the weeds in nothing flat, and then in the winter time the snow covers the entire world in multiple feet that helps to ground out the fence.
It was fine in keeping the horses in, i am sure it would be great with cattle, it worked alright with keeping moose out, bear would just walk through stretching and breaking wire, and it didn't stop anything small. And then of course you have power problems (we are on the grid, but loose power on occasion).
I am happier with giving my chickens a much smaller covered, stronger, more impenetrable run, that doesn't rely on electricity.