Oil prices hit a record high above $127 a barrel for the first time on fresh worries about global supplies.