My first job was retail, and I worked it for about four years total, including during college and after service in the Navy. At the time I had skills that translated into being valuable enough to not work in retail that didn't involve a lot of risk (police, security, etc), so it seemed about the best option.
I don't think I quite experienced anything like this, but sometimes it was close. If I felt like a replaceable cog, it's because I was, and I was a replaceable cog in a machine already operating on razor thin margins, which means I had to be a good cog. The funny thing was that due to my Navy experience, I didn't perceive it as all that bad, though the pay was pretty miserable even at two dollars above minimum wage.
I'll say this - working retail was very motivating. I knew I didn't want to do that forever. But I don't know what the 'solution' is as applied to everybody, but I know the solution for me was to finish college and make myself valuable.