Oil prices rose toward $52 a barrel after government data showed crude stockpiles fell for the sixth time in seven weeks.