Oil was little changed after a volatile session in which investors weighed signs of less-tight conditions against rising military threats to energy infrastructure across the Middle East.