Can someone tell me what Wall (barrier) in history ever worked?

I can only think The Great Wall of China. When you see who ordered it, over saw the construction and used it, I don't think you'd like the cost of that one. Otherwise, every other one I can think of failed or was an extreme waste.